Skip to main content

tool_search_matches_from_content

Function tool_search_matches_from_content 

Source
fn tool_search_matches_from_content(raw_content: Option<&Value>) -> Vec<String>
Expand description

Walk a tool_result.content array looking for the CLIENT ToolSearch result wire shape - [{type: "tool_reference", tool_name: "..."}, ...] - and return the matched tool names in source order. Anything not a tool_reference entry is skipped, so a mixed-content result still surfaces the references it carried.