getFilePathFromToolInput static method
Extract the primary file/directory path from a tool_use input.
Implementation
static String? getFilePathFromToolInput(dynamic toolInput) {
if (toolInput is Map) {
return (toolInput['file_path'] as String?) ??
(toolInput['path'] as String?);
}
return null;
}