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.

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

peargent-0.1.5.tar.gz (102.8 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.5-py3-none-any.whl (129.2 kB view details)

Uploaded Python 3

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

Hashes for peargent-0.1.5.tar.gz
Algorithm Hash digest
SHA256 3cd33365b0cf0459745f553f5976645719793fb9aacb2cc042f74f39a0fa3b21
MD5 9c0fcaeda0b2b1f6150e994f0f896b18
BLAKE2b-256 1b36592590e852347b8149f1e3020d5689beecc972421ca5736520c9952cef4b

See more details on using hashes here.

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

Hashes for peargent-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 aafa97445a373c1721be59457bc4ad63cd12c17294e674d004cce12f99dc7c59
MD5 43a29ada66449faf6d2bffc162d46406
BLAKE2b-256 9c4f289a2b3ab3d8ee2f3e4a0d9dad8fd5f8508e3f5873d77039ddaf9baf304f

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