timeout • AI Agent SDK

timeout: Create a timeout outcome.

timeout

Method

</div>

This is a method of the AgentRunOutcome class in the run_outcome module.

Create a timeout outcome.

Signature

python
def timeout(error: str, elapsed_s: float, agent_name: Optional[str], run_id: Optional[str], context: Optional[Dict[str, Any]]) -> 'AgentRunOutcome'

Parameters

ParamField str

No description available.

ParamField float

No description available.

ParamField Optional[str]

No description available.

ParamField Optional[str]

No description available.

ParamField Optional

No description available.

Returns

ResponseField 'AgentRunOutcome'

The result of the operation.

Uses

  • cls

Source

View on GitHub

praisonaiagents/run_outcome.py at line 215