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
str
The name of the image to be displayed in the UI.
ElementDisplay
Determines how the image element should be displayed in the UI. Choices are
“side”, “inline”, or “page”.
ElementSize
Determines the size of the image. Only works with display=“inline”. Choices
are “small”, “medium” (default), or “large”.
str
The remote URL of the image source.
str
The local file path of the image.
bytes
The file content of the image in bytes format.