Index
InteractionsHttpService(interface)AgentInteraction(message)AllowedTools(message)AntigravityAgentConfig(message)ArgumentsDelta(message)AudioContent(message)AudioContent.MimeType(enum)AudioDelta(message)AudioResponseFormat(message)AudioResponseFormat.Delivery(enum)AudioResponseFormat.MimeType(enum)CancelInteractionHttpTranscoderRequest(message)CancelInteractionRequest(message)CodeExecution(message)CodeExecutionCallContent(message) (deprecated)CodeExecutionCallContent.CodeExecutionCallArguments(message)CodeExecutionCallContent.CodeExecutionCallArguments.Language(enum)CodeExecutionCallDelta(message)CodeExecutionCallStep(message)CodeExecutionCallStep.CodeExecutionCallStepArguments(message)CodeExecutionCallStep.CodeExecutionCallStepArguments.Language(enum)CodeExecutionResultContent(message) (deprecated)CodeExecutionResultDelta(message)CodeExecutionResultStep(message)CodeMenderAgentConfig(message)CodeMenderAgentConfig.FileContent(message)CodeMenderAgentConfig.FindRequest(message)CodeMenderAgentConfig.FindRequest.Mode(enum)CodeMenderAgentConfig.FixRequest(message)CodeMenderAgentConfig.SessionConfig(message)ComputerUse(message)ComputerUse.Environment(enum)ComputerUse.SafetyPolicy(enum)Content(message)ContentDelta(message)ContentDeltaData(message)ContentList(message)ContentStart(message)ContentStop(message)CreateInteractionHttpRequest(message)CreateInteractionHttpTranscoderRequest(message)CreateInteractionRequest(message)DeepResearchAgentConfig(message)DeepResearchAgentConfig.VisualizationMode(enum)DeleteInteractionRequest(message)DeleteInteractionResponse(message)DocumentContent(message)DocumentContent.MimeType(enum)DocumentDelta(message)DynamicAgentConfig(message)EnvironmentConfig(message)EnvironmentConfig.EgressRule(message)EnvironmentConfig.EnvironmentNetworkEgressAllowlist(message)EnvironmentConfig.NetworkMode(enum)EnvironmentConfig.Source(message)EnvironmentConfig.Source.Type(enum)Error(message)ErrorEvent(message)ExaAISearchConfig(message)Field(message)FileCitation(message)FileSearch(message)FileSearchCallContent(message) (deprecated)FileSearchCallDelta(message)FileSearchCallStep(message)FileSearchResultContent(message) (deprecated)FileSearchResultContent.FileSearchResult(message)FileSearchResultDelta(message)FileSearchResultStep(message)Function(message)FunctionCallContent(message) (deprecated)FunctionCallDelta(message)FunctionCallStep(message)FunctionResultContent(message) (deprecated)FunctionResultDelta(message)FunctionResultStep(message)FunctionResultSubcontent(message)FunctionResultSubcontentList(message)GenerationConfig(message)GetInteractionHttpTranscoderRequest(message)GetInteractionRequest(message)GoogleMaps(message)GoogleMapsCallContent(message) (deprecated)GoogleMapsCallContent.GoogleMapsCallArguments(message)GoogleMapsCallDelta(message)GoogleMapsCallStep(message)GoogleMapsCallStep.GoogleMapsCallStepArguments(message)GoogleMapsResultContent(message) (deprecated)GoogleMapsResultContent.GoogleMapsResult(message)GoogleMapsResultContent.GoogleMapsResult.Places(message)GoogleMapsResultDelta(message)GoogleMapsResultStep(message)GoogleMapsResultStep.GoogleMapsResultItem(message)GoogleMapsResultStep.GoogleMapsResultItem.GoogleMapsResultPlaces(message)GoogleSearch(message)GoogleSearch.SearchType(enum)GoogleSearchCallContent(message) (deprecated)GoogleSearchCallContent.GoogleSearchCallArguments(message)GoogleSearchCallDelta(message)GoogleSearchCallStep(message)GoogleSearchCallStep.GoogleSearchCallStepArguments(message)GoogleSearchResultContent(message) (deprecated)GoogleSearchResultContent.GoogleSearchResult(message)GoogleSearchResultDelta(message)GoogleSearchResultStep(message)GoogleSearchResultStep.GoogleSearchResultItem(message)HarmCategory(enum)ImageConfig(message)ImageContent(message)ImageContent.MimeType(enum)ImageDelta(message)ImageResponseFormat(message)ImageResponseFormat.AspectRatio(enum)ImageResponseFormat.Delivery(enum)ImageResponseFormat.ImageSize(enum)ImageResponseFormat.MimeType(enum)Interaction(message)Interaction.Status(enum)Interaction.Usage(message)Interaction.Usage.GroundingToolCount(message)Interaction.Usage.GroundingToolCount.Type(enum)Interaction.Usage.ModalityTokens(message)InteractionCompleteEvent(message) (deprecated)InteractionCompletedSseEvent(message)InteractionCreatedSseEvent(message)InteractionMetadata(message)InteractionStartEvent(message) (deprecated)InteractionStatusUpdate(message)InteractionStreamingEvent(message)LegacyAudioContent(message) (deprecated)LegacyDocumentContent(message) (deprecated)LegacyImageContent(message) (deprecated)LegacyTextContent(message) (deprecated)LegacyVideoContent(message) (deprecated)ListInteractionsHttpTranscoderRequest(message)ListInteractionsRequest(message)ListInteractionsResponse(message)ListValue(message)LocalEnvironmentConfig(message)McpServer(message)McpServerToolCallContent(message)McpServerToolCallDelta(message)McpServerToolCallStep(message)McpServerToolResultContent(message)McpServerToolResultDelta(message)McpServerToolResultStep(message)MediaResolution(enum)ModelInteraction(message)ModelOutputStep(message)ParallelAISearchConfig(message)PlaceCitation(message)RagStoreConfig(message)RagStoreConfig.RagResource(message)RagStoreConfig.RagRetrievalConfig(message)RagStoreConfig.RagRetrievalConfig.Filter(message)RagStoreConfig.RagRetrievalConfig.HybridSearch(message)RagStoreConfig.RagRetrievalConfig.Ranking(message)RagStoreConfig.RagRetrievalConfig.Ranking.RankService(message)ResponseFormat(message)ResponseFormatList(message)ResponseModality(enum)Retrieval(message)Retrieval.RetrievalType(enum)RetrievalCallDelta(message)RetrievalCallStep(message)RetrievalCallStep.RetrievalStepArguments(message)RetrievalResultDelta(message)RetrievalResultStep(message)ReviewSnippet(message)SafetySetting(message)SafetySetting.HarmBlockMethod(enum)SafetySetting.HarmBlockThreshold(enum)ServerToolCallDelta(message)ServerToolResultDelta(message)SpeechConfig(message)Step(message)StepDelta(message)StepDeltaData(message)StepList(message)StepStart(message)StepStop(message)StreamMetadata(message)Struct(message)TextAnnotationDelta(message)TextContent(message)TextContent.Annotation(message)TextDelta(message)TextResponseFormat(message)TextResponseFormat.MimeType(enum)ThinkingLevel(enum)ThinkingSummaries(enum)ThoughtContent(message) (deprecated)ThoughtSignatureDelta(message)ThoughtStep(message)ThoughtSummaryContent(message)ThoughtSummaryDelta(message)Tool(message)ToolCallContent(message) (deprecated)ToolCallDelta(message)ToolCallStep(message)ToolChoiceConfig(message)ToolChoiceType(enum)ToolResultContent(message) (deprecated)ToolResultDelta(message)ToolResultStep(message)TranscriptionConfig(message)Turn(message) (deprecated)TurnList(message) (deprecated)UrlCitation(message)UrlContext(message)UrlContextCallContent(message) (deprecated)UrlContextCallContent.UrlContextCallArguments(message)UrlContextCallDelta(message)UrlContextCallStep(message)UrlContextCallStep.UrlContextCallStepArguments(message)UrlContextResultContent(message) (deprecated)UrlContextResultContent.UrlContextResult(message)UrlContextResultContent.UrlContextResult.Status(enum)UrlContextResultDelta(message)UrlContextResultStep(message)UrlContextResultStep.UrlContextResultItem(message)UrlContextResultStep.UrlContextResultItem.Status(enum)UserInputStep(message)Value(message)VertexAISearchConfig(message)VideoConfig(message)VideoConfig.Task(enum)VideoContent(message)VideoContent.MimeType(enum)VideoDelta(message)VideoResponseFormat(message)VideoResponseFormat.AspectRatio(enum)VideoResponseFormat.Delivery(enum)WordInfo(message)
InteractionsHttpService
API that acts as the transcoder for users to interact with models and agents.
| CancelInteractionHttp |
|---|
|
Cancels an interaction.
|
| CreateInteractionHttp |
|---|
|
|
| GetInteractionHttp |
|---|
|
Gets an interaction.
|
| ListInteractionsHttp |
|---|
|
Lists interactions.
|
AgentInteraction
Interaction for generating the completion using agents.
| Fields | |
|---|---|
agent |
The name of the |
Union field agent_config. Parameters for the agent interaction. agent_config can be only one of the following: |
|
dynamic_config |
|
deep_research_config |
|
code_mender_config |
|
antigravity_config |
Antigravity agent configuration. This configuration is session-level settings that are passed to the agent runtime on a per-request basis. |
AllowedTools
The configuration for allowed tools.
| Fields | |
|---|---|
mode |
The mode of the tool choice. |
tools[] |
The names of the allowed tools. |
AntigravityAgentConfig
Configuration for the Antigravity agent runtime. Provides server-side control over the agent's execution environment and tool configuration.
| Fields | |
|---|---|
model |
The model to use for agent reasoning. |
max_total_tokens |
Max total tokens for the agent run. |
ArgumentsDelta
| Fields | |
|---|---|
arguments |
|
AudioContent
An audio content block.
| Fields | |
|---|---|
mime_type |
The mime type of the audio. |
channels |
The number of audio channels. |
sample_rate |
The sample rate of the audio. |
Union field data_or_uri. The audio content. data_or_uri can be only one of the following: |
|
data |
The audio content. |
uri |
The URI of the audio. |
MimeType
| Enums | |
|---|---|
TYPE_UNSPECIFIED |
|
TYPE_WAV |
WAV audio format |
TYPE_MP3 |
MP3 audio format |
TYPE_AIFF |
AIFF audio format |
TYPE_AAC |
AAC audio format |
TYPE_OGG |
OGG audio format |
TYPE_FLAC |
FLAC audio format |
TYPE_MPEG |
MPEG audio format |
TYPE_M4A |
M4A audio format |
TYPE_L16 |
L16 audio format |
TYPE_S16LE |
S16LE audio format |
TYPE_OPUS |
OPUS audio format |
TYPE_ALAW |
ALAW audio format |
TYPE_MULAW |
MULAW audio format |
TYPE_VIDEO_AUDIO_S16LE |
Video audio S16LE format (internal) |
AudioDelta
| Fields | |
|---|---|
mime_type |
|
rate |
Deprecated. Use sample_rate instead. The value is ignored. |
sample_rate |
The sample rate of the audio. |
channels |
The number of audio channels. |
Union field
|
|
data |
|
uri |
|
AudioResponseFormat
Configuration for audio output format.
| Fields | |
|---|---|
mime_type |
The MIME type of the audio output. |
delivery |
The delivery mode for the audio output. |
sample_rate |
Sample rate in Hz. |
bit_rate |
Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus). |
Delivery
Delivery mode for audio output.
| Enums | |
|---|---|
DELIVERY_UNSPECIFIED |
Default value. This value is unused. |
INLINE |
Audio data is returned inline in the response. |
URI |
Audio data is returned as a URI. |
MimeType
Supported MIME types for audio output.
| Enums | |
|---|---|
TYPE_UNSPECIFIED |
Default value. This value is unused. |
TYPE_MP3 |
MP3 audio format. |
TYPE_OGG_OPUS |
OGG Opus audio format. |
TYPE_L16 |
Raw PCM (L16) audio format. |
TYPE_WAV |
WAV audio format. |
TYPE_ALAW |
A-law audio format. |
TYPE_MULAW |
Mu-law audio format. |
CancelInteractionHttpTranscoderRequest
Request for InteractionsHttpService.CancelInteractionHttp.
| Fields | |
|---|---|
name |
Required. The name of the interaction to cancel. Format: interactionsHttp/{interaction} |
CancelInteractionRequest
| Fields | |
|---|---|
name |
Required. The name of the interaction to cancel. Format: |
CodeExecution
This type has no fields.
A tool that can be used by the model to execute code.
CodeExecutionCallContent
Code execution content.
| Fields | |
|---|---|
arguments |
Required. The arguments to pass to the code execution. |
CodeExecutionCallArguments
The arguments to pass to the code execution.
| Fields | |
|---|---|
language |
Programming language of the |
code |
The code to be executed. |
Language
Supported programming languages for the generated code.
| Enums | |
|---|---|
LANGUAGE_UNSPECIFIED |
Unspecified language. This value should not be used. |
PYTHON |
Python >= 3.10, with numpy and simpy available. |
CodeExecutionCallDelta
| Fields | |
|---|---|
arguments |
|
CodeExecutionCallStep
Code execution call step.
| Fields | |
|---|---|
arguments |
Required. The arguments to pass to the code execution. |
CodeExecutionCallStepArguments
The arguments to pass to the code execution.
| Fields | |
|---|---|
language |
Programming language of the |
code |
The code to be executed. |
Language
Supported programming languages for the generated code.
| Enums | |
|---|---|
LANGUAGE_UNSPECIFIED |
Unspecified language. This value should not be used. |
PYTHON |
Python >= 3.10, with numpy and simpy available. |
CodeExecutionResultContent
Code execution result content.
| Fields | |
|---|---|
result |
Required. The output of the code execution. |
is_error |
Whether the code execution resulted in an error. |
CodeExecutionResultDelta
| Fields | |
|---|---|
result |
|
is_error |
|
CodeExecutionResultStep
Code execution result step.
| Fields | |
|---|---|
result |
Required. The output of the code execution. |
is_error |
Whether the code execution resulted in an error. |
CodeMenderAgentConfig
Configuration for the CodeMender agent.
| Fields | |
|---|---|
session_id |
Parameter for grouping multiple interactions that belong to the same CodeMender session. |
session_config |
Optional session-specific configurations to override default agent behavior. |
model |
The name of the model to use for the CodeMender agent. One CodeMender session will only use one model. |
Union field request. CodeMender's request type. Set exactly one of find_request/fix_request only on the first round to start a session; on subsequent rounds (e.g. submitting tool results), leave this unset and identify the session via session_id. This oneof is intentionally not a subtype_source discriminator so it can be omitted on resume rounds. request can be only one of the following: |
|
find_request |
Parameters for finding vulnerabilities. |
fix_request |
Parameters for fixing vulnerabilities. |
FileContent
Content of a single file in the codebase.
| Fields | |
|---|---|
path |
The relative path of the file from the project root. |
content |
The UTF-8 encoded text content of the file. |
FindRequest
Request parameters specific to FIND sessions, used for discovering vulnerabilities in a codebase.
| Fields | |
|---|---|
source_files[] |
A list of source files to provide as context for the scan. |
finding_id |
The identifier of a specific finding to verify. This is primarily used in VERIFY mode to focus the agent's execution-based validation on a single vulnerability. |
description |
Additional context or custom instructions provided by the user to guide the vulnerability analysis. |
mode |
The mode of the find session. |
Mode
Defines the depth and thoroughness of the find session.
| Enums | |
|---|---|
MODE_UNSPECIFIED |
Default value. This value is unused. |
MODE_SCAN |
Fast scan using only the initial classifier. |
MODE_VERIFY |
Performs classification followed by detailed investigation. |
FixRequest
Request parameters specific to FIX sessions, used for generating and validating security patches.
| Fields | |
|---|---|
source_files[] |
A list of source files providing context for the remediation. These files are typically the ones containing the identified vulnerability. |
finding_id |
The identifier of the specific security finding to be remediated. This ID maps to a previously discovered vulnerability. |
description |
Additional context or custom instructions provided by the user to guide the patch generation process. |
SessionConfig
The configuration of CodeMender sessions.
| Fields | |
|---|---|
max_rounds |
The maximum number of interaction rounds the agent is allowed to perform before reaching a timeout. |
ComputerUse
A tool that can be used by the model to interact with the computer.
| Fields | |
|---|---|
environment |
The environment being operated. |
excluded_predefined_functions[] |
The list of predefined functions that are excluded from the model call. |
enable_prompt_injection_detection |
Whether enable the prompt injection detection check on computer-use request. |
disabled_safety_policies[] |
Optional. Disabled safety policies for computer use. |
Environment
Represents the environment being operated, such as a web browser.
| Enums | |
|---|---|
ENVIRONMENT_UNSPECIFIED |
Defaults to browser. |
BROWSER |
Operates in a web browser. |
MOBILE |
Operates in a mobile environment. |
DESKTOP |
Operates in a desktop environment. |
SafetyPolicy
| Enums | |
|---|---|
SAFETY_POLICY_UNSPECIFIED |
Unspecified safety policy. |
FINANCIAL_TRANSACTIONS |
Safety policy for financial transactions. |
SENSITIVE_DATA_MODIFICATION |
Safety policy for sensitive data modification. |
COMMUNICATION_TOOL |
Safety policy for communication tools (e.g. Gmail, Chat, Meet). |
ACCOUNT_CREATION |
Safety policy for account creation. |
DATA_MODIFICATION |
Safety policy for data modification. |
USER_CONSENT_MANAGEMENT |
Safety policy for user consent management. |
LEGAL_TERMS_AND_AGREEMENTS |
Safety policy for legal terms and agreements. |
Content
The content of the response.
| Fields | |
|---|---|
Union field
|
|
text |
|
image |
|
audio |
|
document |
|
video |
|
thought |
|
tool_call |
|
tool_result |
|
ContentDelta
| Fields | |
|---|---|
index |
|
delta |
|
ContentDeltaData
The delta content data for a content block.
| Fields | |
|---|---|
Union field type. The type of the delta content. type can be only one of the following: |
|
text |
|
image |
|
audio |
|
document |
|
video |
|
thought_summary |
|
thought_signature |
|
tool_call |
|
tool_result |
|
text_annotation |
|
ContentList
A list of Content.
| Fields | |
|---|---|
contents[] |
The contents of the list. |
ContentStart
| Fields | |
|---|---|
index |
|
content |
|
ContentStop
| Fields | |
|---|---|
index |
|
CreateInteractionHttpRequest
Request message for [InteractionsService.CreateInteractionHttp].
| Fields | |
|---|---|
parent |
Required. The parent resource where this interaction will be created. Format: Supported only by the Vertex API only. |
http_body |
Required. The interaction to create. |
CreateInteractionHttpTranscoderRequest
Request message for InteractionsHttpService.CreateInteractionHttp.
| Fields | |
|---|---|
parent |
Required. The parent resource where this interaction will be created. Format: Supported only by the Vertex API only. |
http_body |
Required. The interaction to create. |
CreateInteractionRequest
Configuration parameters for creating an interaction.
| Fields | |
|---|---|
stream |
Input only. Whether the interaction will be streamed. |
store |
Input only. Whether to store the response and request for later retrieval. |
interaction |
The interaction to create. |
background |
Input only. Whether to run the model interaction in the background. |
DeepResearchAgentConfig
Configuration for the Deep Research agent.
| Fields | |
|---|---|
thinking_summaries |
Whether to include thought summaries in the response. |
visualization |
Whether to include visualizations in the response. |
collaborative_planning |
Enables human-in-the-loop planning for the Deep Research agent. If set to true, the Deep Research agent will provide a research plan in its response. The agent will then proceed only if the user confirms the plan in the next turn. |
enable_bigquery_tool |
Enables bigquery tool for the Deep Research agent. |
VisualizationMode
Enum for visualization mode. Eventually we will support an interactive mode where the user can choose whether to include HTML visualizations in the response.
| Enums | |
|---|---|
UNSPECIFIED |
The default visualization mode. Will default to AUTO. |
OFF |
Do not include visualizations. |
AUTO |
Automatically include visualizations. |
DeleteInteractionRequest
Request for InteractionService.DeleteInteraction.
| Fields | |
|---|---|
name |
Required. The name of the interaction to delete. Format: interactions/{interaction} |
DeleteInteractionResponse
This type has no fields.
Response for InteractionService.DeleteInteraction.
DocumentContent
A document content block.
| Fields | |
|---|---|
mime_type |
The mime type of the document. |
Union field data_or_uri. The document content. data_or_uri can be only one of the following: |
|
data |
The document content. |
uri |
The URI of the document. |
MimeType
| Enums | |
|---|---|
TYPE_UNSPECIFIED |
|
TYPE_PDF |
PDF document format |
TYPE_CSV |
CSV document format |
DocumentDelta
| Fields | |
|---|---|
mime_type |
|
Union field
|
|
data |
|
uri |
|
DynamicAgentConfig
Configuration for dynamic agents.
| Fields | |
|---|---|
config |
For agents that are not supported statically in the API definition. |
EnvironmentConfig
Configuration for a custom environment.
| Fields | |
|---|---|
sources[] |
|
environment_id |
Optional. The environment ID for the interaction. If specified, the request will update the existing environment instead of creating a new one. |
Union field network. Network configuration for the environment. network can be only one of the following: |
|
network_allowlist |
Allow only specific domains. |
network_mode |
Network egress mode. |
EgressRule
A network egress rule that controls which external domains the environment is allowed to reach. Each rule identifies a target domain and, optionally, a set of HTTP headers to inject into every matching outbound request.
| Fields | |
|---|---|
domain |
The domain pattern to match for this rule. Use an exact hostname (e.g., |
transform |
Headers to inject into requests matching this rule. Key: header name (e.g., "Authorization"). Value: header value (e.g., "Bearer your-token"). |
EnvironmentNetworkEgressAllowlist
Network egress configuration for the environment.
| Fields | |
|---|---|
allowlist[] |
List of allowed domains and their configurations. |
NetworkMode
Network egress mode for non-allowlist configurations.
| Enums | |
|---|---|
NETWORK_MODE_UNSPECIFIED |
Default value. Unused. |
DISABLED |
All network egress is blocked. |
Source
A source to be mounted into the environment.
| Fields | |
|---|---|
type |
|
source |
The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path. |
target |
Where the source should appear in the environment. |
content |
The inline content if |
encoding |
Optional encoding for inline content (e.g. |
Type
| Enums | |
|---|---|
TYPE_UNSPECIFIED |
|
GCS |
A Cloud Storage bucket. |
INLINE |
Inline content. |
REPOSITORY |
A generic repository. The protocol prefix in the source URL identifies the provider (e.g., github://, gcs://). |
SKILL_REGISTRY |
A skill resource from the Skill Registry Service. Skill: projects/{project}/locations/{location}/skills/{skill} SkillRevision: projects/{project}/locations/{location}/skills/{skill}/revisions/{revision} Support mounting all skills under a project: projects/{project}/locations/{location}/skills. |
Error
Error message from an interaction.
| Fields | |
|---|---|
code |
A URI that identifies the error type. |
message |
A human-readable error message. |
ErrorEvent
| Fields | |
|---|---|
error |
|
ExaAISearchConfig
Used to specify configuration for ExaAISearch.
| Fields | |
|---|---|
api_key |
Required. The API key for ExaAiSearch. |
custom_config |
Optional. This field can be used to pass any parameter from the Exa.ai Search API. |
Field
Represents a single field in a struct.
| Fields | |
|---|---|
name |
|
value |
|
FileCitation
A file citation annotation.
| Fields | |
|---|---|
document_uri |
The URI of the file. |
file_name |
The name of the file. |
source |
Source attributed for a portion of the text. |
custom_metadata |
User provided metadata about the retrieved context. |
page_number |
Page number of the cited document, if applicable. |
media_id |
Media ID in-case of image citations, if applicable. |
FileSearch
A tool that can be used by the model to search files.
| Fields | |
|---|---|
file_search_store_names[] |
The file search store names to search. |
top_k |
The number of semantic retrieval chunks to retrieve. |
metadata_filter |
Metadata filter to apply to the semantic retrieval documents and chunks. |
FileSearchCallContent
This type has no fields.
File Search content.
FileSearchCallDelta
This type has no fields.
FileSearchCallStep
This type has no fields.
File Search call step.
FileSearchResultContent
File Search result content.
| Fields | |
|---|---|
result[] |
Optional. The results of the File Search. |
FileSearchResult
This type has no fields.
The result of the File Search.
FileSearchResultDelta
| Fields | |
|---|---|
result[] |
|
FileSearchResultStep
This type has no fields.
File Search result step.
Function
A tool that can be used by the model.
| Fields | |
|---|---|
name |
The name of the function. |
description |
A description of the function. |
parameters |
The JSON Schema for the function's parameters. |
FunctionCallContent
A function tool call content block.
| Fields | |
|---|---|
name |
Required. The name of the tool to call. |
arguments |
Required. The arguments to pass to the function. |
FunctionCallDelta
| Fields | |
|---|---|
name |
|
arguments |
|
FunctionCallStep
A function tool call step.
| Fields | |
|---|---|
name |
Required. The name of the tool to call. |
arguments |
Required. The arguments to pass to the function. |
FunctionResultContent
A function tool result content block.
| Fields | |
|---|---|
name |
The name of the tool that was called. |
is_error |
Whether the tool call resulted in an error. |
Union field result. The result of the tool call. result can be only one of the following: |
|
struct_result |
|
content_list |
|
string_result |
|
FunctionResultDelta
| Fields | |
|---|---|
name |
|
is_error |
|
result |
|
FunctionResultStep
Result of a function tool call.
| Fields | |
|---|---|
name |
The name of the tool that was called. |
is_error |
Whether the tool call resulted in an error. |
result |
Required. The result of the tool call. |
FunctionResultSubcontent
| Fields | |
|---|---|
Union field
|
|
text |
|
image |
|
FunctionResultSubcontentList
| Fields | |
|---|---|
contents[] |
|
GenerationConfig
Configuration parameters for model interactions.
| Fields | |
|---|---|
temperature |
Controls the randomness of the output. |
top_p |
The maximum cumulative probability of tokens to consider when sampling. |
seed |
Seed used in decoding for reproducibility. |
stop_sequences[] |
A list of character sequences that will stop output interaction. |
thinking_level |
The level of thought tokens that the model should generate. |
thinking_summaries |
Whether to include thought summaries in the response. |
max_output_tokens |
The maximum number of tokens to include in the response. |
speech_config[] |
Configuration for speech interaction. |
image_config |
Configuration for image interaction. |
video_config |
Configuration for video generation. |
transcription_config |
Optional. Configuration for speech recognition (transcription). If present, ASR is enabled. |
Union field tool_choice. The tool choice configuration. tool_choice can be only one of the following: |
|
tool_choice_mode |
The mode of the tool choice. |
tool_choice_config |
The config for the tool choice. |
GetInteractionHttpTranscoderRequest
Request for InteractionsHttpService.GetInteractionHttp.
| Fields | |
|---|---|
name |
Required. The name of the interaction to retrieve. Format: interactionsHttp/{interaction} |
stream |
Optional. If true, streams the interaction events as Server-Sent Events. |
last_event_id |
Optional. If set, resumes the interaction stream from the chunk after the event marked by the event id. Can only be used if |
include_input |
Optional. If true, includes the input in the response. |
GetInteractionRequest
Request for InteractionService.GetInteraction.
| Fields | |
|---|---|
name |
Required. The name of the interaction to retrieve. Format: interactions/{interaction} |
stream |
Optional. If true, streams the interaction events as Server-Sent Events. |
last_event_id |
Optional. If set, resumes the interaction stream from the chunk after the event marked by the event id. Can only be used if |
include_input |
Optional. If true, includes the input in the response. |
GoogleMaps
A tool that can be used by the model to call Google Maps.
| Fields | |
|---|---|
enable_widget |
Whether to return a widget context token in the tool call result of the response. |
latitude |
The latitude of the user's location. |
longitude |
The longitude of the user's location. |
GoogleMapsCallContent
Google Maps content.
| Fields | |
|---|---|
arguments |
The arguments to pass to the Google Maps tool. |
GoogleMapsCallArguments
The arguments to pass to the Google Maps tool.
| Fields | |
|---|---|
queries[] |
The queries to be executed. |
GoogleMapsCallDelta
| Fields | |
|---|---|
arguments |
The arguments to pass to the Google Maps tool. |
GoogleMapsCallStep
Google Maps call step.
| Fields | |
|---|---|
arguments |
The arguments to pass to the Google Maps tool. |
GoogleMapsCallStepArguments
The arguments to pass to the Google Maps tool.
| Fields | |
|---|---|
queries[] |
The queries to be executed. |
GoogleMapsResultContent
Google Maps result content.
| Fields | |
|---|---|
result[] |
Required. The results of the Google Maps. |
GoogleMapsResult
The result of the Google Maps.
| Fields | |
|---|---|
places[] |
The places that were found. |
widget_context_token |
Resource name of the Google Maps widget context token. |
Places
| Fields | |
|---|---|
place_id |
The ID of the place, in |
name |
Title of the place. |
url |
URI reference of the place. |
review_snippets[] |
Snippets of reviews that are used to generate answers about the features of a given place in Google Maps. |
GoogleMapsResultDelta
| Fields | |
|---|---|
result[] |
The results of the Google Maps. |
GoogleMapsResultStep
Google Maps result step.
| Fields | |
|---|---|
result[] |
|
GoogleMapsResultItem
The result of the Google Maps.
| Fields | |
|---|---|
places[] |
|
widget_context_token |
|
GoogleMapsResultPlaces
| Fields | |
|---|---|
place_id |
|
name |
|
url |
|
review_snippets[] |
|
GoogleSearch
A tool that can be used by the model to search Google.
| Fields | |
|---|---|
search_types[] |
The types of search grounding to enable. |
SearchType
The types of search grounding to enable.
| Enums | |
|---|---|
SEARCH_TYPE_UNSPECIFIED |
Unspecified search type. This value should not be used. |
SEARCH_TYPE_WEB_SEARCH |
Setting this field enables web search. Only text results are returned. |
SEARCH_TYPE_IMAGE_SEARCH |
Setting this field enables image search. Image bytes are returned. |
SEARCH_TYPE_ENTERPRISE_WEB_SEARCH |
Setting this field enables enterprise web search. |
GoogleSearchCallContent
Google Search content.
| Fields | |
|---|---|
arguments |
Required. The arguments to pass to Google Search. |
search_type |
The type of search grounding enabled. |
GoogleSearchCallArguments
The arguments to pass to Google Search.
| Fields | |
|---|---|
queries[] |
Web search queries for the following-up web search. |
GoogleSearchCallDelta
| Fields | |
|---|---|
arguments |
|
GoogleSearchCallStep
Google Search call step.
| Fields | |
|---|---|
arguments |
Required. The arguments to pass to Google Search. |
search_type |
The type of search grounding enabled. |
GoogleSearchCallStepArguments
The arguments to pass to Google Search.
| Fields | |
|---|---|
queries[] |
Web search queries for the following-up web search. |
GoogleSearchResultContent
Google Search result content.
| Fields | |
|---|---|
result[] |
Required. The results of the Google Search. |
is_error |
Whether the Google Search resulted in an error. |
GoogleSearchResult
The result of the Google Search.
| Fields | |
|---|---|
search_suggestions |
Web content snippet that can be embedded in a web page or an app webview. |
GoogleSearchResultDelta
| Fields | |
|---|---|
result[] |
|
is_error |
|
GoogleSearchResultStep
Google Search result step.
| Fields | |
|---|---|
result[] |
Required. The results of the Google Search. |
is_error |
Whether the Google Search resulted in an error. |
GoogleSearchResultItem
The result of the Google Search.
| Fields | |
|---|---|
search_suggestions |
Web content snippet that can be embedded in a web page or an app webview. |
HarmCategory
Harm categories that can be detected in user input and model responses.
| Enums | |
|---|---|
HARM_CATEGORY_UNSPECIFIED |
Default value. This value is unused. |
HARM_CATEGORY_HATE_SPEECH |
Content that promotes violence or incites hatred against individuals or groups based on certain attributes. |
HARM_CATEGORY_DANGEROUS_CONTENT |
Content that promotes, facilitates, or enables dangerous activities. |
HARM_CATEGORY_HARASSMENT |
Abusive, threatening, or content intended to bully, torment, or ridicule. |
HARM_CATEGORY_SEXUALLY_EXPLICIT |
Content that contains sexually explicit material. |
HARM_CATEGORY_CIVIC_INTEGRITY |
Deprecated: Election filter is not longer supported. The harm category is civic integrity. |
HARM_CATEGORY_IMAGE_HATE |
Images that contain hate speech. |
HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT |
Images that contain dangerous content. |
HARM_CATEGORY_IMAGE_HARASSMENT |
Images that contain harassment. |
HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT |
Images that contain sexually explicit content. |
HARM_CATEGORY_JAILBREAK |
Prompts designed to bypass safety filters. |
ImageConfig
The configuration for image interaction.
| Fields | |
|---|---|
aspect_ratio |
The aspect ratio of the image to generate. Supported aspect ratios: 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9. If not specified, the model will choose a default aspect ratio based on any reference images provided. |
image_size |
Specifies the size of generated images. Supported values are |
ImageContent
An image content block.
| Fields | |
|---|---|
mime_type |
The mime type of the image. |
resolution |
The resolution of the media. |
Union field data_or_uri. The image content. data_or_uri can be only one of the following: |
|
data |
The image content. |
uri |
The URI of the image. |
MimeType
| Enums | |
|---|---|
TYPE_UNSPECIFIED |
|
TYPE_PNG |
PNG image format |
TYPE_JPEG |
JPEG image format |
TYPE_WEBP |
WebP image format |
TYPE_HEIC |
HEIC image format |
TYPE_HEIF |
HEIF image format |
TYPE_GIF |
GIF image format |
TYPE_BMP |
BMP image format |
TYPE_TIFF |
TIFF image format |
TYPE_VIDEO_FRAME_JPEG2000 |
Video frame JPEG2000 format (internal) |
TYPE_VIDEO_JPEG2000 |
Video only frame JPEG2000 format (internal) |
ImageDelta
| Fields | |
|---|---|
mime_type |
|
resolution |
The resolution of the media. |
Union field
|
|
data |
|
uri |
|
ImageResponseFormat
Configuration for image output format.
| Fields | |
|---|---|
mime_type |
The MIME type of the image output. |
delivery |
The delivery mode for the image output. |
aspect_ratio |
The aspect ratio for the image output. |
image_size |
The size of the image output. |
AspectRatio
Supported aspect ratios for image output.
| Enums | |
|---|---|
ASPECT_RATIO_UNSPECIFIED |
Default value. This value is unused. |
ASPECT_RATIO_ONE_BY_ONE |
1:1 aspect ratio. |
ASPECT_RATIO_TWO_BY_THREE |
2:3 aspect ratio. |
ASPECT_RATIO_THREE_BY_TWO |
3:2 aspect ratio. |
ASPECT_RATIO_THREE_BY_FOUR |
3:4 aspect ratio. |
ASPECT_RATIO_FOUR_BY_THREE |
4:3 aspect ratio. |
ASPECT_RATIO_FOUR_BY_FIVE |
4:5 aspect ratio. |
ASPECT_RATIO_FIVE_BY_FOUR |
5:4 aspect ratio. |
ASPECT_RATIO_NINE_BY_SIXTEEN |
9:16 aspect ratio. |
ASPECT_RATIO_SIXTEEN_BY_NINE |
16:9 aspect ratio. |
ASPECT_RATIO_TWENTY_ONE_BY_NINE |
21:9 aspect ratio. |
ASPECT_RATIO_ONE_BY_EIGHT |
1:8 aspect ratio. |
ASPECT_RATIO_EIGHT_BY_ONE |
8:1 aspect ratio. |
ASPECT_RATIO_ONE_BY_FOUR |
1:4 aspect ratio. |
ASPECT_RATIO_FOUR_BY_ONE |
4:1 aspect ratio. |
Delivery
Delivery mode for image output.
| Enums | |
|---|---|
DELIVERY_UNSPECIFIED |
Default value. This value is unused. |
INLINE |
Image data is returned inline in the response. |
URI |
Image data is returned as a URI. |
ImageSize
Supported image sizes for image output.
| Enums | |
|---|---|
IMAGE_SIZE_UNSPECIFIED |
Default value. This value is unused. |
IMAGE_SIZE_FIVE_TWELVE |
512px image size. |
IMAGE_SIZE_ONE_K |
1K image size. |
IMAGE_SIZE_TWO_K |
2K image size. |
IMAGE_SIZE_FOUR_K |
4K image size. |
MimeType
Supported MIME types for image output.
| Enums | |
|---|---|
TYPE_UNSPECIFIED |
Default value. This value is unused. |
TYPE_JPEG |
JPEG image format. |
Interaction
Response for InteractionService.CreateInteraction.
| Fields | |
|---|---|
id |
Required. Output only. A unique identifier for the interaction completion. |
status |
Required. Output only. The status of the interaction. |
created |
Required. Output only. The time at which the response was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ). |
updated |
Required. Output only. The time at which the response was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ). |
role |
Output only. The role of the interaction. |
outputs[] |
Output only. Responses from the model. |
system_instruction |
System instruction for the interaction. |
tools[] |
A list of tool declarations the model may call during interaction. |
usage |
Output only. Statistics on the interaction request's token usage. |
response_modalities[] |
The requested modalities of the response (TEXT, IMAGE, AUDIO). |
response_mime_type |
The mime type of the response. This is required if response_format is set. |
previous_interaction_id |
The ID of the previous interaction, if any. |
environment_id |
Output only. The environment ID for the interaction. Only populated if environment config is set in the request. |
steps[] |
Required. Output only. The steps that make up the interaction. |
safety_settings[] |
Safety settings for the interaction. |
labels |
Optional. The labels with user-defined metadata for the request. It is used for billing and reporting only. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. |
Union field input. The input for the interaction. input can be only one of the following: |
|
content_list |
The inputs for the interaction. |
string_content |
A string input for the interaction, it will be processed as a single text input. |
turn_list |
The turns for the interaction. |
step_list |
Input only. The steps for the interaction. |
content |
The content for the interaction. |
Union field
|
|
response_format |
Enforces that the generated response is a JSON object that complies with the JSON schema specified in this field. |
response_format_list |
|
response_format_singleton |
|
Union field request_type. The request type for the interaction. request_type can be only one of the following: |
|
model_interaction |
Interaction for generating the completion using models. |
agent_interaction |
Interaction for generating the completion using agents. |
Union field environment. The environment configuration for the interaction. environment can be only one of the following: |
|
env_id |
The environment ID for the interaction. Can be 'remote' for default environment. |
remote_environment |
|
local_environment |
The agent's environment lives on the client connection: its built-in environment operations (filesystem ops and running commands) are yielded to the client to execute, instead of running in a server-managed sandbox. Mutually exclusive with |
Status
The status of the interaction.
| Enums | |
|---|---|
UNSPECIFIED |
Default value. This value is unused. |
IN_PROGRESS |
The interaction is in progress. |
REQUIRES_ACTION |
The interaction requires action/input from the user. |
COMPLETED |
The interaction is completed. |
FAILED |
The interaction failed. |
CANCELLED |
The interaction was cancelled. |
INCOMPLETE |
The interaction is completed, but contains incomplete results (e.g. hitting max_tokens). |
BUDGET_EXCEEDED |
The interaction was halted because the token budget was exceeded. |
QUEUED |
The interaction is queued, waiting for processing (e.g. waiting for off-peak capacity). |
Usage
Statistics on the interaction request's token usage.
| Fields | |
|---|---|
total_input_tokens |
Number of tokens in the prompt (context). |
input_tokens_by_modality[] |
A breakdown of input token usage by modality. |
total_cached_tokens |
Number of tokens in the cached part of the prompt (the cached content). |
cached_tokens_by_modality[] |
A breakdown of cached token usage by modality. |
total_output_tokens |
Total number of tokens across all the generated responses. |
output_tokens_by_modality[] |
A breakdown of output token usage by modality. |
total_tool_use_tokens |
Number of tokens present in tool-use prompt(s). |
tool_use_tokens_by_modality[] |
A breakdown of tool-use token usage by modality. |
total_thought_tokens |
Number of tokens of thoughts for thinking models. |
total_tokens |
Total token count for the interaction request (prompt + responses + other internal tokens). |
grounding_tool_count[] |
Grounding tool count. |
GroundingToolCount
The number of grounding tool counts.
| Fields | |
|---|---|
type |
The grounding tool type associated with the count. |
count |
The number of grounding tool counts. |
Type
The type of grounding tool.
| Enums | |
|---|---|
TYPE_UNSPECIFIED |
Default value. This value is unused. |
GOOGLE_SEARCH |
Grounding with Google Web Search and Image Search, & Web Grounding for Enterprise. |
GOOGLE_MAPS |
Grounding with Google Maps. |
RETRIEVAL |
Grounding with customer's data, for example, VertexAISearch. |
ModalityTokens
The token count for a single response modality.
| Fields | |
|---|---|
modality |
The modality associated with the token count. |
tokens |
Number of tokens for the modality. |
InteractionCompleteEvent
| Fields | |
|---|---|
interaction |
Required. The completed interaction with empty outputs to reduce the payload size. Use the preceding ContentDelta events for the actual output. |
InteractionCompletedSseEvent
| Fields | |
|---|---|
interaction |
Required. The completed interaction with empty outputs to reduce the payload size. Use the preceding ContentDelta events for the actual output. |
InteractionCreatedSseEvent
| Fields | |
|---|---|
interaction |
|
InteractionMetadata
Metadata for an interaction, used for listing interactions.
| Fields | |
|---|---|
id |
Output only. A unique identifier for the interaction completion. |
status |
Output only. The status of the interaction. |
created |
Output only. The time at which the response was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ). |
updated |
Output only. The time at which the response was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ). |
InteractionStartEvent
| Fields | |
|---|---|
interaction |
|
InteractionStatusUpdate
| Fields | |
|---|---|
interaction_id |
|
status |
|
InteractionStreamingEvent
| Fields | |
|---|---|
event_id |
The event_id token to be used to resume the interaction stream, from this event. |
metadata |
Optional metadata accompanying ANY streamed event. |
Union field event_type. The event data. event_type can be only one of the following: |
|
interaction_start_event |
The interaction data, used for interaction.start events. Legacy event, used when steps are disabled. |
interaction_complete_event |
The interaction data, used for interaction.complete events. Legacy event, used when steps are disabled. |
interaction_created_event |
The interaction data, used for interaction.created events. Used when steps are enabled. |
interaction_completed_event |
The interaction data, used for interaction.completed events. Used when steps are enabled. |
interaction_status_update |
The interaction status data, used for interaction.status_update events. |
content_start |
The content block start data, used for content.start events. Legacy content-based streaming event, used when steps are disabled. |
content_delta |
The content block delta data, used for content.delta events. Legacy content-based streaming event, used when steps are disabled. |
content_stop |
The content block stop data, used for content.stop events. Legacy content-based streaming event, used when steps are disabled. |
error_event |
The error event data, used for error events. |
step_start |
The step start data, used for step.start events. Step-based streaming event, used when steps are enabled. |
step_delta |
The step delta data, used for step.delta events. Step-based streaming event, used when steps are enabled. |
step_stop |
The step stop data, used for step.stop events. Step-based streaming event, used when steps are enabled. |
LegacyAudioContent
| Fields | |
|---|---|
mime_type |
|
rate |
|
channels |
|
sample_rate |
|
Union field
|
|
data |
|
uri |
|
LegacyDocumentContent
| Fields | |
|---|---|
mime_type |
|
Union field
|
|
data |
|
uri |
|
LegacyImageContent
| Fields | |
|---|---|
mime_type |
|
resolution |
|
Union field
|
|
data |
|
uri |
|
LegacyTextContent
| Fields | |
|---|---|
text |
|
annotations[] |
|
LegacyVideoContent
| Fields | |
|---|---|
mime_type |
|
resolution |
|
Union field
|
|
data |
|
uri |
|
ListInteractionsHttpTranscoderRequest
Request message for InteractionsHttpService.ListInteractionsHttp.
| Fields | |
|---|---|
parent |
Required. The parent, which owns this collection of interactions. Format: Supported only by the Agent Platform Platform. |
page_size |
Optional. The maximum number of If unspecified, at most 10 |
page_token |
Optional. A page token, received from a previous Provide the When paginating, all other parameters provided to |
ListInteractionsRequest
| Fields | |
|---|---|
parent |
Required. The parent, which owns this collection of interactions. Format: Supported only by the Agent Platform Platform. |
page_size |
Optional. The maximum number of If unspecified, at most 10 |
page_token |
Optional. A page token, received from a previous Provide the When paginating, all other parameters provided to Note: Vertex API does not enforce this requirement on page_size. |
ListInteractionsResponse
| Fields | |
|---|---|
interaction_metadatas[] |
The |
next_page_token |
A token, which can be sent as |
ListValue
ListValue is a wrapper around a repeated field of values.
| Fields | |
|---|---|
values[] |
Repeated field of dynamically typed values. |
LocalEnvironmentConfig
This type has no fields.
Configuration for an environment that lives on the client connection rather than in a server-managed sandbox.
When set (via Interaction.local_environment), the agent's filesystem and shell are treated as living on the client: the agent's built-in environment operations (e.g. reading/listing/editing files and running commands) are suspended on the server and yielded back to the client to execute, with their results returned on a subsequent turn. This is mutually exclusive with a server-managed EnvironmentConfig (remote_environment), since the environment is either on the client or in a server sandbox, never both.
This governs only the agent's built-in environment. Client-declared function tools are always executed on the client regardless of this field.
McpServer
A MCPServer is a server that can be called by the model to perform actions.
| Fields | |
|---|---|
name |
The name of the MCPServer. |
url |
The full URL for the MCPServer endpoint. Example: "https://api.example.com/mcp" |
headers |
Optional: Fields for authentication headers, timeouts, etc., if needed. |
allowed_tools[] |
The allowed tools. |
McpServerToolCallContent
MCPServer tool call content.
| Fields | |
|---|---|
name |
Required. The name of the tool which was called. |
server_name |
Required. The name of the used MCP server. |
arguments |
Required. The JSON object of arguments for the function. |
McpServerToolCallDelta
| Fields | |
|---|---|
name |
|
server_name |
|
arguments |
|
McpServerToolCallStep
MCPServer tool call step.
| Fields | |
|---|---|
name |
Required. The name of the tool which was called. |
server_name |
Required. The name of the used MCP server. |
arguments |
Required. The JSON object of arguments for the function. |
McpServerToolResultContent
MCPServer tool result content.
| Fields | |
|---|---|
name |
Name of the tool which is called for this specific tool call. |
server_name |
The name of the used MCP server. |
Union field result. The output from the MCP server call. Can be simple text or rich content. result can be only one of the following: |
|
struct_result |
|
content_list |
|
string_result |
|
McpServerToolResultDelta
| Fields | |
|---|---|
name |
|
server_name |
|
result |
|
McpServerToolResultStep
MCPServer tool result step.
| Fields | |
|---|---|
name |
Name of the tool which is called for this specific tool call. |
server_name |
The name of the used MCP server. |
result |
Required. The output from the MCP server call. Can be simple text or rich content. |
MediaResolution
Resolution for input media (images/video).
| Enums | |
|---|---|
MEDIA_RESOLUTION_UNSPECIFIED |
Default value. This value is unused. |
LOW |
Low resolution. |
MEDIUM |
Medium resolution. |
HIGH |
High resolution. |
ULTRA_HIGH |
Ultra high resolution. |
ModelInteraction
Interaction for generating the completion using models.
| Fields | |
|---|---|
model |
The name of the |
generation_config |
Input only. Configuration parameters for the model interaction. |
ModelOutputStep
Output generated by the model.
| Fields | |
|---|---|
content[] |
|
error |
The error result of the operation in case of failure or cancellation. |
ParallelAISearchConfig
Used to specify configuration for ParallelAISearch.
| Fields | |
|---|---|
api_key |
Optional. The API key for ParallelAiSearch. |
custom_config |
Optional. Custom configs for ParallelAiSearch. |
PlaceCitation
A place citation annotation.
| Fields | |
|---|---|
place_id |
The ID of the place, in |
name |
Title of the place. |
url |
URI reference of the place. |
review_snippets[] |
Snippets of reviews that are used to generate answers about the features of a given place in Google Maps. |
RagStoreConfig
Use to specify configuration for RAG Store.
| Fields | |
|---|---|
rag_resources[] |
Optional. The representation of the rag source. |
similarity_top_k |
Optional. Number of top k results to return from the selected corpora. |
vector_distance_threshold |
Optional. Only return results with vector distance smaller than the threshold. |
rag_retrieval_config |
Optional. The retrieval config for the Rag query. |
RagResource
The definition of the Rag resource.
| Fields | |
|---|---|
rag_corpus |
Optional. RagCorpora resource name. |
rag_file_ids[] |
Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field. |
RagRetrievalConfig
Specifies the context retrieval config.
| Fields | |
|---|---|
top_k |
Optional. The number of contexts to retrieve. |
hybrid_search |
Optional. Config for Hybrid Search. |
filter |
Optional. Config for filters. |
ranking |
Optional. Config for ranking and reranking. |
Filter
Config for filters.
| Fields | |
|---|---|
metadata_filter |
Optional. String for metadata filtering. |
Union field vector_db_threshold. Filter contexts retrieved from the vector DB based on either vector distance or vector similarity. vector_db_threshold can be only one of the following: |
|
vector_distance_threshold |
Optional. Only returns contexts with vector distance smaller than the threshold. |
vector_similarity_threshold |
Optional. Only returns contexts with vector similarity larger than the threshold. |
HybridSearch
Config for Hybrid Search.
| Fields | |
|---|---|
alpha |
Optional. Alpha value controls the weight between dense and sparse vector search results. |
Ranking
Config for ranking and reranking.
| Fields | |
|---|---|
Union field ranking_config. Config options for ranking. ranking_config can be only one of the following: |
|
rank_service |
Optional. Config for Rank Service. |
RankService
Config for Rank Service.
| Fields | |
|---|---|
model_name |
Optional. The model name of the rank service. |
ResponseFormat
| Fields | |
|---|---|
Union field
|
|
audio |
|
text |
|
image |
|
video |
|
struct_value |
Multi-discriminator values is already enabled in GAOS |
ResponseFormatList
| Fields | |
|---|---|
response_formats[] |
|
ResponseModality
The modality of the response.
| Enums | |
|---|---|
RESPONSE_MODALITY_UNSPECIFIED |
Default value. This value is unused. |
TEXT |
Indicates the model should return text. |
IMAGE |
Indicates the model should return images. |
AUDIO |
Indicates the model should return audio. |
VIDEO |
Indicates the model should return video. |
DOCUMENT |
Indicates the model should return documents. |
Retrieval
A tool that can be used by the model to retrieve files.
| Fields | |
|---|---|
retrieval_types[] |
The types of file retrieval to enable. |
vertex_ai_search_config |
Used to specify configuration for VertexAISearch. |
exa_ai_search_config |
Used to specify configuration for ExaAISearch. |
parallel_ai_search_config |
Used to specify configuration for ParallelAISearch. |
rag_store_config |
Used to specify configuration for RagStore. |
RetrievalType
The types of file retrieval to enable.
| Enums | |
|---|---|
RETRIEVAL_TYPE_UNSPECIFIED |
|
RETRIEVAL_TYPE_VERTEX_AI_SEARCH |
|
RETRIEVAL_TYPE_RAG_STORE |
|
RETRIEVAL_TYPE_EXA_AI_SEARCH |
|
RETRIEVAL_TYPE_PARALLEL_AI_SEARCH |
|
RetrievalCallDelta
Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Agent Platform Search, etc. RetrievalType decides which tool is used.
| Fields | |
|---|---|
arguments |
Required. The arguments to pass to the Retrieval tool. |
retrieval_type |
The type of retrieval tools. |
RetrievalCallStep
Retrieval call step. Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Agent Platform Search, etc. RetrievalType decides which tool is used.
| Fields | |
|---|---|
arguments |
Required. The arguments to pass to the retrieval tool. |
retrieval_type |
The type of retrieval tools. |
RetrievalStepArguments
The arguments to pass to Retrieval tools.
| Fields | |
|---|---|
queries[] |
Queries for Retrieval information. |
RetrievalResultDelta
Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Agent Platform Search, etc. ToolResultDelta.type
| Fields | |
|---|---|
is_error |
Whether the retrieval resulted in an error. |
RetrievalResultStep
Vertex Retrieval result step. Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Agent Platform Search, etc.
| Fields | |
|---|---|
is_error |
Whether the retrieval resulted in an error. |
ReviewSnippet
Encapsulates a snippet of a user review that answers a question about the features of a specific place in Google Maps.
| Fields | |
|---|---|
title |
Title of the review. |
url |
A link that corresponds to the user review on Google Maps. |
review_id |
The ID of the review snippet. |
SafetySetting
A safety setting that affects the safety-blocking behavior.
A SafetySetting consists of a harm category and a threshold for that category.
| Fields | |
|---|---|
type |
Required. The type of harm category to be blocked. |
threshold |
Required. The threshold for blocking content. If the harm probability exceeds this threshold, the content will be blocked. |
method |
Optional. The method for blocking content. If not specified, the default behavior is to use the probability score. |
HarmBlockMethod
The method for blocking content.
| Enums | |
|---|---|
HARM_BLOCK_METHOD_UNSPECIFIED |
The harm block method is unspecified. |
SEVERITY |
The harm block method uses both probability and severity scores. |
PROBABILITY |
The harm block method uses the probability score. |
HarmBlockThreshold
Thresholds for blocking content based on harm probability.
| Enums | |
|---|---|
HARM_BLOCK_THRESHOLD_UNSPECIFIED |
The harm block threshold is unspecified. |
BLOCK_LOW_AND_ABOVE |
Block content with a low harm probability or higher. |
BLOCK_MEDIUM_AND_ABOVE |
Block content with a medium harm probability or higher. |
BLOCK_ONLY_HIGH |
Block content with a high harm probability. |
BLOCK_NONE |
Do not block any content, regardless of its harm probability. |
OFF |
Turn off the safety filter entirely. |
ServerToolCallDelta
| Fields | |
|---|---|
signature |
A signature hash for backend validation. |
Union field
|
|
code_execution_call |
|
url_context_call |
|
google_search_call |
|
mcp_server_tool_call |
|
file_search_call |
|
google_maps_call |
|
retrieval_call |
|
ServerToolResultDelta
| Fields | |
|---|---|
signature |
A signature hash for backend validation. |
Union field
|
|
code_execution_result |
|
url_context_result |
|
google_search_result |
|
mcp_server_tool_result |
|
file_search_result |
|
google_maps_result |
|
retrieval_result |
|
SpeechConfig
The configuration for speech interaction.
| Fields | |
|---|---|
voice |
The voice of the speaker. |
language |
The language of the speech. |
speaker |
The speaker's name, it should match the speaker name given in the prompt. |
Step
A step in the interaction.
| Fields | |
|---|---|
Union field
|
|
thought |
|
tool_call |
|
tool_result |
|
user_input |
DO NOT USE -- These are for 3P JSON only |
model_output |
|
text |
|
image |
|
audio |
|
document |
|
video |
|
StepDelta
| Fields | |
|---|---|
index |
|
delta |
|
StepDeltaData
| Fields | |
|---|---|
Union field
|
|
text |
|
image |
|
audio |
|
document |
|
video |
|
thought_summary |
|
thought_signature |
|
text_annotation_delta |
|
arguments_delta |
|
server_tool_call |
|
server_tool_result |
|
function_result |
|
StepList
A list of Steps.
| Fields | |
|---|---|
steps[] |
The steps of the list. |
StepStart
| Fields | |
|---|---|
index |
|
step |
|
StepStop
| Fields | |
|---|---|
index |
|
usage |
Cumulative model usage stats from the start of the session. |
step_usage |
Model usage stats for this specific step. |
StreamMetadata
| Fields | |
|---|---|
total_usage |
|
Struct
Struct represents a structured data value, consisting of fields which map to dynamically typed values.
| Fields | |
|---|---|
fields[] |
Dynamically typed fields. List instead of map because LLMs are sensitive to ordering, and we want to give users full control. |
TextAnnotationDelta
| Fields | |
|---|---|
annotations[] |
Citation information for model-generated content. |
TextContent
A text content block.
| Fields | |
|---|---|
text |
Required. The text content. |
annotations[] |
Citation information for model-generated content. |
Annotation
Citation information for model-generated content.
| Fields | |
|---|---|
start_index |
Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes. |
end_index |
End of the attributed segment, exclusive. |
Union field type. The type of annotation. type can be only one of the following: |
|
url_citation |
NOTE: We use these instead of the Citation message for historical reasons. A URL citation annotation. |
file_citation |
A file citation annotation. |
place_citation |
A place citation annotation. |
word_info |
Word-level ASR annotation with timing and speaker info. |
TextDelta
| Fields | |
|---|---|
text |
|
TextResponseFormat
Configuration for text output format.
| Fields | |
|---|---|
mime_type |
The MIME type of the text output. |
schema |
The JSON schema that the output should conform to. Only applicable when mime_type is application/json. |
MimeType
Supported MIME types for text output.
| Enums | |
|---|---|
TYPE_UNSPECIFIED |
Default value. This value is unused. |
TYPE_APPLICATION_JSON |
JSON output format. |
TYPE_TEXT_PLAIN |
Plain text output format. |
ThinkingLevel
The level of thought tokens that the model should generate.
| Enums | |
|---|---|
THINKING_LEVEL_UNSPECIFIED |
Default value. This value is unused. |
THINKING_LEVEL_MINIMAL |
Little to no thinking. |
THINKING_LEVEL_LOW |
Low thinking level. |
THINKING_LEVEL_MEDIUM |
Medium thinking level. |
THINKING_LEVEL_HIGH |
High thinking level. |
ThinkingSummaries
Whether to include thought summaries in the response.
| Enums | |
|---|---|
THINKING_SUMMARIES_UNSPECIFIED |
Default value. This value is unused. |
THINKING_SUMMARIES_AUTO |
Auto thinking summaries. |
THINKING_SUMMARIES_NONE |
No thinking summaries. |
ThoughtContent
A thought content block.
| Fields | |
|---|---|
signature |
Signature to match the backend source to be part of the generation. |
summary[] |
A summary of the thought. |
ThoughtSignatureDelta
| Fields | |
|---|---|
signature |
Signature to match the backend source to be part of the generation. |
ThoughtStep
A thought step.
| Fields | |
|---|---|
signature |
A signature hash for backend validation. |
summary[] |
A summary of the thought. |
ThoughtSummaryContent
| Fields | |
|---|---|
Union field
|
|
text |
|
image |
|
ThoughtSummaryDelta
| Fields | |
|---|---|
content |
A new summary item to be added to the thought. |
Tool
A tool that can be used by the model.
| Fields | |
|---|---|
Union field type. The tool to use. type can be only one of the following: |
|
function |
A function that can be used by the model. |
code_execution |
A tool that can be used by the model to execute code. |
url_context |
A tool that can be used by the model to fetch URL context. |
computer_use |
Tool to support the model interacting directly with the computer. |
mcp_server |
A MCPServer is a server that can be called by the model to perform actions. |
google_search |
A tool that can be used by the model to search Google. |
file_search |
A tool that can be used by the model to search files. |
google_maps |
A tool that can be used by the model to search Google Maps. |
retrieval |
A tool that can be used by the model to retrieve files. |
ToolCallContent
Tool call content.
| Fields | |
|---|---|
id |
Required. A unique ID for this specific tool call. |
signature |
A signature hash for backend validation. |
Union field
|
|
function_call |
|
code_execution_call |
|
url_context_call |
|
mcp_server_tool_call |
|
google_search_call |
|
file_search_call |
|
google_maps_call |
|
ToolCallDelta
| Fields | |
|---|---|
id |
Required. A unique ID for this specific tool call. |
signature |
A signature hash for backend validation. |
Union field
|
|
function_call |
|
code_execution_call |
|
url_context_call |
|
google_search_call |
|
mcp_server_tool_call |
|
file_search_call |
|
google_maps_call |
|
ToolCallStep
Tool call step.
| Fields | |
|---|---|
id |
Required. A unique ID for this specific tool call. |
signature |
A signature hash for backend validation. |
Union field
|
|
function_call |
|
code_execution_call |
|
url_context_call |
|
mcp_server_tool_call |
|
google_search_call |
|
file_search_call |
|
google_maps_call |
|
retrieval_call |
|
ToolChoiceConfig
The tool choice configuration containing allowed tools.
| Fields | |
|---|---|
allowed_tools |
The allowed tools. |
ToolChoiceType
The type of tool choice.
| Enums | |
|---|---|
TOOL_CHOICE_TYPE_UNSPECIFIED |
Default value. This value is unused. |
AUTO |
Auto tool choice. |
ANY |
Any tool choice. |
NONE |
No tool choice. |
VALIDATED |
Validated tool choice. |
ToolResultContent
Tool result content.
| Fields | |
|---|---|
call_id |
Required. ID to match the ID from the function call block. |
signature |
A signature hash for backend validation. |
Union field
|
|
function_result |
|
code_execution_result |
|
url_context_result |
|
google_search_result |
|
mcp_server_tool_result |
|
file_search_result |
|
google_maps_result |
|
ToolResultDelta
| Fields | |
|---|---|
call_id |
Required. ID to match the ID from the function call block. |
signature |
A signature hash for backend validation. |
Union field
|
|
function_result |
|
code_execution_result |
|
url_context_result |
|
google_search_result |
|
mcp_server_tool_result |
|
file_search_result |
|
google_maps_result |
|
ToolResultStep
Tool result step.
| Fields | |
|---|---|
call_id |
Required. ID to match the ID from the function call block. |
signature |
A signature hash for backend validation. |
Union field
|
|
function_result |
|
code_execution_result |
|
url_context_result |
|
google_search_result |
|
mcp_server_tool_result |
|
file_search_result |
|
google_maps_result |
|
retrieval_result |
|
TranscriptionConfig
Configuration for speech recognition (transcription).
| Fields | |
|---|---|
timestamp_granularities[] |
Optional. The granularity of timestamps to include in the transcription output. Supported values: "word". If empty, no timestamps are generated. |
diarization_mode |
Optional. Configures speaker diarization. Supported values: "speaker". |
language_codes[] |
Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection. |
adaptation_phrases[] |
Optional. A list of phrases to bias the ASR model towards. |
custom_vocabulary[] |
Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms. |
Turn
| Fields | |
|---|---|
role |
The originator of this turn. Must be user for input or model for model output. |
Union field
|
|
content_list |
The content of the turn. An array of Content objects. |
content_string |
The content of the turn. A single string. |
TurnList
A list of Turns.
| Fields | |
|---|---|
turns[] |
|
UrlCitation
A URL citation annotation.
| Fields | |
|---|---|
url |
The URL. |
title |
The title of the URL. |
UrlContext
This type has no fields.
A tool that can be used by the model to fetch URL context.
UrlContextCallContent
URL context content.
| Fields | |
|---|---|
arguments |
Required. The arguments to pass to the URL context. |
UrlContextCallArguments
The arguments to pass to the URL context.
| Fields | |
|---|---|
urls[] |
The URLs to fetch. |
UrlContextCallDelta
| Fields | |
|---|---|
arguments |
|
UrlContextCallStep
URL context call step.
| Fields | |
|---|---|
arguments |
Required. The arguments to pass to the URL context. |
UrlContextCallStepArguments
The arguments to pass to the URL context.
| Fields | |
|---|---|
urls[] |
The URLs to fetch. |
UrlContextResultContent
URL context result content.
| Fields | |
|---|---|
result[] |
Required. The results of the URL context. |
is_error |
Whether the URL context resulted in an error. |
UrlContextResult
The result of the URL context.
| Fields | |
|---|---|
url |
The URL that was fetched. |
status |
The status of the URL retrieval. |
Status
The status of the URL retrieval.
| Enums | |
|---|---|
STATUS_UNSPECIFIED |
Unspecified status. This value should not be used. |
SUCCESS |
Url retrieval is successful. |
ERROR |
Url retrieval is failed due to error. |
PAYWALL |
Url retrieval is failed because the content is behind paywall. |
UNSAFE |
Url retrieval is failed because the content is unsafe. |
UrlContextResultDelta
| Fields | |
|---|---|
result[] |
|
is_error |
|
UrlContextResultStep
URL context result step.
| Fields | |
|---|---|
result[] |
Required. The results of the URL context. |
is_error |
Whether the URL context resulted in an error. |
UrlContextResultItem
The result of the URL context.
| Fields | |
|---|---|
url |
The URL that was fetched. |
status |
The status of the URL retrieval. |
Status
The status of the URL retrieval.
| Enums | |
|---|---|
STATUS_UNSPECIFIED |
|
SUCCESS |
|
ERROR |
|
PAYWALL |
|
UNSAFE |
|
UserInputStep
Input provided by the user.
| Fields | |
|---|---|
Union field
|
|
content_list |
The content of the step. An array of Content objects. |
content_string |
The content of the step. A single string. |
Value
Value represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values. A producer of value is expected to set one of these variants. Absence of any variant indicates an error.
| Fields | |
|---|---|
Union field kind. The kind of value. kind can be only one of the following: |
|
null_value |
Represents a null value. |
number_value |
Represents a double value. |
string_value |
Represents a string value. |
bool_value |
Represents a boolean value. |
struct_value |
Represents a structured value. |
list_value |
Represents a repeated |
content_value |
Represents rich content (text, image, etc.). |
VertexAISearchConfig
Used to specify configuration for VertexAISearch.
| Fields | |
|---|---|
engine |
Optional. Used to specify Agent Platform Search engine. |
datastores[] |
Optional. Used to specify Agent Platform Search datastores. |
VideoConfig
Configuration options for video generation.
| Fields | |
|---|---|
task |
Optional task mode for video generation. If not specified, the model automatically determines the appropriate mode based on the provided text prompt and input media. |
Task
Supported video generation tasks.
| Enums | |
|---|---|
TASK_UNSPECIFIED |
Unspecified task. The task is inferred from the input prompt and media. |
TEXT_TO_VIDEO |
Generates video solely from a text prompt. |
IMAGE_TO_VIDEO |
Generates video from one or two source images. The first image defines the starting frame, and the optional second image defines the ending frame. |
REFERENCE_TO_VIDEO |
Generates video using reference media (such as images, audio, or video). |
EDIT |
Modifies an existing input video. |
VideoContent
A video content block.
| Fields | |
|---|---|
mime_type |
The mime type of the video. |
resolution |
The resolution of the media. |
Union field data_or_uri. The video content. data_or_uri can be only one of the following: |
|
data |
The video content. |
uri |
The URI of the video. |
MimeType
| Enums | |
|---|---|
TYPE_UNSPECIFIED |
|
TYPE_MP4 |
MP4 video format |
TYPE_MPEG |
MPEG video format |
TYPE_MPG |
MPG video format |
TYPE_MOV |
MOV video format |
TYPE_AVI |
AVI video format |
TYPE_X_FLV |
FLV video format |
TYPE_WEBM |
WebM video format |
TYPE_WMV |
WMV video format |
TYPE_3GPP |
3GPP video format |
TYPE_YT_BEYOND |
YouTube video format (internal) |
VideoDelta
| Fields | |
|---|---|
mime_type |
|
resolution |
The resolution of the media. |
Union field
|
|
data |
|
uri |
|
VideoResponseFormat
Configuration for video output format.
| Fields | |
|---|---|
delivery |
The delivery mode for the video output. |
gcs_uri |
The Cloud Storage URI to store the video output. Required for Vertex if delivery mode is URI. |
aspect_ratio |
The aspect ratio for the video output. |
duration |
The duration for the video output. |
AspectRatio
Supported aspect ratios for video output.
| Enums | |
|---|---|
ASPECT_RATIO_UNSPECIFIED |
Default value. This value is unused. |
ASPECT_RATIO_SIXTEEN_BY_NINE |
16:9 aspect ratio. |
ASPECT_RATIO_NINE_BY_SIXTEEN |
9:16 aspect ratio. |
Delivery
Delivery mode for video output.
| Enums | |
|---|---|
DELIVERY_UNSPECIFIED |
Default value. This value is unused. |
INLINE |
Video data is returned inline in the response. |
URI |
Video data is returned as a URI. |
WordInfo
Word-level ASR annotation for transcription output. Carries the word text, optional timing, and optional speaker attribution.
| Fields | |
|---|---|
text |
The transcribed word. |
start_offset |
Start offset in time of the word relative to the start of the audio. Present when timestamp_granularities contains "word". |
end_offset |
End offset in time of the word relative to the start of the audio. Present when timestamp_granularities contains "word". |
speaker |
Optional. Speaker label for this word (e.g. "spk_1", "spk_2"). Present when diarization_mode is set in TranscriptionConfig. |