generateContent

abstract fun generateContent(request: LlmRequest, stream: Boolean = false): Flow<LlmResponse>

Generates content for the given LlmRequest. This returns a Flow of LlmResponses.

Parameters

request

The request containing prompt and config.

stream

Whether to enable streaming mode. If true, partial responses will be emitted.