Skip to main content

//clika-runtime/io.clika.modelverse/ChatSession/respond

respond

[common]
fun respond(config: GenerationConfig = model.capabilities.defaults, tools: List<ToolDef>? = null): String

Reply to the conversation as it stands, blocking: the last turn must be a user turn or a tool result. The reply's visible text is appended as the assistant turn and answered.

[common]
fun respond(listener: GenerationListener, config: GenerationConfig = model.capabilities.defaults, tools: List<ToolDef>? = null): GenerationHandle

Reply to the conversation as it stands, streamed through listener; the assistant turn is appended when GenerationListener.onDone arrives.