ChatRequestBuilder
class ChatRequestBuilder
DSL builder for constructing a ChatRequest with full configuration.
Use koryChatRequest as the entry point. Configure the chat content via chat, and optionally set temperature, maxTokens, topK, reasoning, and tools via registerTools.
Samples
// For create a chat request using koryChatRequest dsl function.
val chatRequest = koryChatRequest {
temperature = 0.7
maxTokens = 4096
topK = 40
reasoning = ReasoningConfig.Enabled(ReasoningConfig.Level.LOW)
// The “chat” function refers to the chat that will be used in the request.
chat(
model = "gpt-5.6-sol",
) {
// Body for messages.
user("Ping!")
}
}Content copied to clipboard
Properties
Functions
Link copied to clipboard
Registers tools using a ToolsBuilder DSL.
Registers collection of KoryTool.
Registers one or more tools.