system
Adds a system message to the prompt.
System messages provide instructions or context to the language model.
Example:
system("You are a helpful assistant.")
Content copied to clipboard
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.")
}
Content copied to clipboard
Parameters
init
The initialization block for the TextContentBuilder