GitHub

API reference for Outcome.

A handler's final result: encoded_result is what the model saw (JSON), and a failure keeps its origin.

Attributes

AttributeTypeDescription
is_failurebool
encoded_resultobject
failure_originFailureOrigin | None = None
returnedbool = False

A failure the call gave as a result, not raised, though its tool is in "error" mode (the ToolOutcomeUnknown a tool ledger tells the model); otherwise a failure replays as the tool's failure_mode says.

Functions

__init__

__init__(is_failure, encoded_result, failure_origin=None, returned=False) -> None
ParameterTypeDescription
is_failurebool
encoded_resultobject
failure_originFailureOrigin | None = None
returnedbool = False