RunAnywhereToolCalling extension

Tool calling extension for RunAnywhere

Provides:

  • Tool registration and management
  • Tool-enabled generation with automatic execution
  • Manual tool execution support
on

Static Methods

clearTools() → void

Available on RunAnywhere, provided by the RunAnywhereToolCalling extension

Clear all registered tools
continueWithToolResult(String originalPrompt, ToolResult toolResult, {ToolCallingOptions? options}) Future<ToolCallingResult>

Available on RunAnywhere, provided by the RunAnywhereToolCalling extension

Continue generation after manual tool execution.
executeTool(ToolCall toolCall) Future<ToolResult>

Available on RunAnywhere, provided by the RunAnywhereToolCalling extension

Execute a tool call manually.
formatToolsForPrompt([List<ToolDefinition>? tools]) String

Available on RunAnywhere, provided by the RunAnywhereToolCalling extension

Format tools for system prompt.
generateWithTools(String prompt, {ToolCallingOptions? options}) Future<ToolCallingResult>

Available on RunAnywhere, provided by the RunAnywhereToolCalling extension

Generate text with tool calling support.
getRegisteredTools() List<ToolDefinition>

Available on RunAnywhere, provided by the RunAnywhereToolCalling extension

Get all registered tool definitions
parseToolCall(String llmOutput) ToolCall?

Available on RunAnywhere, provided by the RunAnywhereToolCalling extension

Parse tool call from LLM output.
registerTool(ToolDefinition definition, ToolExecutor executor) → void

Available on RunAnywhere, provided by the RunAnywhereToolCalling extension

Register a tool with the SDK.
unregisterTool(String toolName) → void

Available on RunAnywhere, provided by the RunAnywhereToolCalling extension

Unregister a tool by name