// event · sdk
OpenAI Agents SDK (Python) v0.24.0 — MCP annotations & run-wide tool error formatting
sdkvendor: openaipublished: 1h agoconfidence: 0.86id: bcc354c2-e465-481c-a436-386773c33904
OpenAI Agents SDK for Python v0.24.0 exposes MCP annotations on converted tools and adds run-wide tool exception formatting. Fixes include batching OpenAI conversation session writes within API limits, deferring auto-compaction while approvals are pending, atomic Redis compaction history replacement, honoring Runner tracing opt-outs in caller traces, and omitting unserializable dataclass run contexts.
capability delta
an agent can now surface MCP tool annotations on converted tools and apply run-wide custom formatting for tool-call exceptions when using the OpenAI Agents SDK.
// install
pip install openai-agents==0.24.0pypi · openai-agents @ 0.24.0
// example
python
from agents import Agent, Runner, RunConfig
def format_tool_error(err: Exception) -> str:
return f"tool failed: {type(err).__name__}: {err}"
agent = Agent(name="assistant", instructions="Help the user.")
result = Runner.run_sync(
agent,
"Summarize today's news",
run_config=RunConfig(tool_use_behavior="run_llm_again",
tool_error_formatter=format_tool_error),
)
print(result.final_output)// links