docs: updates for v0.21.0 release - #4381
Conversation
d38ff04 to
ba6bf6b
Compare
ba6bf6b to
7c1d011
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7c1d011f3f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ) | ||
| agent = Agent(name="Geography assistant", model=model) | ||
|
|
||
| result = await Runner.run(agent, "What is the capital of France?") |
There was a problem hiding this comment.
Disable trace export in provider-neutral recipes
When OPENAI_API_KEY is set and the application uses the default trace processor, this Runner.run() call—and the other Agent, Sandbox, and Realtime recipes below—still enables tracing, so BatchTraceProcessor can make an OpenAI trace-export request despite the guide presenting these workflows as in-memory, provider-neutral tests. This can add network dependence and upload test activity; pass RunConfig(tracing_disabled=True) (and the Realtime equivalent) in the recipes or explicitly document a global tracing-disable setup.
Useful? React with 👍 / 👎.
This pull request updates the v0.21.0 documentation with a provider-neutral testing guide for Agent, Sandbox, Realtime, and Voice workflows.
The guide:
ScriptedModel;SandboxAgentworkflow withscripted_sandbox_session(), including FIFO matching, detached histories, structured errors, and caller-owned session cleanup;ScriptedRealtimeModelmessage and tool workflows instead of the TypeScript scenario API;agents.testing,agents.realtime.testing,agents.voice.testing, and the generatedagents.testingsubmodules.The organization follows the TypeScript testing guide's shared recipe and boundary concepts while preserving the Python SDK's distinct Realtime and Voice APIs.
Test plan
make build-docs