Python Instructions (Windows, Linux, MacOS):
- cd py
- pip install -r autogencap/requirements.txt
- python ./demo/App.py
- Choose (5) and follow instructions to run standalone Agents
- Choose other options for other demos
Demo Notes:
- Options involving AutoGen require OAI_CONFIG_LIST. AutoGen python requirements: 3.8 <= python <= 3.11
- For option 2, type something in and see who receives the message. Quit to quit.
- To view any option that displays a chart (such as option 4), you will need to disable Docker code execution. You can do this by setting the environment variable
AUTOGEN_USE_DOCKER
toFalse
.
Demo Reference:
Select the Composable Actor Platform (CAP) demo app to run:
(enter anything else to quit)
1. Hello World
2. Complex Agent (e.g. Name or Quit)
3. AutoGen Pair
4. AutoGen GroupChat
5. AutoGen Agents in different processes
6. List Actors in CAP (Registry)
Enter your choice (1-6):
AutoGen is about Agents and Agent Orchestration. CAP extends AutoGen to allows Agents to communicate via a message bus. CAP, therefore, deals with the space between these components. CAP is a message based, actor platform that allows actors to be composed into arbitrary graphs.
Actors can register themselves with CAP, find other agents, construct arbitrary graphs, send and receive messages independently and many, many, many other things.
# CAP Platform
network = LocalActorNetwork()
# Register an agent
network.register(GreeterAgent())
# Tell agents to connect to other agents
network.connect()
# Get a channel to the agent
greeter_link = network.lookup_agent("Greeter")
# Send a message to the agent
greeter_link.send_txt_msg("Hello World!")
# Cleanup
greeter_link.close()
network.disconnect()
- Hello World shown above
- Many CAP Actors interacting with each other
- A pair of interacting AutoGen Agents wrapped in CAP Actors
- CAP wrapped AutoGen Agents in a group chat
- Two AutoGen Agents running in different processes and communicating through CAP
- List all registered agents in CAP
- AutoGen integration to list all registered agents