mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 10:02:23 +00:00
Fix README: prompt takes ImageContent[], not Attachment[]
This commit is contained in:
parent
256d9a26bb
commit
b6d9442916
1 changed files with 5 additions and 10 deletions
|
|
@ -152,19 +152,14 @@ agent.queueMessage({
|
||||||
|
|
||||||
When queued messages are detected after a tool call, remaining tool calls are skipped with error results.
|
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
|
```typescript
|
||||||
await agent.prompt('What is in this image?', [{
|
await agent.prompt('What is in this image?', [
|
||||||
id: 'img1',
|
{ type: 'image', data: base64ImageData, mimeType: 'image/jpeg' }
|
||||||
type: 'image',
|
]);
|
||||||
fileName: 'photo.jpg',
|
|
||||||
mimeType: 'image/jpeg',
|
|
||||||
size: 102400,
|
|
||||||
content: base64ImageData // base64 without data URL prefix
|
|
||||||
}]);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Proxy Usage
|
## Proxy Usage
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue