Attachments
Introduction


How to send an attachment
Going further
Last updated


Last updated
from agentlabs.attachment import Attachment
attachment = Attachment.from_local_file("path-to-your-file")
agent.send(
conversation_id=message.conversation_id,
text="Here is your zip file",
attachments=[attachment],
)import {Attachment} from "@agentlabs/node-sdk";
const attachment = Attachment.fromLocalFile('path-to-your-file')
await agent.send({
text: 'Here is an image for you...',
conversationId: '<your-conversation-id>',
attachments: [attachment],
});