Skip to main content

tool_name_to_string

Function tool_name_to_string 

Source
pub fn tool_name_to_string<N>(name: &N) -> String
where N: ToolName,
Expand description

Helper to get string representation of a tool name via serde.

Returns "<unknown_tool>" if serialization fails (should never happen with properly implemented ToolName types that use #[derive(Serialize)]).