A lightweight Python AI Agent framework with async support
Project description
⚛️ AtomAgent
AtomAgent is a lightweight Python AI Agent framework that supports both synchronous and asynchronous modes, providing a clean tool registration mechanism for building intelligent agents with function calling capabilities.
✨ Key Features
- 🔌 Minimal Dependencies: Only depends on pure Python libraries, no Rust dependencies
- 🎯 OpenAI API Compatible: Supports all OpenAI API compatible LLMs
- 🔧 Flexible Tool System: Easy tool registration with decorators
- 🚀 Async Support: Full async implementation for high concurrency
- 📡 Multi-Tool Calling: Supports OpenAI's latest tools protocol
- 🔄 Streaming Output: Real-time streaming responses
- 📝 Detailed Logging: Built-in hierarchical logging system
📦 Installation
# Basic installation
pip install atomagent
🚀 Quick Start
from atomagent import AsyncAgent
# Create an agent
agent = AsyncAgent(
name="Assistant",
model="gpt-3.5-turbo",
api_key="your_api_key"
)
# Register a tool
@agent.tool()
def get_weather(city: str) -> str:
"""Get weather information for a city"""
return f"The weather in {city} is sunny"
# Run the agent
import asyncio
async def main():
response = await agent.run("What's the weather in Beijing?")
print(response)
asyncio.run(main())
📖 Documentation
For detailed documentation and examples, visit: https://github.com/liuyunrui123/AtomAgent
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📄 License
This project is licensed under the MIT License.
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 atomagent-0.1.0.tar.gz.
File metadata
- Download URL: atomagent-0.1.0.tar.gz
- Upload date:
- Size: 28.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8f71b73cd39260d44820f1e6df7734c02279d2fbd9b3f782e088e30fdd3261c
|
|
| MD5 |
c80a0e65d49d50d40ed116eb5b3434f9
|
|
| BLAKE2b-256 |
64eb8688969f4e46d2f7a222a225edf76435a951a729e1a0afccd9c0faa1d486
|
File details
Details for the file atomagent-0.1.0-py3-none-any.whl.
File metadata
- Download URL: atomagent-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d46edbdff19bd049a68668a57afcbddbe1e707d6f6287f55b9fb5490f036bc20
|
|
| MD5 |
d7972d03773c165a0ea20f0c25167507
|
|
| BLAKE2b-256 |
096adda0c707ab2264bbe360458e01783aff06f23aeca38c454b720e09c8b58d
|