A production-ready, extensible multi-LLM AI Agent Framework with LiteLLM support
Project description
🤖 AI Agent Framework
A production-ready, extensible AI Agent Framework for Python. Built with Clean Architecture, it supports multi-provider LLM orchestration (via LiteLLM), memory management, and tool usage.
🚀 Features
- Multi-Provider Support: Switch between OpenAI, Anthropic, Gemini, and local models seamlessly using LiteLLM.
- Intelligent Routing: Architecture designed for dynamic model selection.
- Tooling System: Register Python functions as tools with automatic JSON schema generation + MCP Support.
- Memory Management: Pluggable memory backends (In-Memory provided, Extensible to Redis/Postgres).
- Vector Store / RAG: Built-in adapter for ChromaDB.
- Clean Architecture: strictly decoupled core logic from infrastructure.
📦 Installation
pip install agentaxis
⚡ Quick Start
1. Basic Agent
from agentaxis import AgentService, AgentEntity, InMemoryMemory, LiteLLMAdapter
from agentaxis.adapters.tools import ToolRegistry
import asyncio
async def main():
# 1. Setup Wrapper
llm = LiteLLMAdapter(model="gpt-4o", api_key="sk-...")
memory = InMemoryMemory()
registry = ToolRegistry()
# 2. Register Tools
@registry.register
def get_time(timezone: str) -> str:
"""Returns current time in timezone."""
return "12:00 PM"
# 3. Create Agent
entity = AgentEntity(id="bot-1", name="Helper", role_description="Assistant")
agent = AgentService(agent_entity=entity, llm=llm, memory=memory, tool_registry=registry)
# 4. Chat
response = await agent.chat("What time is it in NY?")
print(response)
if __name__ == "__main__":
asyncio.run(main())
🏗️ Architecture
The framework follows Hexagonal Architecture:
- Core/Domain: Pure business entities (
Agent,Message). - Core/Ports: Interfaces for external dependencies (
BaseLLM,MemoryPort). - Adapters: Concrete implementations (
LiteLLMAdapter,ChromaAdapter).
🛠️ Development
- Clone the repository.
- Install dependencies:
pip install -e .[dev] - Run tests:
pytest
🤝 Contribution
Contributions are welcome! Please follow the Clean Architecture patterns.
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
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 agentaxis-0.1.0.tar.gz.
File metadata
- Download URL: agentaxis-0.1.0.tar.gz
- Upload date:
- Size: 20.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5293dbe2e1172afcf786faa892b727a0354449310ed1d4ede90562cd0e4e8dc7
|
|
| MD5 |
74a2b930f905a09f8312ec93629120db
|
|
| BLAKE2b-256 |
5e816393a89952c3ea9222992c08ea2f5ea09ebf02acbbc4f6a0f9ff7ee8bfc6
|
File details
Details for the file agentaxis-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agentaxis-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b176b9119ad440eebaa81df3f1d407d37472f6e31843a57e667871b82d6eba06
|
|
| MD5 |
5b394f1b14c01e33752384a390973288
|
|
| BLAKE2b-256 |
6c9a47bdcf8c186319191699180bb211e132d1a6073bc3fb8c68bb3d75a143f3
|