Private
_messagesPrivate
_promptPrivate
_servicesReturns the last message in the chat. The message is returned as a deep clone to prevent accidental mutation.
Returns the messages in the chat. The messages are returned as a deep clone to prevent accidental mutation. The messages are returned in the order they were added. The first message is the prompt.
Returns the prompt for the chat.
Adds a message from the user to the chat.
Adds a message from the bot to the chat.
Private
getPrivate
initPrivate
parseGenerated using TypeDoc
A chat is a conversation between a user and a machine. The machine can interact with external services (see Service).
Example