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 advanced tracing, history management, and seamless LLM integration.

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, 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

agent = create_agent(
    name="assistant",
    persona="You are a helpful AI assistant.",
    model=groq("llama-3.3-70b-versatile")
)

result = agent.run("What is the capital of France?")
print(result)

For more examples and detailed documentation, visit the Documentation.

License

MIT License - see LICENSE file for details

Contributing

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

Author

Created by Quanta-Naut

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.1.tar.gz (63.9 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.1-py3-none-any.whl (82.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: peargent-0.1.1.tar.gz
  • Upload date:
  • Size: 63.9 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.1.tar.gz
Algorithm Hash digest
SHA256 6d79602f24aa2d1dfc797a8f5ce9b37f7f42e920ec93cf5d749237316d447b74
MD5 a7d4201f4ddc326019c1aea0434336f5
BLAKE2b-256 5cd04db6468f92f1ff056c3a80b4d3eb9911225603604a686929125f01f53a2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: peargent-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 82.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 222549ba60e9b015f881dfe9a8fe9feab6e9c4031637b1f16ea11a5ac8baaa05
MD5 c746e2b74d62e8bdab375d86548ebcb6
BLAKE2b-256 1a9d02fc14094466146266593591a62503e3233908e6689263a65c7ebcf0b487

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