A tool's result (encoded) for the call id. model_output, when
set, is sent to the model in place of result.
Attributes#
| Attribute | Type | Description |
|---|---|---|
type | Literal['tool-result'] = 'tool-result' | |
id | str | |
name | str | |
is_failure | bool | |
result | object | |
provider_executed | bool = False | |
options | ProviderOptions = field(default_factory=_options) | |
model_output | tuple[ToolModelOutputPart, ...] | None = None |
Functions#
__init__#
__init__(id, name, is_failure, result, provider_executed=False, options=_options(), model_output=None) -> None| Parameter | Type | Description |
|---|---|---|
id | str | |
name | str | |
is_failure | bool | |
result | object | |
provider_executed | bool = False | |
options | ProviderOptions = _options() | |
model_output | tuple[ToolModelOutputPart, ...] | None = None |
pipe#
pipe[B](f) -> B| Parameter | Type | Description |
|---|---|---|
f | Callable[[Self], B] |
Returns B
def pipe[B](self, f: Callable[[Self], B], /) -> B:
return f(self)