connect

suspend override fun connect(request: LlmRequest): LiveConnection

Opens a live (bidirectional streaming) connection, configured by LlmRequest.liveConnectConfig.

The returned connection is open but not yet primed; send history or content to start the conversation, and close it when it ends.

Parameters

request

The request whose live config, model name, system instruction and tools configure the session.

Throws

if this model does not support live connections.