assistant

fun assistant(content: String)(source)

Adds an assistant message to the prompt.

Assistant messages represent responses from the language model.

Example:

assistant("The capital of France is Paris.")

Parameters

content

The content of the assistant message


Adds an assistant message to the prompt using a TextContentBuilder.

This allows for more complex message construction.

Example:

assistant {
text("The capital of France is Paris.")
text("It's known for landmarks like the Eiffel Tower.")
}

Parameters

init

The initialization block for the TextContentBuilder