0% found this document useful (0 votes)
145 views5 pages

Agent Monitoring With AgentOps - CrewAI

Uploaded by

arindamsg.de
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
145 views5 pages

Agent Monitoring With AgentOps - CrewAI

Uploaded by

arindamsg.de
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

How to Guides Agent Monitoring with AgentOps

How to Guides

Agent Monitoring with AgentOps


Understanding and logging your agent performance with AgentOps.

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.
How to Guides Agent Monitoring with AgentOps
How to Guides Agent Monitoring with AgentOps

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


How to Guides Agent Monitoring with AgentOps

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


Job Posting
How to Guides
Markdown Validator
Agent Monitoring with AgentOps
Instagram Post
Example of a Crew agent Example of a Crew agent Example of a Crew agent
that generates job posts. that validates Markdown that generates Instagram
files. posts.

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.

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

Was this page helpful? Yes No

Conditional Tasks Agent Monitoring with Langtrace

Powered by Mintlify

You might also like