Skip to main content

Lightweight framework for modular, multi-provider AI agents.

Project description

Hermes AI Agent Framework

Hermes AI Logo

Python Version LlamaIndex OpenAI License Status

🚀 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hermes_ai-0.2.5.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hermes_ai-0.2.5-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file hermes_ai-0.2.5.tar.gz.

File metadata

  • Download URL: hermes_ai-0.2.5.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for hermes_ai-0.2.5.tar.gz
Algorithm Hash digest
SHA256 1c4f499bcf160c3247c838bb062a5eddec4da950f46151ecfee6fad397b651a3
MD5 bfc7a952eb8836d3a10d8c8fc98f32a2
BLAKE2b-256 52f67f9a42aa462f9ddccc08185d563ca221c34c98283a3ac5036681d27c3b40

See more details on using hashes here.

File details

Details for the file hermes_ai-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: hermes_ai-0.2.5-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

Hashes for hermes_ai-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6b297fe2e6841a7f9ca68b577d7d33a23e3bf349bd6fffbc961b6c0094bee827
MD5 af09a52bfd811539fd17186251327b3f
BLAKE2b-256 066bed11f38c89076b69cdef2f91d4ac2f6ef5f1450878b63f3a8fb35878fbbd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page