# GenaiPrompt

class GenaiPrompt : Model

A Model implementation that uses the ML Kit GenAI API to generate content.

#### Parameters

generativeModel

The GenerativeModel to use for generation.

name

The name of the model.

## Types

Companion
Link copied to clipboard
object Companion

## Properties

generativeModel
Link copied to clipboard
val generativeModel: GenerativeModel
name
Link copied to clipboard
open override val name: String

## Functions

generateContent
Link copied to clipboard
open override fun generateContent(request: LlmRequest, stream: Boolean): Flow<LlmResponse>

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