Skip to main content

Composable Actor Platform (CAP) for AutoGen

I just want to run the remote AutoGen agents!

Python Instructions (Windows, Linux, MacOS):

pip install autogencap-rajan.jedi

  1. AutoGen require OAI_CONFIG_LIST. AutoGen python requirements: 3.8 <= python <= 3.11

## What is Composable Actor Platform (CAP)?
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.

```python
# CAP Library
from autogencap.ComponentEnsemble import ComponentEnsemble
from autogencap.Actor import Actor

# A simple Agent
class GreeterAgent(Actor):
    def __init__(self):
        super().__init__(
            agent_name="Greeter",
            description="This is the greeter agent, who knows how to greet people.")

    # Prints out the message it receives
    def on_txt_msg(self, msg):
        print(f"Greeter received: {msg}")
        return True

ensemble = ComponentEnsemble()
# Create an agent
agent = GreeterAgent()
# Register an agent
ensemble.register(agent) # start message processing
# call on_connect() on all Agents
ensemble.connect()
# Get a channel to the agent
greeter_link = ensemble.find_by_name("Greeter")
#Send a message to the agent
greeter_link.send_txt_msg("Hello World!")
# Cleanup
greeter_link.close()
ensemble.disconnect()

Check out other demos in the py/demo directory. We show the following:

  1. Hello World shown above
  2. Many CAP Actors interacting with each other
  3. A pair of interacting AutoGen Agents wrapped in CAP Actors
  4. CAP wrapped AutoGen Agents in a group chat
  5. Two AutoGen Agents running in different processes and communicating through CAP
  6. List all registered agents in CAP
  7. Run Agent in user supplied message loop

Metadata

Release files for autogencap 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autogencap 0.0.11
File Size Uploaded
autogencap-0.0.11.tar.gz 3.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for autogencap 0.0.11
File Interpreter ABI Platform
autogencap-0.0.11-py3-none-any.whl Python 3 none any Details

Total release size: 6.3 MB

Release files / autogencap-0.0.11.tar.gz

Download URL autogencap-0.0.11.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
e34555396cc7b7fd4734a34ed05459797bb8a1616412f389f2a93b7eb9ef8dab
BLAKE2b-256 checksum
How to use checksums
d66d1156d2b5223912d215c3ceab35326023f88305555a8f01cae37cb95a0a55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.9

Release files / autogencap-0.0.11-py3-none-any.whl

Download URL autogencap-0.0.11-py3-none-any.whl
Size 3.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
6dc9568902fb1705cc32356530b7e3dac4d5a8c4cf4f20dd044dc632d333a908
BLAKE2b-256 checksum
How to use checksums
47462e0996f75ea4adfd1379c8a9895089a28b33d9e95cd3db706ff2bc4bbe55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.0.11 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page