Skip to main content

AutoGPT plugin for Agent Observability - automatic logging, cost tracking, and compliance

Project description

Agent Observability for AutoGPT

PyPI version Python 3.10+ License: MIT

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

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

agent_observability_autogpt-1.1.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_observability_autogpt-1.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file agent_observability_autogpt-1.1.0.tar.gz.

File metadata

File hashes

Hashes for agent_observability_autogpt-1.1.0.tar.gz
Algorithm Hash digest
SHA256 c4d09e565d20f238664f17a265182d3bda4ae40beb0d61f75c4226d66411c8e2
MD5 9ed52b1342bee8c4c1a348248b37a5c0
BLAKE2b-256 c2d7ec07f7941f3eee490da603e8ace4c7dc631092ebfa8cfd0e74503ba8b6d3

See more details on using hashes here.

File details

Details for the file agent_observability_autogpt-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_observability_autogpt-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 461bf45bc0c86aee29f4f820f2d1ef05e0f0fccb182337a089bfea21d191e3cf
MD5 5bf748282e13cf9529e3e4f610ce2178
BLAKE2b-256 fbb872434ac1112d6179228ad292bbc820557a816fbda9bc562b2e51afb0c921

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