fix: make read tool output more concise for images

This commit is contained in:
Mario Zechner 2025-11-13 01:28:39 +01:00
parent 39e22f1294
commit d2e4a34772
3 changed files with 63 additions and 63 deletions

View file

@ -110,7 +110,7 @@ export const readTool: AgentTool<typeof readSchema> = {
const base64 = buffer.toString("base64");
content = [
{ type: "text", text: `Read image file: ${path}` },
{ type: "text", text: `Read image file [${mimeType}]` },
{ type: "image", data: base64, mimeType },
];
} else {