AgentOps integration with the OpenAI Agents SDK for TypeScript/JavaScript.
OpenAI Agents JS is a lightweight yet powerful SDK for building multi-agent workflows in TypeScript. AgentOps seamlessly integrates to provide observability into these workflows.
import { agentops } from 'agentops';import { Agent, run } from '@openai/agents';await agentops.init();const agent = new Agent({ name: 'Assistant', instructions: 'You are a helpful assistant.'});const result = await run(agent, 'Hello, world!');console.log(result.finalOutput);