Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenerateContentRequest ¶
type GenerateContentRequest struct {
// Contains the multipart content of a message.
//
// https://github.com/googleapis/go-genai/blob/6a8184fcaf8bf15f0c566616a7b356560309be9b/types.go#L858
Contents []genai.Content `json:"contents"`
// Tool details of a tool that the model may use to generate a response.
//
// https://github.com/googleapis/go-genai/blob/6a8184fcaf8bf15f0c566616a7b356560309be9b/types.go#L1406
Tools []genai.Tool `json:"tools"`
// Optional. Tool config.
// This config is shared for all tools provided in the request.
//
// https://github.com/googleapis/go-genai/blob/6a8184fcaf8bf15f0c566616a7b356560309be9b/types.go#L1466
ToolConfig *genai.ToolConfig `json:"tool_config,omitempty"`
// Optional. Generation config.
// You can find API default values and more details at https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#generationconfig
// and https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/content-generation-parameters.
GenerationConfig *genai.GenerationConfig `json:"generation_config,omitempty"`
// Optional. Instructions for the model to steer it toward better performance.
// For example, "Answer as concisely as possible" or "Don't use technical
// terms in your response".
//
// https://github.com/googleapis/go-genai/blob/6a8184fcaf8bf15f0c566616a7b356560309be9b/types.go#L858
SystemInstruction *genai.Content `json:"system_instruction,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.