message

fun message(message: Message)(source)

Adds a generic message to the prompt.

This method allows adding any type of Message object.

Example:

message(Message.System("You are a helpful assistant."))

Parameters

message

The message to add