Appearance
Elsai Agents
Elsai Agents is a lightweight, model-agnostic framework for building AI agents in Python. The language model decides what tools to call, in what order, until it reaches a final answer — no brittle chains or rigid pipelines needed.
What you can build
| Pattern | Description |
|---|---|
| Conversational assistants | Single-agent chatbots that call tools |
| Autonomous task agents | Multi-step reasoning with memory and state |
| Multi-agent systems | Graphs of agents that collaborate or compete |
| Voice agents | Bidirectional streaming with audio I/O |
Key features
| Feature | Description |
|---|---|
| Model Agnostic | Amazon Bedrock, Anthropic, OpenAI, Gemini, Ollama, LiteLLM, and more |
| Tool system | Python decorators, directory hot-reload, MCP server support |
| Multi-agent | Graph (deterministic) and Swarm (autonomous) patterns |
| Streaming | Async token streaming and bidirectional audio streaming |
| Hooks | Strongly-typed lifecycle events for observability and control |
| Sessions | Built-in conversation persistence with file, S3, or custom backends |
| Observability | OpenTelemetry tracing and metrics out of the box |
Minimal example
python
from elsai import Agent
agent = Agent()
agent("Explain quantum entanglement in one paragraph")Every additional capability — tools, memory, multi-agent orchestration — layers on top without rewriting existing code.
Installation
bash
pip install --extra-index-url https://elsai-agents.elsai.ai/root/ elsai-agents==0.1.0 elsai-agents-toolsNext steps
- Quickstart — build your first agent in 5 minutes
- Agent concepts — understand the agent loop
- Tools — add capabilities to your agents
- Multi-Agent — orchestrate multiple agents