DelegatingToolkit class
- Inheritance
- Implementers
Constructors
- DelegatingToolkit(Toolkit inner)
Properties
Methods
-
coerce(
ToolCall call) → Map< String, Object?> -
The model's arguments rewritten leniently, before anything checks them (default: unchanged).
override
-
confirmationQuestion(
ToolCall call, ConfirmationContext context) → String? -
The question
callasks before it runs; null usesAssistantStrings.confirmDefault.override -
execute(
ToolCall call, ToolContext context) → Future< ToolResult> -
Runs
call. A model's mistake is a ToolFailure; an exception followsAssistantConfig.toolErrors. The call must start synchronously (before the firstawait): the assistant readsToolContext.annotationsin the same step.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void -
A new conversation starts: forget what the old one did (a backend's ledgers).
override
-
restoreState(
Map< String, Object?> state) → void -
Takes back what saveState gave, after a reset.
override
-
saveState(
) → Map< String, Object?> ? -
What a conversation snapshot keeps of the toolkit; null for nothing.
override
-
spec(
String name) → ToolSpec? -
The spec of
name; null for a tool the toolkit does not have (the assistant answersunknown tool).override -
statusLabel(
ToolCall call) → String? -
The label shown while
callruns; null usesAssistantStrings.working.override -
timeoutOf(
ToolCall call) → Duration? -
Longest wait for
call's result; null usesAssistantConfig.toolTimeout.override -
toString(
) → String -
A string representation of this object.
inherited
-
validate(
ToolCall call) → List< String> -
The problems of
call's (coerced) arguments; empty when valid. Default: validateArguments against the spec.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited