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
- 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:
- 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
- Run Agent in user supplied message loop
Metadata
Release files for autogencap-rajan.jedi 0.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| autogencap_rajan_jedi-0.0.11.tar.gz | 3.1 MB | Without provenance | Details for autogencap_rajan_jedi-0.0.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| autogencap_rajan_jedi-0.0.11-py3-none-any.whl | Python 3 | none | any | Details for autogencap_rajan_jedi-0.0.11-py3-none-any.whl |
Total release size: 6.3 MB
Release files / autogencap_rajan_jedi-0.0.11.tar.gz
| Download URL | autogencap_rajan_jedi-0.0.11.tar.gz |
|---|---|
| Size | 3.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dfe17ce2898fd6fd77da8da66273e5d55b842d222b6e960f9ffe0912b6533a44
|
|
BLAKE2b-256 checksum How to use checksums |
55c711a6bf4b6575a5cb34d248009ce794855bd1ef89687623c6dbb8f6d41ba7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.9
|
Release files / autogencap_rajan_jedi-0.0.11-py3-none-any.whl
| Download URL | autogencap_rajan_jedi-0.0.11-py3-none-any.whl |
|---|---|
| Size | 3.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c5c7a030d13aa63c8af0804c2616e4ee1e10bab60138a77dde1372e36b02b470
|
|
BLAKE2b-256 checksum How to use checksums |
7bbc723b412bb337dd0ff952c8e852bae9197d0f3a86a51f62bd6914a2f23bce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.9
|
Security for autogencap-rajan.jedi 0.0.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.