def build_missing_tool_output(bad_tool_call: ToolSelection) -> ToolOutput:
    """
    Build a ToolOutput for the case where a tool is not found. This output contains
    instructions that ask the LLM to double check the tool name, along with the
    hallucinated tool name itself.
    """
    return build_error_tool_output(
        bad_tool_call.tool_name,
        bad_tool_call.tool_kwargs,
        build_missing_tool_message(bad_tool_call.tool_name),
    )

    Build a ToolOutput for the case where a tool is not found. This output contains
    instructions that ask the LLM to double check the tool name, along with the
    hallucinated tool name itself.
    
llama-index-core/llama_index/core/agent/function_calling/step.py