assistantText

Adds an assistant message with text content using a DSL builder.

Example:

messages {
assistantText {
text = "Here's the answer"
annotations(priority = 0.8)
}
}