Skip to main content

Peargent Logo

Peargent

PyPI version License: MIT

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

Metadata

Release files for peargent 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for peargent 0.1.5
File Size Uploaded
peargent-0.1.5.tar.gz 102.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for peargent 0.1.5
File Interpreter ABI Platform
peargent-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 232.0 kB

Release files / peargent-0.1.5.tar.gz

Download URL peargent-0.1.5.tar.gz
Size 102.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3cd33365b0cf0459745f553f5976645719793fb9aacb2cc042f74f39a0fa3b21
BLAKE2b-256 checksum
How to use checksums
1b36592590e852347b8149f1e3020d5689beecc972421ca5736520c9952cef4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / peargent-0.1.5-py3-none-any.whl

Download URL peargent-0.1.5-py3-none-any.whl
Size 129.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aafa97445a373c1721be59457bc4ad63cd12c17294e674d004cce12f99dc7c59
BLAKE2b-256 checksum
How to use checksums
9c4f289a2b3ab3d8ee2f3e4a0d9dad8fd5f8508e3f5873d77039ddaf9baf304f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page