Skip to main content

execute_tool_task_logic

Function execute_tool_task_logic 

Source
pub async fn execute_tool_task_logic(
    tool_call: ToolCall,
    tool_executor: Arc<ToolExecutor>,
    token: CancellationToken,
) -> Result<ToolResult, ToolError>
Expand description

Executes the core logic of a tool call, handling cancellation. Returns the raw string output of the tool or an error. Does NOT interact with Conversation or OpContext directly.