Elements
Image
The Image
class is designed to create and handle image elements to be sent and displayed in the chatbot user interface.
You must provide either an url or a path or content bytes.
Attributes
The name of the image to be displayed in the UI.
Determines how the image element should be displayed in the UI. Choices are “side” (default), “inline”, or “page”.
Determines the size of the image. Only works with display=“inline”. Choices are “small”, “medium” (default), or “large”.
The remote URL of the image source.
The local file path of the image.
The file content of the image in bytes format.