module documentation

Undocumented

Class TemporalOpenAIRunner Temporal Runner for OpenAI agents.
Function _convert_agent Undocumented
Function _has_sandbox_agent Check if any agent in the graph (following direct Agent handoffs) is a SandboxAgent.
Function _model_name Undocumented
Function _reraise_workflow_failure Rewrap an AgentsException whose cause is a Temporal workflow failure.
def _convert_agent(model_params: ModelActivityParameters, agent: Agent[Any], seen: dict[int, Agent] | None) -> Agent[Any]: (source)

Undocumented

def _has_sandbox_agent(agent: Agent[Any], seen: set[int] | None = None) -> bool: (source)

Check if any agent in the graph (following direct Agent handoffs) is a SandboxAgent.

def _model_name(agent: Agent[Any]) -> str | None: (source)

Undocumented

def _reraise_workflow_failure(e: AgentsException): (source)

Rewrap an AgentsException whose cause is a Temporal workflow failure.

Returns normally when e is not workflow-failure-bearing so the caller can re-raise the original.