user

fun user(content: String)

Appends a UserMessage with the given content.

Parameters

content

User's text input


Appends a multimodal UserMessage assembled by a UserContentBuilder DSL.

Example:

client.chat {
user {
text("What is in this image?")
image("https://example.com/cat.jpg", ImageDetail.LOW)
}
}

Parameters

block

Builder block that appends the message's content parts