Skip to main content

A modern Python framework for building intelligent AI agents with advanced tracing, history management, and seamless LLM integration

Project description

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.

License

MIT License - see LICENSE file for details

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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

peargent-0.1.3.tar.gz (69.0 kB view details)

Uploaded Source

Built Distribution

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

peargent-0.1.3-py3-none-any.whl (89.4 kB view details)

Uploaded Python 3

File details

Details for the file peargent-0.1.3.tar.gz.

File metadata

  • Download URL: peargent-0.1.3.tar.gz
  • Upload date:
  • Size: 69.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for peargent-0.1.3.tar.gz
Algorithm Hash digest
SHA256 84af48294f4f266c4d19cd5c6336b6b7320475eebbd7494f15ad305a24e75924
MD5 00d7f6156d0a5f9ec5d1c0f9a890fce4
BLAKE2b-256 ec6bf1ad1244f13fbd894ecbc82fc4482d0d12ae7173a3f048c98841f6adb88f

See more details on using hashes here.

File details

Details for the file peargent-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: peargent-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 89.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for peargent-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 664bca1db2b19894cf97059cd3719420b966ea61b22662787f0f6a1890db09e2
MD5 c06a22a795ac482c13bcff93712e7cb3
BLAKE2b-256 249d34c0937cc319b7992146d670b4901cb8554b0bbf39f3a6f79b50b8fe8c85

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