Skip to main content

handle_tool_call

Function handle_tool_call 

Source
pub async fn handle_tool_call(
    bash_state_arc: &Arc<Mutex<Option<BashState>>>,
    bash_command: BashCommand,
) -> Result<String>
Expand description

Handles the BashCommand tool call with WCGW parity

This function processes the BashCommand tool call following WCGW Python’s execute_bash() function behavior exactly.