Skip to content

OpenAI Agents SDK (tracing-only)

Compatibility label: tracing-only. Tested with openai-agents 0.24.0 TracingProcessor ingest. Goshikq does not execute Runner.run as the runtime, intercept SDK tool calls, or treat ingested traces as VERIFIED. A real offline Runner.run has not been demonstrated on this host.

Goshikq does not execute or approve OpenAI Agents SDK tools. The integration imports traces the SDK emits through public tracing processor hooks (agents.tracing.TracingProcessor, add_trace_processor).

Imported runs stay UNVERIFIED / NOT_EVALUATED unless a separate Goshikq native run verifies authoritative state.

examples/openai-agents-refund/main.py uses the real SDK when agents is installed, otherwise a local mock that still emits OTLP. The mock path is a fallback, not a compatibility claim.

Terminal window
python -m pip install openai-agents
python examples/openai-agents-refund/main.py

tests/otel/test_openai_agents_sdk.py requires a reachable goshikq-server and the agents package.

  • Always: register a public TracingProcessor, ingest OTLP, assert the run is not VERIFIED.
  • Offline Runner.run: attempted via agents.models.fake_model.FakeModel when that type exists in the installed version.
  • Paid provider calls are not required and are not made in the default test.

If Runner.run cannot complete offline, the test still ingests processor-emitted (or explicitly labeled processor-only) spans and records the limitation instead of substituting hand-written OTLP as “full SDK compatibility.”