Python framework for implementing multi-agent systems
Project description
Agentic
A Python framework for developing and deploying complete AI applications that includes:
- Multi-agent systems according to the Agent2Agent (A2A) protocol
- MCP tools
⚠️ Beta Version: This framework is currently in active development and is considered a beta release. Features may change, and some functionality may be unstable.
Overview
Agentic is a powerful framework that simplifies the creation of multi-agent systems by leveraging the a2a protocol. Built on top of FastAPI and the a2a-sdk, Agentic enables developers to easily define, deploy, and manage multiple AI agents. Agentic also allows the creation of tools according to the MCP standard. The MCP system is built on top of FastApiMCP.
Key Features
- Simple Agent Definition: Use
@agentand@skilldecorators to define agents and their capabilities with minimal boilerplate code - Multi-Agent Server: Deploy multiple agents on the same server instance
- A2A Protocol Support: Built-in support for agent-to-agent communication using the standardized a2a protocol
- FastAPI Integration: Leverages FastAPI's performance and features for robust web service deployment
- A2A Client: Included client for easy interaction with deployed agents
- MCP Tools: Use
@mcpdecorator to expose tools according to the MCP standard
Development Status
This project is currently in beta development. We are actively working on:
- Stabilizing the core API
- Adding comprehensive documentation
- Implementing additional features
Feedback and contributions are highly appreciated as we work towards a stable release.
Getting Started
Note: As this is a beta version, the API may change in future releases.
-
Define an Agent:
from agentic.a2a.core import agent, skill, BaseAgent from a2a.server.agent_execution import RequestContext from a2a.utils import new_agent_text_message from a2a.server.events import Event @agent( description="Agent for performing arithmetic operations", ) class MathAgent(BaseAgent): async def execute(self, input:RequestContext) -> Event: ... out = new_agent_text_message("The result is: ...") return out @skill( name="Sum operation", description="Retur result of sum of two numbers", ) async def sum(self, input): ... return "The result is: ..."
-
Deploy the Server:
from agentic.server import AgenticApp AgenticApp(scan_root='agents').run()
-
Use the A2A Client:
import asyncio from agentic.a2a.client import ClientA2A from agentic.a2a.utility import ResponseParser from a2a.types import DataPart async def main(): client = ClientA2A(base_url='http://localhost:9999') data = { "messages": [ {'role': 'user', 'content': '...'} ]} result = await client.invoke("/mathAgent", parts=[DataPart(data=data)]) parser = ResponseParser(result) print("RESULT: ", parser.get_parts()) if __name__ == "__main__": asyncio.run(main())
-
Define an MCP Tool:
from agentic.mcp.core import mcp @mcp( name="hello_world", methods=["GET"], path="/hello/{name}", ) def hello_world(name:str) -> str: """ Prenota un concerto.""" return "Hello, " + name + "!"
Architecture
Agentic follows the agent-to-agent (a2a) protocol specification, enabling:
- Standardized communication between agents
- Interoperability with other a2a-compliant systems
- Scalable multi-agent architectures
- Easy integration with existing AI workflows
Requirements
- Python 3.8+
- FastAPI
- a2a-python SDK
- httpx (for client functionality)
Contributing
As this is a beta project, contributions are especially welcome! Please feel free to:
- Report bugs and issues
- Suggest new features
- Submit pull requests
- Provide feedback on the API design
Links
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 Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentic_a2a-0.1.1-py3-none-any.whl.
File metadata
- Download URL: agentic_a2a-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f68751212cee763570005899637fa537e6db59b37b896f4fc3d233dfd7d0ca41
|
|
| MD5 |
fc4cd03e838908c69f3fc887aa3aaa07
|
|
| BLAKE2b-256 |
838d5fdf81b43954e88af1295d07bd47df7b96daa03db9361f0b78c26ffac9d1
|
Provenance
The following attestation bundles were made for agentic_a2a-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on DevTurtleBlog/agentic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentic_a2a-0.1.1-py3-none-any.whl -
Subject digest:
f68751212cee763570005899637fa537e6db59b37b896f4fc3d233dfd7d0ca41 - Sigstore transparency entry: 235112331
- Sigstore integration time:
-
Permalink:
DevTurtleBlog/agentic@55c1486f927a019abb0521e2c77ff923e97866b4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/DevTurtleBlog
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@55c1486f927a019abb0521e2c77ff923e97866b4 -
Trigger Event:
push
-
Statement type: