com.google.mlkit.genai.prompt
Annotations
Candidate.FinishReason |
The reason why this |
Interfaces
Caches |
Provides an interface to explicitly manage caches for |
GenerativeModel |
Provides an interface for performing content generation. |
Classes
CachedContext |
Represents an identifier of a cached context that can be used in inference. |
Candidate |
A piece of a response from the model. |
CountTokensResponse |
Data class holding token count information. |
CreateCachedContextRequest |
A request to create a cached context. |
CreateCachedContextRequest.Builder |
Builder for |
CreateCachedContextRequestKt |
|
GenerateContentRequest |
A request to generate content. |
GenerateContentRequest.Builder |
Builder for |
GenerateContentRequestKt |
|
GenerateContentResponse |
Represents a response from the model. |
GenerationConfig |
Configuration parameters to use for content generation. |
GenerationConfig.Builder |
Builder for |
GenerationConfigKt |
|
ImagePart |
A data class representing an image part of a prompt. |
Part |
A sealed class representing a part of a multimodal prompt. |
PromptPrefix |
A data class representing a prompt prefix. |
TextPart |
A data class representing a text part of a prompt. |
GenerateContentRequest.Companion |
|
Generation |
Entry class to get a |
GenerationConfig.Companion |