OpenAI Agents

Local AgentInspect processor for OpenAI Agents JS. Prefer setTraceProcessors for local-only traces.

Local-only mode

Prefer `setTraceProcessors([agentInspect(...)])` when you want AgentInspect traces without OpenAI's default export pipeline. Using `addTraceProcessor` may leave the default export enabled.

Example

ts
import { setTraceProcessors } from "@openai/agents";
import { agentInspect } from "@agent-inspect/openai-agents";

setTraceProcessors([
  agentInspect({
    traceDir: ".agent-inspect",
    capture: "metadata-only",
  }),
]);

Privacy notes

Full reference in GitHub docs

Full reference remains in GitHub docs during the docs migration.