| Interface | Description |
|---|---|
| GeminiConsts | |
| GoogleModels |
列出 Google Gemini & PaLM 等模型名称常量 对应 JSON 中的 "name" 字段
|
| Class | Description |
|---|---|
| FileUploadRequestVo | |
| FileUploadRequestVo.FileVo | |
| FileUploadResponseVo | |
| FileUploadVo | |
| GeminiCacheUsageMetadataVo |
表示 cache 的 usageMetadata 结构
|
| GeminiCacheVo |
表示一个缓存条目的元数据
|
| GeminiCandidate |
候选答案
|
| GeminiChatRequest |
顶层请求体 - 修改后
|
| GeminiChatResponse |
gemini接口响应体
|
| GeminiClient |
Google Gemini 模型客户端示例
|
| GeminiContent |
表示请求中的单条对话
|
| GeminiContentResponse |
候选的内容
|
| GeminiCreateCacheRequest |
请求体 for POST /v1beta/cachedContents
|
| GeminiFileData | |
| GeminiFunctionCallingConfig |
function_calling_config 结构 { "mode": "ANY", "allowed_function_names": [
"enable_lights", "set_light_color", "stop_lights" ] }
|
| GeminiFunctionCallVo |
表示模型返回的 Function Call。
例如:
{
"name": "stop_lights",
"args": {
"dummy": true
}
}
|
| GeminiFunctionDeclaration |
用来表示单个 function_declaration
|
| GeminiGenerationConfig |
文本生成配置 例如: "generationConfig": { "stopSequences": ["Title"], "temperature":
0, "maxOutputTokens": 800, "topP": 0.8, "topK": 10 }
|
| GeminiInlineData |
如果是图片等非文本内容,需要用 inline_data 封装
|
| GeminiListCachesResponse |
响应体 for GET /v1beta/cachedContents
|
| GeminiPart |
对话的一段内容 既可以是 text,也可以是 image 等
|
| GeminipTokensDetail | |
| GeminiResponsePropertyItem | |
| GeminiSafetySetting |
安全策略 例如: { "category": "HARM_CATEGORY_DANGEROUS_CONTENT", "threshold":
"BLOCK_ONLY_HIGH" }
|
| GeminiSystemInstruction |
表示 system_instruction 结构 例如: { "system_instruction": { "parts": [ { "text":
"You are a helpful lighting system bot..." }
] } }
|
| GeminiTool |
tools 数组的单个元素 { "function_declarations": [...] }
|
| GeminiToolConfig |
"tool_config": { "function_calling_config": { ...
|
| GeminiUpdateCacheRequest |
请求体 for PATCH /v1beta/{cache_name}
|
| GeminiUsageMetadata |
UsageMetadata
|
| GroundingChunk | |
| GroundingChunkWeb | |
| GroundingMetadata | |
| GroundingSupport | |
| GroundingSupportSegment | |
| SearchEntryPoint |
Copyright © 2026. All rights reserved.