Add a short description here!
Project description
# AgentFlare Python SDK 🐍
[](https://pypi.org/project/agentflare/)
[](https://github.com/agentflare-ai/agentflare/blob/main/LICENSE)
[](https://discord.gg/agentflare)
[](https://x.com/agentflare)
The official Python SDK for AgentFlare – the infrastructure platform for AI agents. Integrate observability, deployment, and management into your Python-based AI agents with ease.
## 🚀 What is AgentFlare?
AgentFlare provides essential infrastructure for production AI agents, including real-time observability (Telepathy), cost tracking, and one-click deployments. This SDK makes it simple to enhance your agents with these features.
For more on AgentFlare, visit [agentflare.ai](https://agentflare.ai) or our [main docs](https://docs.agentflare.ai).
## ✨ Key Features
- **Telepathy Observability**: Trace decisions, monitor performance, and attribute costs in real-time.
- **Drop-in Integration**: Replace standard imports for instant enhancements.
- **Protocol Agnostic**: Works with MCP and custom protocols.
- **Analytics**: Track latency, errors, and usage.
- **Deployment Tools**: Deploy agent servers directly from your code.
## 🛠️ Installation
Install via pip:
```bash
pip install agentflare
```
Requires Python 3.10+. For development, clone the repo and install dependencies:
git clone https://github.com/agentflare-ai/agentflare.git
cd agentflare
pip install -e ".[dev]"
📚 Quickstart
Enable Observability
# Before: Standard MCP client
from mcp_sdk import Client
# After: With AgentFlare observability
from agentflare import Client # Drop-in replacement
client = Client(api_key="your-agentflare-key")
# Now all interactions are traced automatically!
response = client.chat("Hello, AI agent!")
print(response) # Includes reasoning, perf metrics, and costs
Advanced Usage: Custom Tracing
from agentflare import TelepathyTracer
tracer = TelepathyTracer()
with tracer.span("agent_decision"):
# Your AI agent logic here
decision = model.predict(input_data)
tracer.log_cost(model_cost=0.05) # Track spending
tracer.export() # Send to AgentFlare dashboard
For full examples, check the examples/ directory or our quickstart guide.
📊 Documentation
👥 Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines. Start with issues labeled "good first issue".
📝 License
MIT License. See LICENSE for details.
🤝 Community & Support
- 💬 Join Discord for discussions.
- 🐦 Follow us on X/Twitter.
- 📧 Contact: hello@agentflare.ai.
- 🌟 Star this repo if it helps!
Built with ❤️ by the AgentFlare team in San Francisco.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentflare-0.0.0.tar.gz.
File metadata
- Download URL: agentflare-0.0.0.tar.gz
- Upload date:
- Size: 22.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
463e91072724ab4597816066fea214b323fbdb21b156056079caca02f7398610
|
|
| MD5 |
36b782aafb15609b2a95fe6928fe4f90
|
|
| BLAKE2b-256 |
70bc9bcbc0bc466ba9977a5dbac6dba9e8302a7beace1203a47be7376f6cd28b
|
Provenance
The following attestation bundles were made for agentflare-0.0.0.tar.gz:
Publisher:
publish-to-pypi.yml on agentflare-ai/python-af
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentflare-0.0.0.tar.gz -
Subject digest:
463e91072724ab4597816066fea214b323fbdb21b156056079caca02f7398610 - Sigstore transparency entry: 272190590
- Sigstore integration time:
-
Permalink:
agentflare-ai/python-af@af08658d4eb22f33cde8d9dcf7627ced38cf7114 -
Branch / Tag:
refs/tags/0.0.0 - Owner: https://github.com/agentflare-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@af08658d4eb22f33cde8d9dcf7627ced38cf7114 -
Trigger Event:
release
-
Statement type:
File details
Details for the file agentflare-0.0.0-py3-none-any.whl.
File metadata
- Download URL: agentflare-0.0.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c638374dfceedf06cbd53ec16d6a1b14b20b24a496727bce27ca2f92f747634b
|
|
| MD5 |
3167f543396c1c81c2db1519e8aed04c
|
|
| BLAKE2b-256 |
d82ccdc6e6efa5166a37c8a512be2c136feb65af393d7ff0c3b7eed909b2afe3
|
Provenance
The following attestation bundles were made for agentflare-0.0.0-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on agentflare-ai/python-af
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentflare-0.0.0-py3-none-any.whl -
Subject digest:
c638374dfceedf06cbd53ec16d6a1b14b20b24a496727bce27ca2f92f747634b - Sigstore transparency entry: 272190600
- Sigstore integration time:
-
Permalink:
agentflare-ai/python-af@af08658d4eb22f33cde8d9dcf7627ced38cf7114 -
Branch / Tag:
refs/tags/0.0.0 - Owner: https://github.com/agentflare-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@af08658d4eb22f33cde8d9dcf7627ced38cf7114 -
Trigger Event:
release
-
Statement type: