Giter VIP home page Giter VIP logo

swarmagent-'s Introduction

Usage

To use SwarmAgent, follow these simple steps:

  1. Define Your Scene: Use the --idea argument to describe the scene you wish to simulate. This field is required for the simulation to proceed.

  2. Choose Configuration Mode: Decide whether you want to use the default automatic configuration (--config auto) or load a pre-existing configuration (--config load). The default mode is auto.

  3. Select Update Rules: Specify the update rules for your agents with the --update_rule argument. You can choose from IM, PC, or BEST. The default rule is BEST.

  4. Set Agent Counts: Determine the number of agents involved in the simulation with the --agent_counts argument. The default count is 3.

  5. Intervene in Simulation: If you wish to intervene in the simulation, set the --intervene argument to True. By default, it is set to False.

  6. Specify Version Name: Provide a name for your simulation version using the --version_name argument. The default name is temp.

Example Command Line

Here's an example of how to run a simulation with SwarmAgent:

pip install -r requirements.txt
export OPENAI_API_KEY = "your key"
export BASE_URL = "base url if you use service other than openai"
python run.py --idea "Your Scene Description" --config auto --update_rule BEST --agent_counts 3 --intervene False --version_name temp

Functions auto_config: This function generates a simulation environment based on the provided idea and version name. It saves the configuration locally and runs the simulation.

load_config: This function loads a pre-configured simulation from local storage and runs it with the specified update rules and intervention settings.

swarmagent-'s People

Contributors

didiforgithub avatar

Stargazers

Zhaoyang Yu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.