collapse • AI Agent SDK
collapse: Project a “RunTerminal“ onto the existing “RunStatus“ vocabulary.
collapse
Function
</div>
This function is defined in the run_outcome module.
Project a `RunTerminal onto the existing RunStatus` vocabulary.
Collapses to exactly one of `success/timeout/cancelled/ failure` for all downstream consumers.
Signature
def collapse(outcome: RunTerminal) -> RunStatusParameters
ParamField
RunTerminalNo description available.
Returns
ResponseField
RunStatusThe result of the operation.
Source
View on GitHubpraisonaiagents/run_outcome.py at line 447