Skip to main content

split_tool_name

Function split_tool_name 

Source
pub fn split_tool_name(tool_name: &str) -> (String, String)
Expand description

Back-compat shim for call sites that still don’t know the resolved provider name. New code should call provider_and_op directly.

Falls back to the old colon-only split for provider:op style names. For flat tool names with no separator, returns the tool name as the operation (NOT “unknown” — never lie about what failed) and an empty provider, which the caller is expected to overwrite.