ChatRequest

data class ChatRequest(val messages: List<ChatMessage>, val system: String? = null, val tools: List<ToolSpec> = emptyList(), val shortened: Boolean = false)

What a ChatModel is asked.

Constructors

Link copied to clipboard
constructor(messages: List<ChatMessage>, system: String? = null, tools: List<ToolSpec> = emptyList(), shortened: Boolean = false)

Properties

Link copied to clipboard

the conversation so far, oldest first.

Link copied to clipboard

true when messages leave out a part of the conversation, as with shorten of toolLoop. A provider can tie what it returned to everything that came before it, as Claude does with its thinking. The ChatModel then leaves such content out instead of sending it back.

Link copied to clipboard

instructions for the model that are not part of the conversation.

Link copied to clipboard

the tools the model may ask for.