message#

class besser.bot.platforms.websocket.message.Message(t, content, is_user)[source]#

Bases: object

A conversation message. It is used by the streamlit UI to display the messages properly, depending on the sender (i.e., user or chatbot) and the type (string, audio, file, DataFrame, plot, etc.)

Parameters:
  • t (str) – The type of the message

  • content (Any) – The message content

  • is_user (bool) – Whether the message comes from the user (true) or the chatbot (false)

type#

The type of the message

Type:

str

content#

The message content

Type:

Any

is_user#

Whether the message comes from the user (true) or the chatbot (false)

Type:

bool