Skip to main content
Version: 12 - TBD

ChatMessage

class flow_api.chat_message.ChatMessage(select=None, cls=None, init=None, by='id', allow_normal=True, allow_deleted=False, commit=False, chat_id=<class 'flow_api.system.NotSet'>, content=<class 'flow_api.system.NotSet'>, data=<class 'flow_api.system.NotSet'>, role=<class 'flow_api.system.NotSet'>, debug=False)

Base class: Row

A message in a chat.

Parameters

NameTypeDescription
allow_deletedbool
allow_normalbool
bystr
chat_idUnionReference to the chat this message belongs to.
clsOptional
commitbool
contentUnionThe content of the message.
dataUnionData attached to a chat message. This can be context or actions.
debugboolif set, the content of the data being written will be logged.
initOptional
roleUnionThe role of the message sender.
selectOptional

Constants

RESOURCE = chat_message

Methods

chat

clone

delete

exists

export

get

get_dict

restore

save