Attachments
Last updated
Last updated
Sending attachments is particularly useful if you want your agent backend to send some images or any other files to your users.
AgentLabs SDK allows you to effortlessly send attachments along with your messages.
Some attachments like Images will be displayed with a lightbox preview, others like zip files will be displayed as simple downloadable files.
Sending attachments is super easy. You only have to instantiate an Attachment and then pass it to the send
method as an argument.
You can pass as many attachments as you want. We also support all mime types as long as each file does not exceed 10MB.
If you want to go further with attachments, you can check this example where we show you how to create a basic midjourney clone.
Here's the result: