• 聊天(chat)
    • AiVideoOrderResponse
    • GeminiUsageMetadataDto
    • key
    • CreateAigcApiTokenResponse
    • GoogleGeminiInlineBlobDto
    • ConfirmAigcEventsRequest
    • AigcEventOutputFileDto
    • ResponseEntity?
    • AiImageOrderResponse
    • GptprotoMessageDto
    • ImageDataItem
    • AiTextOrderResponse
    • AigcVideoTaskInputFileInfoDto
    • GeminiContentPartDto
    • ModelMap
    • ChatInputAudioDto
    • CreateAigcApiTokenRequest
    • GoogleGeminiFileDataDto
    • AigcTaskDetailDto
    • AigcEventItemDto
    • AiImageOrderRequest
    • GptprotoChoiceDto
    • CacheControlEphemeral
    • GptprotoImageGenerateResponse
    • AigcVideoOutputConfigDto
    • GeminiContentDto
    • HttpStatusCode
    • CitationItem
    • ChatPartDto
    • GoogleGeminiPartDto
    • DescribeTaskDetailResponse
    • PullAigcEventsResponse
    • GoogleGeminiFunctionCallDto
    • GptprotoUsageDto
    • MapObject
    • GptprotoImageGenerateRequest
    • AiVideoOrderRequest
    • GeminiCandidateDto
    • key
    • ContentBlock
    • ChatFunctionCallDto
    • PredictionData
    • GoogleGeminiContentDto
    • DescribeTaskDetailRequest
    • GoogleGeminiFunctionResponseDto
    • GptprotoChatResponse
    • AiTextOrderRequest
    • GeminiGenerateContentResponse
    • CreateAigcImageResponse
    • ServerToolUse
    • ChatToolCallDto
    • GptprotoViduPredictionResponse
    • GoogleGeminiGenerationConfigDto
    • GoogleGeminiExecutableCodeDto
    • GptprotoChatRequest
    • JsonSchemaFormat
    • GoogleGeminiEmbedContentRequest
    • GeminiThinkingConfigDto
    • AigcImageTaskInputFileInfoDto
    • Usage
    • ChatMessageDto
    • ClaudeFileAnalysisResponse
    • GptprotoViduImageToVideoRequest
    • GoogleGeminiGenerateContentRequest
    • GoogleGeminiCodeExecutionResultDto
    • OutputConfig
    • GeminiGenerationConfigDto
    • AigcImageOutputConfigDto
    • ClaudeWebSearchResponse
    • CacheControl
    • Container
    • ToolChoice
    • GeminiGenerateContentRequest
    • CreateAigcImageRequest
    • MessageItem
    • DocumentSourceWrapper
    • ClaudeTextToTextResponse
    • GoogleGeminiSystemInstructionDto
    • ContentBlockParam
    • UserLocation
    • CitationsConfig
    • key
    • GoogleGeminiFunctionCallingConfigDto
    • StringOrContentBlocks
    • WebSearchToolItem
    • ContentBlock
    • GoogleGeminiLatLngDto
    • MessageParam
    • ClaudeWebSearchRequest
    • key
    • GoogleGeminiRetrievalConfigDto
    • Metadata
    • ClaudeFileAnalysisRequest
    • key
    • GoogleGeminiToolConfigDto
    • ResponseEntityStreamingResponseBody
    • TextCitationParam
    • ToolItem
    • GoogleGeminiThinkingConfigDto
    • TextBlockParam
    • key
    • StringOrTextBlocks
    • ClaudeTextToTextRequest
    • GoogleGeminiSafetySettingDto
    • ThinkingConfig
    • GoogleGeminiCodeExecutionToolDto
    • InputSchema
    • MapJsonNode
    • GoogleGeminiToolDto
    • CitationsConfigParam
    • ToolDefinition
    • AnthropicMessagesCreateRequest
    • CreateAigcVideoResponse
    • VolcengineMediaUrl
    • VolcengineVideoContentPart
    • VolcengineVideoTool
    • CreateAigcVideoRequest
    • VolcengineCreateVideoTaskRequest
    • ConversationModelOption
    • ConversationSessionItem
    • ConversationMessageItem
    • ConversationSendRequest
    • Handler
    • MapString
    • MediaType
    • DataWithMediaType
    • Throwable
    • StackTraceElement
    • Runnable
    • DefaultCallback
    • ErrorCallback
    • SseEmitter
    • ConversationImageOrderRequest
    • ConversationVideoOrderRequest

    GoogleGeminiGenerateContentRequest

    com.kylin.airouter.console.web.dto.google.gemini.GoogleGeminiGenerateContentRequest

    {
        "systemInstruction": {
            "parts": [
                {
                    "inline_data": {
                        "mime_type": "string",
                        "data": "string"
                    },
                    "file_data": {
                        "mime_type": "string",
                        "file_uri": "string"
                    },
                    "function_call": {
                        "id": "string",
                        "name": "string",
                        "args": [
                            [
                                [
                                    {}
                                ]
                            ]
                        ]
                    },
                    "function_response": {
                        "id": "string",
                        "name": "string",
                        "response": [
                            [
                                [
                                    {}
                                ]
                            ]
                        ]
                    },
                    "executable_code": {
                        "id": "string",
                        "language": "LANGUAGE_UNSPECIFIED",
                        "code": "string"
                    },
                    "code_execution_result": {
                        "id": "string",
                        "outcome": "OUTCOME_UNSPECIFIED",
                        "output": "string"
                    },
                    "tool_call": [
                        [
                            [
                                {}
                            ]
                        ]
                    ],
                    "tool_response": [
                        [
                            [
                                {}
                            ]
                        ]
                    ],
                    "text": "string"
                }
            ]
        },
        "toolConfig": {
            "functionCallingConfig": {
                "allowedFunctionNames": [
                    "string"
                ],
                "mode": "MODE_UNSPECIFIED"
            },
            "retrievalConfig": {
                "latLng": {
                    "latitude": 0,
                    "longitude": 0
                },
                "languageCode": "string"
            },
            "includeServerSideToolInvocations": true
        },
        "generationConfig": {
            "topP": 0,
            "topK": 0,
            "candidateCount": 0,
            "maxOutputTokens": 0,
            "stopSequences": [
                "string"
            ],
            "responseMimeType": "string",
            "responseSchema": [
                [
                    [
                        {}
                    ]
                ]
            ],
            "responseJsonSchema": [
                [
                    [
                        {}
                    ]
                ]
            ],
            "presencePenalty": 0,
            "frequencyPenalty": 0,
            "responseLogprobs": true,
            "enableEnhancedCivicAnswers": true,
            "responseModalities": [
                "string"
            ],
            "mediaResolution": "string",
            "speechConfig": [
                [
                    [
                        {}
                    ]
                ]
            ],
            "imageConfig": [
                [
                    [
                        {}
                    ]
                ]
            ],
            "thinkingConfig": {
                "includeThoughts": true,
                "thinkingBudget": 0,
                "thinkingLevel": "THINKING_LEVEL_UNSPECIFIED"
            },
            "temperature": 0,
            "seed": 0,
            "logprobs": 0
        },
        "safetySettings": [
            {
                "threshold": "HARM_BLOCK_THRESHOLD_UNSPECIFIED",
                "category": "HARM_CATEGORY_UNSPECIFIED"
            }
        ],
        "cachedContent": "string",
        "model": "string",
        "contents": [
            {
                "role": "USER",
                "parts": [
                    {
                        "inline_data": {
                            "mime_type": "string",
                            "data": "string"
                        },
                        "file_data": {
                            "mime_type": "string",
                            "file_uri": "string"
                        },
                        "function_call": {
                            "id": "string",
                            "name": "string",
                            "args": [
                                [
                                    [
                                        {}
                                    ]
                                ]
                            ]
                        },
                        "function_response": {
                            "id": "string",
                            "name": "string",
                            "response": [
                                [
                                    [
                                        {}
                                    ]
                                ]
                            ]
                        },
                        "executable_code": {
                            "id": "string",
                            "language": "LANGUAGE_UNSPECIFIED",
                            "code": "string"
                        },
                        "code_execution_result": {
                            "id": "string",
                            "outcome": "OUTCOME_UNSPECIFIED",
                            "output": "string"
                        },
                        "tool_call": [
                            [
                                [
                                    {}
                                ]
                            ]
                        ],
                        "tool_response": [
                            [
                                [
                                    {}
                                ]
                            ]
                        ],
                        "text": "string"
                    }
                ]
            }
        ],
        "tools": [
            {
                "functionDeclarations": [
                    [
                        [
                            [
                                {}
                            ]
                        ]
                    ]
                ],
                "codeExecution": {},
                "googleSearch": [
                    [
                        [
                            {}
                        ]
                    ]
                ],
                "googleSearchRetrieval": [
                    [
                        [
                            {}
                        ]
                    ]
                ],
                "urlContext": [
                    [
                        [
                            {}
                        ]
                    ]
                ],
                "fileSearch": [
                    [
                        [
                            {}
                        ]
                    ]
                ],
                "extraToolProperties": {
                    "key": [
                        [
                            [
                                {}
                            ]
                        ]
                    ]
                }
            }
        ],
        "store": true
    }
    Built with