fix: Add LlmRole.UTILITY_TOOL to analyzeScreenshot function calls.

This commit is contained in:
Gaurav Ghosh
2026-02-17 13:17:14 -08:00
parent 7718709f01
commit 6732115859
2 changed files with 3 additions and 0 deletions
@@ -125,6 +125,7 @@ describe('analyzeScreenshot', () => {
]),
}),
'visual-analysis',
'utility_tool',
);
// Verify result
@@ -29,6 +29,7 @@ import type { BrowserManager } from './browserManager.js';
import type { Config } from '../../config/config.js';
import { getVisualAgentModel } from './modelAvailability.js';
import { debugLogger } from '../../utils/debugLogger.js';
import { LlmRole } from '../../telemetry/llmRole.js';
/**
* System prompt for the visual analysis model call.
@@ -146,6 +147,7 @@ class AnalyzeScreenshotInvocation extends BaseToolInvocation<
],
},
'visual-analysis',
LlmRole.UTILITY_TOOL,
);
// Extract text from response