Integrations
Anthropic
Track and analyze your Anthropic API calls with AgentOps
AgentOps provides seamless integration with Anthropic’s Python SDK, allowing you to track and analyze all your Claude model interactions automatically.
Installation
Make sure to call agentops.init
before calling any openai
, cohere
, crew
, etc models.
Usage
Initialize AgentOps at the beginning of your application to automatically track all Anthropic API calls:
Advanced Examples
Streaming Example
AgentOps automatically tracks streaming completions:
System Prompt Example
AgentOps tracks interactions with system prompts:
Tool Use Example
AgentOps tracks tool use with Claude:
Environment Variables
Set your API key as an .env
variable for easy access.
Read more about environment variables in Advanced Configuration