LlmToolBinding class abstract interface

Tools a provider runs while the request is in flight: each call the model makes is dispatched here and its answer sent back.

Per request, so whatever scope and consent the binding carries ends with it. A refusal is an answer with isError: true, never a throw.

Properties

declarations → List<ToolDescriptor>
Every tool the model may call.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(String name, Map<String, Object?> arguments) → Future<LlmToolAnswer>
Runs name with arguments and answers the model.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited