Model

interface Model

Interface that provides a common interface for interacting with different LLMs.

Inheritors

Properties

Link copied to clipboard
abstract val name: String

The name of the model.

Functions

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

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