pub fn tool_groups(tools: &[ToolDefinition]) -> Vec<ToolGroup>Expand description
Fold tool definitions into namespace-derived groups.
Tools without a namespace are skipped – they are core tools and do not belong to any group. Groups are returned sorted by name for a deterministic, stable ordering across calls.