Stay organized with collections
Save and categorize content based on your preferences.
Annotations
Interfaces
DownloadCallback |
Callback functions used for model downloading.
|
Part |
Interface representing data sent to and received from requests.
|
Classes
Exceptions
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-12-21 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-21 UTC."],[],[],null,["# com.google.ai.edge.aicore\n=========================\n\n*** ** * ** ***\n\n[Kotlin](/ai/reference/kotlin/com/google/ai/edge/aicore/package-summary \"View this page in Kotlin\") \\|Java \n\nAnnotations\n-----------\n\n|------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|\n| [Candidate.FinishReason](/ai/reference/com/google/ai/edge/aicore/Candidate.FinishReason) | Finish reason associated with a [Candidate](/ai/reference/com/google/ai/edge/aicore/Candidate) |\n| [Content.Role](/ai/reference/com/google/ai/edge/aicore/Content.Role) | Role associated with [Content](/ai/reference/com/google/ai/edge/aicore/Content) |\n| [GenerativeAIException.ErrorCode](/ai/reference/com/google/ai/edge/aicore/GenerativeAIException.ErrorCode) | The set of [GenerativeAIException](/ai/reference/com/google/ai/edge/aicore/GenerativeAIException) error codes. |\n\nInterfaces\n----------\n\n|------------------------------------------------------------------------------|-----------------------------------------------------------------|\n| [DownloadCallback](/ai/reference/com/google/ai/edge/aicore/DownloadCallback) | Callback functions used for model downloading. |\n| [Part](/ai/reference/com/google/ai/edge/aicore/Part) | Interface representing data sent to and received from requests. |\n\nClasses\n-------\n\n|--------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|\n| [Candidate](/ai/reference/com/google/ai/edge/aicore/Candidate) | A piece of a response from the model. |\n| [Content](/ai/reference/com/google/ai/edge/aicore/Content) | Represents content sent to and received from the model. |\n| [Content.Builder](/ai/reference/com/google/ai/edge/aicore/Content.Builder) | |\n| [ContentKt](/ai/reference/com/google/ai/edge/aicore/ContentKt) | |\n| [DownloadConfig](/ai/reference/com/google/ai/edge/aicore/DownloadConfig) | Configuration parameters to use for system model download. |\n| [GenerateContentResponse](/ai/reference/com/google/ai/edge/aicore/GenerateContentResponse) | Represents a response from the model. |\n| [GenerationConfig](/ai/reference/com/google/ai/edge/aicore/GenerationConfig) | Configuration parameters to use for content generation. |\n| [GenerationConfig.Builder](/ai/reference/com/google/ai/edge/aicore/GenerationConfig.Builder) | |\n| [GenerationConfigKt](/ai/reference/com/google/ai/edge/aicore/GenerationConfigKt) | |\n| [GenerativeModel](/ai/reference/com/google/ai/edge/aicore/GenerativeModel) | A facilitator for a given system model. |\n| [PartKt](/ai/reference/com/google/ai/edge/aicore/PartKt) | |\n| [TextPart](/ai/reference/com/google/ai/edge/aicore/TextPart) | Represents text or string based data sent to and received from requests. |\n| [Content.Companion](/ai/reference/com/google/ai/edge/aicore/Content.Companion) | |\n| [GenerationConfig.Companion](/ai/reference/com/google/ai/edge/aicore/GenerationConfig.Companion) | |\n\nExceptions\n----------\n\n|----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------|\n| [ConnectionException](/ai/reference/com/google/ai/edge/aicore/ConnectionException) | Error during connection. |\n| [DownloadException](/ai/reference/com/google/ai/edge/aicore/DownloadException) | Error during download. |\n| [GenerativeAIException](/ai/reference/com/google/ai/edge/aicore/GenerativeAIException) | Parent class for any errors that occur from [GenerativeModel](/ai/reference/com/google/ai/edge/aicore/GenerativeModel). |\n| [InferenceException](/ai/reference/com/google/ai/edge/aicore/InferenceException) | Error during inference. |\n| [PreparationException](/ai/reference/com/google/ai/edge/aicore/PreparationException) | Error during preparation. |\n| [TokenizationException](/ai/reference/com/google/ai/edge/aicore/TokenizationException) | Error during tokenization. |\n| [UnknownException](/ai/reference/com/google/ai/edge/aicore/UnknownException) | Unknown Error. |"]]