com.google.ai.edge.aicore


注释

Candidate.FinishReason

Candidate 关联的结束原因

Content.Role

Content 相关联的角色

GenerativeAIException.ErrorCode

一组 GenerativeAIException 错误代码。

接口

DownloadCallback

用于模型下载的回调函数。

Part

表示向请求发送和从请求接收的数据的接口。

Candidate

模型的回答片段。

Content

表示发送给模型和从模型接收的内容。

Content.Builder
ContentKt
DownloadConfig

用于系统模型下载的配置参数。

GenerateContentResponse

表示模型的响应。

GenerationConfig

用于内容生成的配置参数。

GenerationConfig.Builder
GenerationConfigKt
GenerativeModel

给定系统模型的协助者。

PartKt
TextPart

表示发送到请求和从请求接收的基于文本或字符串的数据。

Content.Companion
GenerationConfig.Companion

异常

ConnectionException

连接时出错。

DownloadException

下载时出错。

GenerativeAIException

GenerativeModel 中发生的所有错误的父类。

InferenceException

推理期间出错。

PreparationException

准备过程中出错。

TokenizationException

令牌化期间出错。

UnknownException

未知错误。