One output of a tool call: the result, what the model sees of it
(encoded_result, or model_output from the tool's
to_model_output for a final success), whether it is a failure (and
its origin) and whether it is a preliminary progress value.
Attributes#
| Attribute | Type | Description |
|---|---|---|
result | object | |
encoded_result | object | |
is_failure | bool | |
preliminary | bool | |
failure_origin | FailureOrigin | None = None | |
model_output | tuple[ToolModelOutputPart, ...] | None = None |
Functions#
__init__#
__init__(result, encoded_result, is_failure, preliminary, failure_origin=None, model_output=None) -> None| Parameter | Type | Description |
|---|---|---|
result | object | |
encoded_result | object | |
is_failure | bool | |
preliminary | bool | |
failure_origin | FailureOrigin | None = None | |
model_output | tuple[ToolModelOutputPart, ...] | None = None |