Skip to main content

handle_tool_call

Function handle_tool_call 

Source
pub async fn handle_tool_call(
    bash_state: &Arc<Mutex<Option<BashState>>>,
    args: ContextSave,
) -> Result<String>
Expand description

Handle a call to the ContextSave tool

This function processes a ContextSave request, saves context information about a task, including file contents from specified globs, to a single file.

§Arguments

  • bash_state - Shared reference to the bash state
  • args - Parameters for the ContextSave operation

§Returns

A Result with the path where the context file was saved, or an error