stream

abstract fun stream(model: String, messages: List<LlmMessage>, tools: List<LlmTool>? = null, config: CompletionConfig = CompletionConfig()): Flow<GatewayStreamEvent>

Streaming completion. Returns a cold Flow that emits one GatewayStreamEvent per chunk. Cancellation tears down the HTTP request.