The ElementDict represents a Chainlit App conversation element.

Attributes

id
str

The element ID.

conversationId
Optional[str]

The conversation ID from which the element comes from.

type
ElementType

The media type of the element.

url
str

The remote URL of the element.

objectKey
str

The remote key of the element.

name
Optional[Prompt]

The name of the element to be displayed in the UI.

display
ElementDisplay

Determines how the text element should be displayed in the UI. Choices are “side” (default), “inline”, or “page”.

size
Optional[ElementSize]

Only available for images and Pyplot. Choices are “small”, “medium” (default), or “large”.

language
Optional[str]

Language of the code if the content is code. See https://react-code-blocks-rajinwonderland.vercel.app/?path=/story/codeblock—supported-languages for a list of supported languages.

forIds
Optional[List[str]]

The list of message IDs referencing the element.