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.4.tar.gz (69.1 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.4-py3-none-any.whl (89.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: peargent-0.1.4.tar.gz
  • Upload date:
  • Size: 69.1 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.4.tar.gz
Algorithm Hash digest
SHA256 786148505370e98cb651c4ba6ca7c7e5763856f50fc6eb617faff4b53ef63625
MD5 1b33c11b95aa666fbafbeed87e64c80d
BLAKE2b-256 7340b47f35c2933b93449e6a562db2f263c6e360635cbba22591ffc766b2f062

See more details on using hashes here.

File details

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

File metadata

  • Download URL: peargent-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f8a44512bd477c18e8f9b1a39d8c68aedeb96542d9997233f2399e77602d94b6
MD5 dadbd73f9f5869e054f6f0476bbfb77b
BLAKE2b-256 a68e8c10dc62fa1beb9274ecb59667718b0fc654370b9c79f83eae44059781b3

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