u
This commit is contained in:
@@ -261,12 +261,8 @@ export function createAnalyzeImageTool({ googleAuthId, model }) {
|
||||
return defineTool({
|
||||
name: 'analyze_image',
|
||||
description:
|
||||
'Look at one or up to 9 images with a vision model and get its written judgement back. ' +
|
||||
'Paths are VFS-relative (e.g. "images/bild.de-1.avif" from search_images) or ' +
|
||||
'"image/<fullHash>" for a database image. ' +
|
||||
'Passing several paths renders them as a labelled grid in one call — use that to compare ' +
|
||||
'search candidates side by side. The returned text is the vision model\'s answer, so judge from it ' +
|
||||
'rather than claiming to have seen the image yourself.',
|
||||
'Inspect 1–9 images via vision model. Multiple paths render as a labelled comparison grid. ' +
|
||||
'Paths: VFS-relative ("images/foo.avif") or DB ("image/<hash>"). Returns model evaluation.',
|
||||
strict: false,
|
||||
parameters: {
|
||||
type: 'object',
|
||||
@@ -275,23 +271,19 @@ export function createAnalyzeImageTool({ googleAuthId, model }) {
|
||||
properties: {
|
||||
paths: {
|
||||
type: 'array',
|
||||
description:
|
||||
'1–9 image paths. VFS files (e.g. ["images/a-1.avif"]) or database images (e.g. ["image/<fullHash>"]). ' +
|
||||
'Several paths are rendered as one labelled grid.',
|
||||
description: '1–9 VFS paths or DB paths ("image/<hash>").',
|
||||
items: { type: 'string' },
|
||||
minItems: 1,
|
||||
maxItems: MAX_IMAGES,
|
||||
},
|
||||
prompt: {
|
||||
type: 'string',
|
||||
description:
|
||||
'What to inspect or compare, e.g. "Which of these is a clean product shot on white, ' +
|
||||
'without watermark or text overlay?"',
|
||||
description: 'Inspection criteria or question.',
|
||||
},
|
||||
grid: {
|
||||
type: 'string',
|
||||
enum: Object.keys(GRID_CONFIGS),
|
||||
description: 'Force a grid layout. Omit to pick one from the image count.',
|
||||
description: 'Grid layout. Omit for auto.',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user