From b6d9442916ba681144090031bcd13802fa3851d6 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Sun, 28 Dec 2025 09:31:41 +0100 Subject: [PATCH] Fix README: prompt takes ImageContent[], not Attachment[] --- packages/agent/README.md | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/packages/agent/README.md b/packages/agent/README.md index 6567a562..ef545216 100644 --- a/packages/agent/README.md +++ b/packages/agent/README.md @@ -152,19 +152,14 @@ agent.queueMessage({ When queued messages are detected after a tool call, remaining tool calls are skipped with error results. -## Attachments +## Images -User messages can include attachments (images, documents): +User messages can include images: ```typescript -await agent.prompt('What is in this image?', [{ - id: 'img1', - type: 'image', - fileName: 'photo.jpg', - mimeType: 'image/jpeg', - size: 102400, - content: base64ImageData // base64 without data URL prefix -}]); +await agent.prompt('What is in this image?', [ + { type: 'image', data: base64ImageData, mimeType: 'image/jpeg' } +]); ``` ## Proxy Usage