This commit is contained in:
seb
2026-10-14 13:44:53 +02:00
parent 5fb8df6f6a
commit 37c58648db
8 changed files with 13 additions and 13 deletions

View File

@@ -21,7 +21,7 @@ import {
* call with the image attached. This tool is that bridge:
*
* - 1 image → resized to fit 400×400 and sent as a single WebP.
* - 2–9 → composited into a labelled grid (2x1/3x1/2x2/3x2/3x3) with the file name
* - 2-9 → composited into a labelled grid (2x1/3x1/2x2/3x2/3x3) with the file name
* printed under each cell, so one cheap call can compare many candidates.
* - Database images are addressed as `image/<fullHash>` and fetched from `/image/:hash`.
*
@@ -314,7 +314,7 @@ export function createAnalyzeImageTool({ googleAuthId, model }) {
const inputs = extractImageInputs({ paths });
if (inputs.length === 0) {
throw new ToolError(
'analyze_image requires "paths": an array of 1–9 VFS paths (e.g. ["images/a-1.avif"]) ' +
'analyze_image requires "paths": an array of 1-9 VFS paths (e.g. ["images/a-1.avif"]) ' +
'or database paths (e.g. ["image/<fullHash>"]). Get candidates from search_images first.'
);
}

View File

@@ -173,7 +173,7 @@ export const TOOL_PARAMETER_DESCRIPTIONS = {
analyze_image: {
note: NOTE_DESC,
paths: '1–9 VFS paths or DB paths ("image/<hash>").',
paths: '1-9 VFS paths or DB paths ("image/<hash>").',
prompt: 'Inspection criteria or question.',
grid: 'Grid layout or null for auto.',
},
@@ -216,7 +216,7 @@ export const TOOL_PARAMETER_DESCRIPTIONS = {
searchquery: 'Keywords matching name, brand, EAN, SKU, or supplier SKU (AND logic).',
excludewords: 'Keywords to exclude (AND logic).',
offset: 'Pagination offset (default 0).',
limit: 'Window size 1–20 (default 3).',
limit: 'Window size 1-20 (default 3).',
},
edit_image: {
@@ -243,7 +243,7 @@ export const TOOL_PARAMETER_DESCRIPTIONS = {
taxRate: 'VAT percentage (default 19).',
amount: 'Price amount when paired with "from".',
from: '"gross" (default) or "net".',
precision: 'Net price API decimal precision 2–8 (default 6).',
precision: 'Net price API decimal precision 2-8 (default 6).',
items: 'Array of prices or calculation objects for batch processing.',
},