Models
Functions
Link copied to clipboard
suspend fun generateContent(model: String, content: Content, config: GenerateContentConfig? = null): GenerateContentResponse
Generates content given a GenAI model and a content object.
suspend fun generateContent(model: String, text: String, config: GenerateContentConfig? = null): GenerateContentResponse
Generates content given a GenAI model and a text string.
suspend fun generateContent(model: String, contents: List<Content>, config: GenerateContentConfig? = null): GenerateContentResponse
Generates content given a GenAI model and a list of content.
Link copied to clipboard
fun generateContentStream(model: String, content: Content, config: GenerateContentConfig? = null): Flow<GenerateContentResponse>
Generates content with streaming support given a GenAI model and a content object.
fun generateContentStream(model: String, text: String, config: GenerateContentConfig? = null): Flow<GenerateContentResponse>
Generates content with streaming support given a GenAI model and a text string.
fun generateContentStream(model: String, contents: List<Content>, config: GenerateContentConfig? = null): Flow<GenerateContentResponse>
Generates content with streaming support given a GenAI model and a list of content.