pub fn infer_from_tool_call( tool: &str, action: Option<&str>, args: &Map<String, Value>, project_root: Option<&str>, ) -> Option<IntentRecord>