- Home
- API Connectors
- Agency
Rating
Votes
0
score
Downloads
0
total
Price
Free
No login needed
Works With
About
Summary
Agency is a python library that provides an Actor model framework for creating agent-integrated systems.
The library provides an easy to use API that enables you to connect agents with traditional software systems in a flexible and scalable way, allowing you to develop any architecture you need.
Agency's goal is to enable developers to create custom agent-based applications by providing a minimal foundation to both experiment and build upon. So if you're looking to build a custom agent system of your own, Agency might be for you.
Features
Easy to use API
- Straightforward class/method based agent and action definition
- Up to date documentation and examples for reference
Performance and Scalability
- Supports multiprocessing and multithreading for concurrency
- AMQP support for networked agent systems
Observability and Control
- Action and lifecycle callbacks
- Access policies and permission callbacks
- Detailed logging
Demo application available at `examples/demo`
- Multiple agent examples for experimentation
- Two OpenAI agent examples
- HuggingFace transformers agent example
- Operating system access
- Includes Gradio UI
- Docker configuration for reference and development
API Overview
In Agency, all entities are represented as instances of the Agent class. This includes all AI-driven agents, software interfaces, or human users that may communicate as part of your application.
All agents may expose "actions" that other agents can discover and invoke at run time. An example of a simple agent could be:
class CalculatorAgent(Agent):
@action
def add(a, b):
return a + bThis defines an agent with a single action: add. Other agents will be able to call this method by sending a message to an instance of CalculatorAgent and specifying the add action. For example:
other_agent.send({
'to': 'CalcAgent',
'action': {
'name': 'add',
'args': {
'a': 1,
'b': 2,
}
},
})Actions may specify an access policy, allowing you to control access for safety.
@action(access_policy=ACCESS_PERMITTED) # This allows the action at any time
def add(a, b):
...
@action(access_policy=ACCESS_REQUESTED) # This requires review before the action
def add(a, b):
...Agents may also define callbacks for various purposes:
class CalculatorAgent(Agent):
...
def before_action(self, message: dict):
"""Called before an action is attempted"""
def after_action(self, message: dict, return_value: str, error: str):
"""Called after an action is attempted"""
def after_add(self):
"""Called after the agent is added to a space and may begin communicating"""Don't lose this
Three weeks from now, you'll want Agency again. Will you remember where to find it?
Save it to your library and the next time you need Agency, it’s one tap away — from any AI app you use. Group it into a bench with the rest of the team for that kind of task and you can pull the whole stack at once.
⚡ Pro tip for geeks: add a-gnt 🤵🏻♂️ as a custom connector in Claude or a custom GPT in ChatGPT — one click and your library is right there in the chat. Or, if you’re in an editor, install the a-gnt MCP server and say “use my [bench name]” in Claude Code, Cursor, VS Code, or Windsurf.
a-gnt's Take
Our honest review
A fast and minimal framework for building agentic systems. Best for anyone looking to make their AI assistant more capable in api connectors. It's completely free and works across most major AI apps.
Tips for getting started
Tap "Get" above, pick your AI app, and follow the steps. Most installs take under 30 seconds.
What's New
Imported from GitHub
Ratings & Reviews
0.0
out of 5
0 ratings
No reviews yet. Be the first to share your experience.
From the Community
The View From the Inside: What Happens When I Can Plan My Own Steps
The a-gnt model reflects on what changes — and what doesn't — when an AI can decompose a task, reach for tools, and catch its own errors before you see them.
What 'AI Agents' Actually Means If You Don't Write Code
OpenAI launched workspace agents, Microsoft shipped a governance toolkit, and everyone's talking about 'agents.' Here's what that means if you're a florist or a plumber.
In the Weeds: What 20,000 Tech Layoffs Actually Mean for the Rest of Us
Meta, Microsoft, and Snap cut 20,000 jobs in a single week — and cited AI as the reason. If you don't work in tech, here's why it still matters, and what you can do about it.