-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- | ||
title: (AgentOps) Observability using AgentOps | ||
description: Understanding and logging your agent performance with AgentOps. | ||
--- | ||
|
||
# Intro | ||
Observability is a key aspect of developing and deploying conversational AI agents. It allows developers to understand how the agent is performing, how users are interacting with the agent, and how the agent is responding to user inputs. | ||
|
||
AgentOps is a product, idependent of crewAI that provides a comprehensive observability solution for agents. | ||
|
||
This notebook will provide an overview of AgentOps and how to use it with crewAI. | ||
|
||
## AgentOps | ||
|
||
[AgentOps](https://agentops.ai) provides session replays, metrics, and monitoring for agents. | ||
[AgentOps Repo](https://github.com/AgentOps-AI/agentops) | ||
|
||
### Overview | ||
AgentOps provides monotoring for agents in development and production. It provides a dashboard for monitoring agent performance, session replays, and custom reporting. | ||
|
||
![agentops-overview.png](..%2Fassets%2Fagentops-overview.png) | ||
|
||
Additionally, AgentOps provides session drilldowns that allows users to view the agent's interactions with users in real-time. This feature is useful for debugging and understanding how the agent interacts with users. | ||
|
||
![agentops-session.png](..%2Fassets%2Fagentops-session.png) | ||
![agentops-replay.png](..%2Fassets%2Fagentops-replay.png) | ||
|
||
### Features | ||
- LLM Cost management and tracking | ||
- Replay Analytics | ||
- Recursive thought detection | ||
- Custom Reporting | ||
- Analytics Dashboard | ||
- Public Model Testing | ||
- Custom Tests | ||
- Time Travel Debugging | ||
- Compliance and Security | ||
|
||
### Using AgentOps | ||
|
||
Create a user API key here: app.agentops.ai/account | ||
|
||
Add your API key to your environment variables | ||
|
||
``` | ||
AGENTOPS_API_KEY=<YOUR_AGENTOPS_API_KEY> | ||
``` | ||
|
||
Install AgentOps with: | ||
``` | ||
pip install crewai[agentops] | ||
``` | ||
or | ||
``` | ||
pip install agentops | ||
``` | ||
|
||
Before using `Crew` in your script, include these lines: | ||
|
||
```python | ||
import agentops | ||
agentops.init() | ||
``` | ||
|
||
### Crew + AgentOps Examples | ||
- [Job Posting](https://github.com/joaomdmoura/crewAI-examples/tree/main/job-posting) | ||
- [Markdown Validator](https://github.com/joaomdmoura/crewAI-examples/tree/main/markdown_validator) | ||
- [Instagram Post](https://github.com/joaomdmoura/crewAI-examples/tree/main/instagram_post) | ||
|
||
|
||
### Futher Information | ||
To implement more features and better observability, please see the [AgentOps Repo](https://github.com/AgentOps-AI/agentops) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters