Introduction

Observability is a key aspect of developing and deploying conversational AI agents. It allows developers to understand how their agents are performing, how their agents are interacting with users, and how their agents use external tools and APIs. AgentOps is a product independent of CrewAI that provides a comprehensive observability solution for agents.

AgentOps

AgentOps provides session replays, metrics, and monitoring for agents.

At a high level, AgentOps gives you the ability to monitor cost, token usage, latency, agent failures, session-wide statistics, and more. For more info, check out the AgentOps Repo.

Overview

AgentOps provides monitoring for agents in development and production. It provides a dashboard for tracking agent performance, session replays, and custom reporting.

Additionally, AgentOps provides session drilldowns for viewing Crew agent interactions, LLM calls, and tool usage in real-time. This feature is useful for debugging and understanding how agents interact with users as well as other agents.

Features

  • LLM Cost Management and Tracking: Track spend with foundation model providers.
  • Replay Analytics: Watch step-by-step agent execution graphs.
  • Recursive Thought Detection: Identify when agents fall into infinite loops.
  • Custom Reporting: Create custom analytics on agent performance.
  • Analytics Dashboard: Monitor high-level statistics about agents in development and production.
  • Public Model Testing: Test your agents against benchmarks and leaderboards.
  • Custom Tests: Run your agents against domain-specific tests.
  • Time Travel Debugging: Restart your sessions from checkpoints.
  • Compliance and Security: Create audit logs and detect potential threats such as profanity and PII leaks.
  • Prompt Injection Detection: Identify potential code injection and secret leaks.

Using AgentOps

1

Create an API Key

Create a user API key here: Create API Key

2

Configure Your Environment

Add your API key to your environment variables:

AGENTOPS_API_KEY=<YOUR_AGENTOPS_API_KEY>
3

Install AgentOps

Install AgentOps with:

pip install crewai[agentops]

or

pip install agentops
4

Initialize AgentOps

Before using Crew in your script, include these lines:

import agentops
agentops.init()

This will initiate an AgentOps session as well as automatically track Crew agents. For further info on how to outfit more complex agentic systems, check out the AgentOps documentation or join the Discord.

Crew + AgentOps Examples

Further Information

To get started, create an AgentOps account.

For feature requests or bug reports, please reach out to the AgentOps team on the AgentOps Repo.

🐦 Twitter   •   📢 Discord   •   🖇️ AgentOps Dashboard   •   📙 Documentation