system

fun system(content: String)(source)

Adds a system message to the prompt.

System messages provide instructions or context to the language model.

Example:

system("You are a helpful assistant.")

Parameters

content

The content of the system message


Adds a system message to the prompt using a TextContentBuilder.

This allows for more complex message construction.

Example:

system {
text("You are a helpful assistant.")
text("Always provide accurate information.")
}

Parameters

init

The initialization block for the TextContentBuilder