A comprehensive Python library for tracking AI agent events across LangChain, CrewAI, and AutoGPT frameworks
Project description
Teraace Agentic Tracker
A comprehensive Python library for tracking AI agent events across 20 major agentic frameworks and sending them to the Teraace API for monitoring and analysis.
🚀 Features
- 20 Framework Support: LangChain, CrewAI, AutoGPT, Swarm, LlamaIndex, AutoGen, Phidata, BabyAGI, MetaGPT, TaskWeaver, CAMEL, AgentGPT, SuperAGI, Semantic Kernel, Haystack, Rasa, PydanticAI, DSPy, Mirascope, Instructor
- Unified Tracking: Consistent event tracking across all frameworks
- Production Ready: Buffered delivery, async API client, graceful shutdown
- Thread-Safe: Safe for multi-threaded applications
- Extensible: Easy to add new framework integrations
📦 Teraace Account
Create your Teraace account at https://app.teraace.com/signup
📦 Installation
pip install teraace-tracker
⚡ Quick Start
1. Configuration
Create a .env file:
TERAACE_API_KEY=your_api_key_here
TERAACE_BUFFER_SIZE=20
TERAACE_API_ENDPOINT=https://api.teraace.com/agents
TERAACE_REQUEST_TIMEOUT=30
TERAACE_MAX_RETRIES=3
2. Basic Usage
from teraace_tracker import LangChainTracker
# Initialize tracker
tracker = LangChainTracker()
# Use with your LangChain agent
agent = initialize_agent(
tools=your_tools,
llm=llm,
callbacks=[tracker] # Add tracker as callback
)
# Use agent normally - events are tracked automatically
result = agent.run("What is 2 + 2?")
3. Other Frameworks
- AGENTS.md - Comprehensive examples for all 20 frameworks
# CrewAI
from teraace_tracker import CrewAITracker
tracker = CrewAITracker()
tracker.track_crew_execution(crew)
# OpenAI Swarm
from teraace_tracker import SwarmTracker
tracker = SwarmTracker()
# LlamaIndex
from teraace_tracker import LlamaIndexTracker
tracker = LlamaIndexTracker()
# AutoGen
from teraace_tracker import AutoGenTracker
tracker = AutoGenTracker()
# And 11 more frameworks...
🎯 Supported Frameworks
| Framework | Status | Use Case |
|---|---|---|
| LangChain | ✅ | General-purpose agent framework |
| CrewAI | ✅ | Multi-agent collaboration |
| AutoGPT | ✅ | Autonomous task execution |
| OpenAI Swarm | ✅ | Multi-agent orchestration |
| LlamaIndex | ✅ | Data-centric agents & RAG |
| AutoGen | ✅ | Multi-agent conversations |
| Phidata | ✅ | Production AI assistants |
| BabyAGI | ✅ | Autonomous task prioritization |
| MetaGPT | ✅ | Software development teams |
| TaskWeaver | ✅ | Code-first stateful agents |
| CAMEL | ✅ | Communicative agent societies |
| AgentGPT | ✅ | Web-based autonomous agents |
| SuperAGI | ✅ | Open-source agent infrastructure |
| Semantic Kernel | ✅ | Microsoft AI orchestration |
| Haystack | ✅ | NLP/RAG with agents |
| Rasa | ✅ | Conversational AI |
| PydanticAI | ✅ | Production-grade AI applications |
| DSPy | ✅ | Prompt optimization framework |
| Mirascope | ✅ | Type-safe LLM toolkit |
| Instructor | ✅ | Structured data extraction |
📊 What Gets Tracked
- Agent Lifecycle: Creation, execution, completion
- Tool Usage: Function calls and results
- Memory Operations: Read, write, update operations
- Multi-Agent Interactions: Handoffs and collaboration
- Code Generation: Generated code and execution
- Planning & Reasoning: Agent thought processes
- Resource Management: File and data operations
🔧 Configuration
| Environment Variable | Default | Description |
|---|---|---|
TERAACE_API_KEY |
Required | Your Teraace API key |
TERAACE_BUFFER_SIZE |
20 | Events to buffer before sending |
TERAACE_API_ENDPOINT |
https://api.teraace.com/agent-events |
API endpoint |
📚 Documentation
- AGENTS.md - Comprehensive examples for all 20 frameworks
- API Reference - Detailed API documentation
- Configuration Guide - Advanced configuration options
🛠️ Development
git clone https://github.com/teraace/teraace-tracker
cd teraace-tracker
pip install -e .[dev]
pytest
🤝 Contributing
We welcome contributions! Please see our Contributing Guide for details.
📄 License
MIT License - see LICENSE file for details.
🆘 Support
- Documentation: docs.teraace.com
- Email: support@teraace.com
- Issues: GitHub Issues
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 teraace_tracker-1.1.8.tar.gz.
File metadata
- Download URL: teraace_tracker-1.1.8.tar.gz
- Upload date:
- Size: 76.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3591211375ed3c3c816ccba5ceb673e0322540b81f11371f257ef2fecec32543
|
|
| MD5 |
3f88a5baec6c89b963b3870e824b4a1e
|
|
| BLAKE2b-256 |
120ba651174cc118a49e6108ee5b03108ab996e6afcd93f8f94bedd32c5cdf1f
|
File details
Details for the file teraace_tracker-1.1.8-py3-none-any.whl.
File metadata
- Download URL: teraace_tracker-1.1.8-py3-none-any.whl
- Upload date:
- Size: 88.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98ff5d986a4d04cfafddb79b083c605d707c0abf58bda7dde9b205908585efb8
|
|
| MD5 |
e5e545bb8050140d4ed6d45bbca53658
|
|
| BLAKE2b-256 |
b002ddc27d09c9fa600eab6bdd211347fc937a3f636d99f9691c037fbf905ebf
|