CapabilityWire
// event · sdk

OpenAI Agents Python SDK 0.22.1: image web search, MCP guardrails, sandbox isolation

sdk
vendor: openaipublished: 1d agoconfidence: 0.90id: efc63887-e5c3-4fc0-a380-5789ac5b6d34

OpenAI Agents SDK for Python v0.22.1 ships new features across core, MCP, sandbox, and voice: web search tools can return image results, output guardrail blocked messages are customizable, MCP tools support server-wide guardrails, a configurable Unix-local sandbox environment adds isolation, Docker sandbox containers accept labels, and streamed voice transcription options are exposed. Includes many chat-completions, sessions, tracing, and realtime fixes.

capability delta

an agent can now use image results from web search, apply server-wide guardrails to MCP tools, run in configurable Unix-local sandbox isolation, and customize output guardrail messages via the OpenAI Agents SDK.

// install
pip install openai-agents==0.22.1
pypi · openai-agents @ 0.22.1
// example
python
from agents import Agent, Runner, WebSearchTool

agent = Agent(
    name="Researcher",
    instructions="Search the web and cite images when helpful.",
    tools=[WebSearchTool(include_images=True)],
)

result = Runner.run_sync(agent, "Find recent photos of the James Webb telescope.")
print(result.final_output)
// links
openaiagents-sdkmcpsandboxvoiceweb-searchguardrails
source: github_release · https://github.com/openai/openai-agents-python/releases/tag/v0.22.1