agentops  by AgentOps-AI

Python SDK for AI agent monitoring, cost tracking, and benchmarking

created 1 year ago
4,718 stars

Top 10.7% on sourcepulse

GitHubView on GitHub
Project Summary

AgentOps provides a Python SDK for AI agent development, offering comprehensive observability, LLM cost tracking, and benchmarking capabilities. It targets AI developers and researchers building, evaluating, and monitoring AI agents from prototype to production, aiming to improve agent reliability, cost-efficiency, and performance.

How It Works

AgentOps instruments AI agent workflows by integrating with popular LLM providers and agent frameworks. It captures detailed telemetry on agent execution, LLM calls, tool usage, and costs. This data is sent to the AgentOps dashboard for analysis, enabling features like session replays, step-by-step execution graphs, cost management, and security vulnerability detection (e.g., prompt injection). The SDK utilizes decorators (@session, @agent, @operation, @task) to easily add observability to existing codebases with minimal modification.

Quick Start & Requirements

  • Install: pip install agentops
  • Usage: Initialize with agentops.init("<YOUR_API_KEY>") and end sessions with agentops.end_session().
  • Integrations: Additional installs for specific frameworks (e.g., pip install 'crewai[agentops]', pip install agentops[langchain]).
  • Documentation: https://docs.agentops.ai/

Highlighted Details

  • Extensive framework integrations: CrewAI, Langchain, AutoGen (AG2), Camel AI, OpenAI Agents SDK, Cohere, Anthropic, Mistral, LlamaIndex, and more.
  • Features include session replays, LLM cost tracking, agent benchmarking, and prompt injection detection.
  • Supports async/await, generators, and custom attributes for detailed span tracking.
  • Time travel debugging capabilities are available.

Maintenance & Community

  • Active development with a roadmap for new features like evaluation builders and improved debugging.
  • Community support via Discord.
  • Popular projects like MetaGPT and LlamaIndex integrate with AgentOps.

Licensing & Compatibility

  • The SDK is available under a permissive license, allowing for commercial use and integration with closed-source applications. Specific license details are not explicitly stated in the README but implied by broad integration support.

Limitations & Caveats

  • Requires an AgentOps API key for full functionality, implying a commercial service.
  • Some advanced features like "Agent Arena" and certain evaluation capabilities are listed as "coming soon" or "roadmap."
Health Check
Last commit

1 day ago

Responsiveness

1 day

Pull Requests (30d)
48
Issues (30d)
27
Star History
437 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Steven Hao Steven Hao(Cofounder of Cognition), and
6 more.

openai-agents-python by openai

1.5%
13k
Python SDK for multi-agent workflows
created 4 months ago
updated 22 hours ago
Feedback? Help us improve.