GitHub

ToolApprovalRequestPart

API reference for ToolApprovalRequestPart.

The model asked to run the tool call tool_call_id, which needs approval.

Attributes

AttributeTypeDescription
typeLiteral['tool-approval-request'] = 'tool-approval-request'
approval_idstr
tool_call_idstr
optionsProviderOptions = field(default_factory=_options)

Functions

__init__

__init__(approval_id, tool_call_id, options=_options()) -> None
ParameterTypeDescription
approval_idstr
tool_call_idstr
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)