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, 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 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.2.tar.gz (68.2 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.2-py3-none-any.whl (88.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: peargent-0.1.2.tar.gz
  • Upload date:
  • Size: 68.2 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.2.tar.gz
Algorithm Hash digest
SHA256 c9c9b570ac4c4d629bdd1e2beea94d55c78ad424104412ba68aae7ea3bc72197
MD5 dc1549e0a06ad7b5b85d0c0bacabc5c2
BLAKE2b-256 b519689235a533821f6c091252238d710fab4d5b41f2078c9dea374a78514642

See more details on using hashes here.

File details

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

File metadata

  • Download URL: peargent-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 88.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a9a7906d54a84550eda8100ffe57f1d5cdead35bf81a9a358d6375b69251a148
MD5 e1f17f7af7eba380966c0606687e0088
BLAKE2b-256 96a7bfa16a03a5306c6cd160163f6f3249afa579fe3c34743c275f85a6f1acfd

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