Python SDK for AI agent monitoring, LLM cost tracking, benchmarking, and more. Integrates with most LLMs and agent frameworks including CrewAI, Agno, OpenAI Agents SDK, Langchain, Autogen, AG2, and CamelAI
Python agentagentopsagents-sdkaianthropicautogencost-estimationcrewaievalsevaluation-metricsgroqlangchainllmmistralollamaopenaiopenai-agents
LlamaIndex AgentOps Integration Example
This example demonstrates how to use AgentOps with LlamaIndex for observability and monitoring of your context-augmented generative AI applications.
Setup
- Install required packages:
pip install agentops llama-index-instrumentation-agentops llama-index python-dotenv
- Set your API keys:
export AGENTOPS_API_KEY="your_agentops_api_key"
export OPENAI_API_KEY="your_openai_api_key"
Files
llamaindex_example.py- Python script examplellamaindex_example.ipynb- Jupyter notebook example
Usage
Run the Python script:
python llamaindex_example.py
Or open and run the Jupyter notebook:
jupyter notebook llamaindex_example.ipynb
After running, check your AgentOps dashboard for the recorded session.