module documentation

Undocumented

Class TemporalToolContext Context for tools running within Temporal workflows.
Class _CallToolArguments Undocumented
Class _CallToolResult Undocumented
Class _GetToolsArguments Undocumented
Class _StatefulCallToolArguments Undocumented
Class _StatefulServerSessionArguments Undocumented
Class _TemporalStatefulTool Undocumented
Class _TemporalTool Undocumented
Class _ToolResult Undocumented
Function _handle_worker_failure Surface dedicated-worker failures on the run-scoped task queue.
def _handle_worker_failure(func: Callable) -> Callable: (source) ΒΆ

Surface dedicated-worker failures on the run-scoped task queue.

A schedule-to-start timeout means the dedicated -server-session worker never picked the activity up (it is gone); a heartbeat timeout means it died mid-session. Either way Temporal cannot recreate the in-memory toolset state, so we re-raise as an ApplicationError of type "DedicatedWorkerFailure" for the caller to handle.

Duplicated (rather than shared) from openai_agents._mcp on purpose: these two contribs do not currently share internal code, and importing across them would create an unwanted dependency.