A modern Python framework for building intelligent AI agents with advanced tracing, history management, and seamless LLM integration
Project description
Peargent
A modern Python framework for building intelligent AI agents with simplicity at its core.
Features
- Advanced Tracing - Track every action, decision, and API call with detailed telemetry and database persistence
- Smart History Management - Built-in conversation history with intelligent context windowing and buffer management
- Multi-LLM Support - Seamlessly switch between OpenAI, Anthropic, Groq, Gemini, and more
- Type-Safe Tools - Pydantic-powered tool system with automatic validation
- Agent Pools - Run multiple agents concurrently with shared context
- Streaming Support - Real-time streaming responses with event handling
- Cost Tracking - Monitor token usage and costs across all LLM providers
Installation
pip install peargent
Quick Start
from peargent import create_agent
from peargent.models import groq, anthropic, openai
# Use any model provider
agent = create_agent(
name="assistant",
persona="You are a helpful AI assistant.",
model=anthropic("claude-3-5-sonnet-20241022") # or groq("llama-3.3-70b-versatile"), openai("gpt-4o")
)
result = agent.run("What is the capital of France?")
print(result)
For more examples and detailed documentation, visit Docs.
Contributing
Contributions are welcome! Please read our Contributing Guide to get started. Also join Discord
License
MIT License - see LICENSE file for details
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
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 peargent-0.1.5.tar.gz.
File metadata
- Download URL: peargent-0.1.5.tar.gz
- Upload date:
- Size: 102.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cd33365b0cf0459745f553f5976645719793fb9aacb2cc042f74f39a0fa3b21
|
|
| MD5 |
9c0fcaeda0b2b1f6150e994f0f896b18
|
|
| BLAKE2b-256 |
1b36592590e852347b8149f1e3020d5689beecc972421ca5736520c9952cef4b
|
File details
Details for the file peargent-0.1.5-py3-none-any.whl.
File metadata
- Download URL: peargent-0.1.5-py3-none-any.whl
- Upload date:
- Size: 129.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aafa97445a373c1721be59457bc4ad63cd12c17294e674d004cce12f99dc7c59
|
|
| MD5 |
43a29ada66449faf6d2bffc162d46406
|
|
| BLAKE2b-256 |
9c4f289a2b3ab3d8ee2f3e4a0d9dad8fd5f8508e3f5873d77039ddaf9baf304f
|