RunAnywhereTools class

Tools (function calling) capability surface.

Access via RunAnywhere.tools.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelGeneration() bool
Cancel the in-flight generateWithTools call, if any.
clearTools() → void
Clear all registered tools.
execute(ToolCall toolCall) Future<ToolResult>
Execute a tool call manually. Used when autoExecute: false is passed to generateWithTools.
generateWithTools(String prompt, {LLMGenerationOptions? llmOptions, ToolCallingOptions? options, ToolChoiceMode? toolChoice, String? forcedToolName, bool? validateCalls}) Future<ToolCallingResult>
Generate text with tool calling support. Delegates the full parse-execute-loop to commons via rac_tool_calling_session_create_proto; Dart only runs registered executors when commons emits a tool_call event.
getRegisteredTools() List<ToolDefinition>
Get all registered tool definitions.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerTool(ToolDefinition definition, ToolExecutor executor) → void
Register a tool that the LLM can use.
toString() String
A string representation of this object.
inherited
unregisterTool(String toolName) → void
Unregister a tool by name.

Operators

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

Static Properties

shared RunAnywhereTools
no setter