agency  by operand

Framework for building agentic systems

created 2 years ago
435 stars

Top 69.5% on sourcepulse

GitHubView on GitHub
Project Summary

Agency is a Python framework for building agentic systems, targeting developers who need to integrate AI agents with traditional software. It offers a minimal, flexible foundation for creating custom agent-based applications, enabling scalable and adaptable architectures.

How It Works

Agency employs an Actor model where all entities (AI agents, software interfaces, human users) are instances of the Agent class. Agents expose callable actions (methods decorated with @action) that other agents can discover and invoke via messages. This allows for dynamic interaction and integration. Actions can have access policies for controlled invocation, and agents support lifecycle callbacks (before_action, after_action) for custom logic. Agents communicate within a Space, with LocalSpace for in-process communication and AMQPSpace for networked systems using AMQP.

Quick Start & Requirements

  • Install: pip install agency or poetry add agency
  • Prerequisites: Python. AMQPSpace requires an AMQP server (e.g., RabbitMQ).
  • Demo: Available at examples/demo with Gradio UI.

Highlighted Details

  • Actor model for agent communication.
  • Supports multiprocessing and multithreading.
  • AMQP support for networked agent systems.
  • Action access policies and lifecycle callbacks.
  • LocalSpace and AMQPSpace for communication.

Maintenance & Community

  • Contributions are welcomed via the contributing guide.
  • Planned work is tracked on the issues page. Discussions are encouraged.

Licensing & Compatibility

  • License: Not explicitly stated in the README.

Limitations & Caveats

The licensing is not specified, which may pose a risk for commercial adoption or closed-source integration. The project appears to be in active development, with planned work and an experimental demo application.

Health Check
Last commit

1 week ago

Responsiveness

1 day

Pull Requests (30d)
4
Issues (30d)
0
Star History
9 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Steven Hao Steven Hao(Cofounder of Cognition), and
6 more.

openai-agents-python by openai

1.5%
13k
Python SDK for multi-agent workflows
created 4 months ago
updated 1 day ago
Starred by Zhiqiang Xie Zhiqiang Xie(Author of SGLang), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
6 more.

swarm by openai

0.3%
20k
Multi-agent orchestration framework for lightweight agent coordination
created 1 year ago
updated 4 months ago
Feedback? Help us improve.