chat

fun chat(model: String, blocks: ChatBuilder.() -> Unit)

Sets the chat content using DSL-style message construction.

Parameters

model

The model identifier.

blocks

A ChatBuilder lambda for adding messages.


fun chat(chat: Chat)

Sets the chat content from an existing Chat instance.

Parameters

chat

The chat to use.