ImageContent
Defined in: packages/ai.matey.types/src/ir.ts:68
Image content block.
Supports both URLs and base64-encoded images.
Example
Section titled “Example”// Image from URLconst imageUrl: ImageContent = { type: 'image', source: { type: 'url', url: 'https://example.com/image.jpg' }};
// Base64 imageconst imageBase64: ImageContent = { type: 'image', source: { type: 'base64', mediaType: 'image/jpeg', data: 'iVBORw0KGgo...' }};Properties
Section titled “Properties”source
Section titled “source”
readonlysource: {type:"url";url:string; } | {data:string;mediaType:string;type:"base64"; }
Defined in: packages/ai.matey.types/src/ir.ts:70
readonlytype:"image"
Defined in: packages/ai.matey.types/src/ir.ts:69