assistant
Adds an assistant message to the prompt.
Assistant messages represent responses from the language model.
Example:
assistant("The capital of France is Paris.")
Content copied to clipboard
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.")
}
Content copied to clipboard
Parameters
init
The initialization block for the TextContentBuilder