Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentforum-0.0.3.tar.gz (15.0 kB view hashes)

Uploaded Source

Built Distribution

agentforum-0.0.3-py3-none-any.whl (18.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page