AutoGPT plugin for Agent Observability - automatic logging, cost tracking, and compliance
Project description
Agent Observability for AutoGPT
AutoGPT plugin for structured logging, cost tracking, and compliance audit trails.
Installation
pip install agent-observability-autogpt
Setup
1. Get Your Free API Key
curl -X POST https://api-production-0c55.up.railway.app/v1/register \
-H "Content-Type: application/json" \
-d '{"agent_id":"my-autogpt"}'
2. Set Environment Variable
export AGENT_OBS_API_KEY=ao_live_your_key_here
3. Enable in AutoGPT
Add to your AutoGPT plugins configuration:
agent-observability-autogpt
What Gets Logged Automatically
| Event | When | Data |
|---|---|---|
task_started |
New instruction received | instruction preview |
command_executed |
After each command | command name, arguments |
agent_response |
Agent generates response | response length, preview |
planning |
Planning phase starts | prompt length, message count |
Manual Logging
Your AutoGPT agent can also log custom events:
from agent_observability_autogpt import AgentObservabilityPlugin
plugin = AgentObservabilityPlugin()
# Log an API call with cost
plugin.log_event(
event_type="api_call",
metadata={
"provider": "openai",
"model": "gpt-4",
"cost_usd": 0.03,
"latency_ms": 1200
}
)
# Log a decision
plugin.log_event(
event_type="decision",
metadata={
"decision": "use_web_search",
"reason": "need current information"
}
)
# Get task summary
summary = plugin.get_task_summary()
print(f"Task cost so far: ${summary['total_cost_usd']}")
print(f"Commands executed: {summary['commands_executed']}")
Features
- Automatic Logging: All commands and responses logged automatically
- Cost Tracking: Track spending per task
- Task Metrics: Elapsed time, command count, cumulative costs
- Compliance Ready: SOC 2, GDPR audit trail requirements
- Zero Configuration: Just set the API key
Pricing
| Tier | Logs/Month | Price |
|---|---|---|
| Free | 100,000 | $0 |
| Starter | 1,000,000 | $29/month |
| Professional | 10,000,000 | $199/month |
Related Packages
- agent-observability — Core Python SDK
- agent-observability-langchain — LangChain integration
- agent-observability-crewai — CrewAI integration
License
MIT License — see LICENSE for details.
Links
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
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 agent_observability_autogpt-1.2.0.tar.gz.
File metadata
- Download URL: agent_observability_autogpt-1.2.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e28111b58437c0d76e24d103981a22bc177cecf37cc8a467f85f31a88255aced
|
|
| MD5 |
2d639aa840c70a9fc2e32a27b3265826
|
|
| BLAKE2b-256 |
b097a64518867fd404ff7f98e1cf1ed7d108f15d668b297c9b022468cd178197
|
File details
Details for the file agent_observability_autogpt-1.2.0-py3-none-any.whl.
File metadata
- Download URL: agent_observability_autogpt-1.2.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8da555a47e83e4eae41bb8a1dbfab1a1c64ebc6cb075ffe9c98ac49b0fa09077
|
|
| MD5 |
f68cc0f5a6ac1c36b99f552ebf0816f4
|
|
| BLAKE2b-256 |
65c9dd11fd839135f85852ae6da35b9e91ca000dade543b71fb7dec07da08ede
|