askAboutImage static method
Ask a question about an image
Matches Swift: RunAnywhere.askAboutImage(_:image:)
final answer = await RunAnywhere.askAboutImage(
'What color is the dog?',
image: VLMImage.filePath('/path/to/image.jpg'),
);
print(answer); // "The dog is white"
Implementation
static Future<String> askAboutImage(
String question, {
required VLMImage image,
}) async {
final result = await processImage(image, prompt: question);
return result.text;
}