> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sovara-labs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAI Agents SDK

> Record OpenAI Agents SDK tool calls in Sovara traces.

```bash Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
pip install sovara-openai-agents
```

```bash TypeScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
npm install @sovara/openai-agents @sovara/sdk
```

Call once at startup, before creating agents, next to `auto_instrument()`. Function tools are
recorded as tool steps; in Python, agent tools open a child trace. Model calls are recorded by
`auto_instrument()`.

```python theme={"theme":{"light":"github-light","dark":"github-dark"}}
import sovara_openai_agents
from sovara import auto_instrument

auto_instrument()
sovara_openai_agents.instrument()
```

```ts theme={"theme":{"light":"github-light","dark":"github-dark"}}
import { autoInstrument } from "@sovara/sdk";
import { instrumentOpenAIAgents } from "@sovara/openai-agents";

await autoInstrument();
await instrumentOpenAIAgents();
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.