Message Attachment
This represents an attachment to a message.
Example use of message attachment
import ProteusAI from '@proteus-ai/sdk';
const proteus = new ProteusAI({ apiKey: '66563d92e59961d11fc67a39' });
try {
const conversation = await proteus.conversations.create({
characterId: '659a21168ad10b77542a3587'
});
const message = await conversation.send({
content: 'Describe this image',
type: 'TEXT',
attachments: [{
content: 'https://fastly.picsum.photos/id/337/200/300.jpg',
type: 'IMAGE_URL'
}]
})
} catch (_) {}
Properties
content string
The piece of information contained in the attachment.
type MessageType
The type of the content of an attachment.