pub fn encode_tool_call_input( clean_input: &Value, intent: Option<&ToolCallIntent>, tool_name: &str, tools: &[ToolSpec], ) -> Value