Lightweight framework for modular, multi-provider AI agents.
Project description
Hermes AI Agent Framework
🚀 Smart LlamaIndex Abstraction for AI Agents
Hermes is a lightweight, powerful abstraction layer over LlamaIndex that simplifies building production-ready AI agents with essential utilities and multi-agent capabilities.
✨ Features
- 🛠️ Automatic Tool Integration - Convert Python functions to tools effortlessly
- 🤖 Multi-Agent Orchestration - Coordinate multiple specialized agents
- 🧠 Enhanced Prompt Management - Built-in Chain of Thought and context awareness
- 💬 Smart Memory Management - Automatic chat history handling with configurable limits
- 🔌 Multi-Provider Support - OpenAI, Azure, Anthropic, and more
- 📊 Text Processing Utilities - Keyword extraction, formatting, and enhancement
🚀 Quick Start
pip install hermes-ai
import asyncio
from hermes.core import Agent
async def main():
# Create a simple tool
def get_weather(location: str) -> str:
"""Get weather information for a location."""
return f"Weather in {location}: Sunny, 25°C"
# Initialize your agent
agent = Agent(
provider="openai",
model="gpt-4o-mini",
name="WeatherAssistant",
description="Helps with weather information",
prompt="Provide accurate and helpful weather updates.",
tools=[get_weather]
)
# Execute the agent
response = await agent.execute("What's the weather in Tokyo?")
print(response)
asyncio.run(main())
🏗️ Multi-Agent System
# Create specialized agents
market_agent = Agent(
name="FinancialAnalyst",
description="Stock market expert",
tools=[get_market_data]
)
investment_agent = Agent(
name="InvestmentAdvisor",
description="Investment strategy expert",
tools=[calculate_returns]
)
# Coordinate with master agent
coordinator = Agent(
name="FinanceCoordinator",
description="Coordinates financial experts",
tools=[market_agent.execute, investment_agent.execute]
)
🔧 Core Components
Agent Configuration
Agent(
provider="openai", # LLM provider
model="gpt-4", # Model name
name="Assistant", # Agent identity
description="Helpful AI", # Agent purpose
prompt="Behavior guidelines", # System prompt
tools=[function1, function2], # Available tools
temperature=0.7, # Creativity control
max_chat_history_length=20 # Memory management
)
Built-in Utilities
- Automatic tool conversion from Python functions
- Enhanced prompt formatting with current context
- Chat history management with configurable limits
- Input enhancement with keyword extraction
- Multi-provider LLM support
📁 Project Structure
hermes/
├── core.py # Main Agent class
├── utils.py # Text processing utilities
├── tools.py # Tool creation helpers
└── examples/ # Usage examples
🎯 Use Cases
- Customer Support Agents
- Multi-Domain Expert Systems
- Research Assistants
- Data Analysis Tools
- Content Generation Systems
🔮 Roadmap
- Vector database integration
- Advanced memory backends
- Streaming responses
- Plugin system
- Web interface
💡 Contributing
We welcome contributions! Please see our Contributing Guide for details.
📄 License
MIT License - see LICENSE file for details.
Build intelligent agents faster with Hermes - The messenger of AI capabilities
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 hermes_ai-0.2.3.tar.gz.
File metadata
- Download URL: hermes_ai-0.2.3.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6aa4f5ba4f860cb83421404093bda786d1caaed1c36b49585dfe21d8e0df5709
|
|
| MD5 |
b1b77f623ac6dea0e18740094b0ae0ec
|
|
| BLAKE2b-256 |
65aed633cb5252232a8736097221a7473f96bd0ef369a916f54f6ef994a45fdc
|
File details
Details for the file hermes_ai-0.2.3-py3-none-any.whl.
File metadata
- Download URL: hermes_ai-0.2.3-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5081cb90c473f3081273da69aeed4a40c8222c835b4ab7bab6b36f7ed915666c
|
|
| MD5 |
7a8393471855c513757fb65b9e03e36b
|
|
| BLAKE2b-256 |
7fc605b93711b8e6debc2f3b0baecb19c12fb7c0af8d1a9a8cf51af702d7d52f
|