agentwatch is a cutting-edge observability framework designed to provide deep insights into AI agent interactions across diverse platforms and frameworks. By seamlessly intercepting, logging, and analyzing interactions, agentwatch empowers developers to understand and optimize their AI-driven applications with unprecedented visibility.
- A One-liner Observability Framework: Get instant insights with just a single import
- Comprehensive Interaction Tracking: Monitor LLM and tool calls in real-time
- Advanced Visualization: Generate intuitive graphs for in-depth analysis
- Detailed Metadata Capture: Log tool inputs, arguments, and performance metrics
- Multi-Framework Support: Compatible with various AI development frameworks
- Langgraph
- Autogen
- ...
- Any other* framework or library which uses an LLM :D
We're working on updating our models to match the various providers - stay tuned!
To ensure compatibility with agentwatch, your application must be written in Python. The visualization UI will be built locally on your endpoint using npm, so make sure you have the following installed:
- Python 3.11+
- npm
Install agentwatch directly from GitHub:
pip install git+https://github.com/cyberark/agentwatch.git
-
Import agentwatch in your main module:
import agentwatch
-
Ensure your entry point is within a
__main__
block:if __name__ == "__main__": # Your code execution starts here
-
Launch the UI:
agentwatch ui # (Take note this will open a new tab in your browser)
Run your main module - and AI agent interactions will now be automatically tracked and monitored in the UI!
We've included a few examples under the examples/ folder. To use the examples, clone this repository, and follow these steps:
-
Install python dependencies using poetry. If you don't have Poetry installed, get it here
poetry install --with dev
-
Run the UI
./run_ui.sh
-
Run one of the examples under examples/. Don't forget to set the necessary API keys in the .env file
poetry run python examples/langgraph_example.py
For comprehensive guides and detailed usage instructions, visit our GitHub Wiki.
We welcome contributions! Please review our CONTRIBUTING.md for guidelines on how to get involved.
agentwatch is released under the Apache License 2.0.
Have questions or suggestions? Reach out to us through LinkedIn: Shai Dvash or join our Discord Community.
A project from CyberArk, dedicated to advancing AI observability and security.