A tool call the model made (its params as the model sent them).
Attributes#
| Attribute | Type | Description |
|---|---|---|
type | Literal['tool-call'] = 'tool-call' | |
id | str | |
name | str | |
params | object | |
provider_executed | bool = False | |
options | ProviderOptions = field(default_factory=_options) |
Functions#
__init__#
__init__(id, name, params, provider_executed=False, options=_options()) -> None| Parameter | Type | Description |
|---|---|---|
id | str | |
name | str | |
params | object | |
provider_executed | bool = False | |
options | ProviderOptions = _options() |
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)