GitHub

ToolCallPart

API reference for ToolCallPart.

A tool call the model made (its params as the model sent them).

Attributes

AttributeTypeDescription
typeLiteral['tool-call'] = 'tool-call'
idstr
namestr
paramsobject
provider_executedbool = False
optionsProviderOptions = field(default_factory=_options)

Functions

__init__

__init__(id, name, params, provider_executed=False, options=_options()) -> None
ParameterTypeDescription
idstr
namestr
paramsobject
provider_executedbool = False
optionsProviderOptions = _options()

pipe

pipe[B](f) -> B
ParameterTypeDescription
fCallable[[Self], B]

Returns B

def pipe[B](self, f: Callable[[Self], B], /) -> B:
    return f(self)