RunAnywhereTools class
Convenience class for tool calling without extension syntax
Use this for simpler imports:
import 'package:runanywhere/public/runanywhere_tool_calling.dart';
RunAnywhereTools.registerTool(...);
final result = await RunAnywhereTools.generateWithTools('...');
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
-
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
Static Methods
-
clearTools(
) → void - Clear all registered tools
-
continueWithToolResult(
String originalPrompt, ToolResult toolResult, {ToolCallingOptions? options}) → Future< ToolCallingResult> - Continue generation after manual tool execution
-
executeTool(
ToolCall toolCall) → Future< ToolResult> - Execute a tool call manually
-
formatToolsForPrompt(
[List< ToolDefinition> ? tools]) → String - Format tools for system prompt
-
generateWithTools(
String prompt, {ToolCallingOptions? options}) → Future< ToolCallingResult> - Generate text with tool calling support
-
getRegisteredTools(
) → List< ToolDefinition> - Get all registered tool definitions
-
parseToolCall(
String llmOutput) → ToolCall? - Parse tool call from LLM output
-
registerTool(
ToolDefinition definition, ToolExecutor executor) → void - Register a tool with the SDK
-
unregisterTool(
String toolName) → void - Unregister a tool by name