Invalid Output • AI Agent SDK

invalid_output: Create an invalid output outcome.

invalid_output

Method

</div>

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

Create an invalid output outcome.

Signature

python
def invalid_output(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 255


Related Documentation