pub fn dynamic_tool_name(tool: &Value) -> Option<&str>Expand description
Name of a dynamic system-message tool entry.
Accepts both the OpenAI wrapped form
{"type": "function", "function": {"name": ...}} and the bare
function-schema form {"name": ...} that some Kimi clients send. Returns
None for entries with no string name.