No project description provided
Project description
🏛 AgentForum
TODO Oleksandr: update the README to reflect the current state of the project.
It is highly encouraged that the agents are stateless (rely only on the incoming messages and the chat history) because this simplifies "message replay" from arbitrary point in the agent interaction history. (What about the possibility for an Agent to have memory that is not implemented as plain chat history, though?)
💡 Philosophy
- Inversion of Control for agents.
- Agents are as stateless as possible. Their operation revolves around the message branches that they are processing.
- Agents can receive multiple(?) messages before responding, as well as respond with multiple messages.
- Caching of agent responses. Necessary for effective Inversion of Control and also to simplify debugging / experimenting with agents' internal logic by making message replay inside a complex chain of interactions possible.
- LLM token streaming is supported no matter how many nested levels of agents there are.
- Messages are represented as immutable objects.
💡 Some more philosophy
- The user of the framework can pass either MessagePromise or Message, but they should always receive MessagePromise back.
🔧 Implementation details
This framework is async-first, and uses the asyncio library to achieve concurrency. The classes also have synchronous versions of the methods here and there, but the full potential of the framework is only unlocked when using the async methods. Supports Python 3.8 or higher.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for agentforum-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d64c29158ec8565c7fb0980d8a85c89fb59671e67c1541a5f21045e247bf091 |
|
MD5 | ec40882277c3276f941c819728d4cef0 |
|
BLAKE2b-256 | 493d17a1dd89c8d39b8598afeab982759219d79482c14e10c7e12e078c65ce57 |