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.", metaInfo = ...))

Parameters

message

The message to add