Installation
Setting Up API Keys
Before using OpenAI with AgentOps, you need to set up your API keys. You can obtain:- OPENAI_API_KEY: From the OpenAI Platform
- AGENTOPS_API_KEY: From your AgentOps Dashboard
.env file.
Usage
Initialize AgentOps at the beginning of your application to automatically track all OpenAI API calls:Examples
More Examples
Multi-Tool Orchestration
Advanced multi-tool RAG example
Async OpenAI Example
Demonstrates asynchronous calls with the OpenAI SDK.
Sync OpenAI Example
Shows synchronous calls with the OpenAI SDK.
Web Search Example
Example of integrating web search capabilities.

