eventIdstring
The eventId token to be used to resume the interaction stream, from this event.
event_typeUnion type
The interaction data, used for interaction.created events. Used when steps are enabled.
The interaction data, used for interaction.completed events. Used when steps are enabled.
The interaction status data, used for interaction.status_update events.
contentStart
(deprecated)object (ContentStart)
The content block start data, used for content.start events. Legacy content-based streaming event, used when steps are disabled.
contentDelta
(deprecated)object (ContentDelta)
The content block delta data, used for content.delta events. Legacy content-based streaming event, used when steps are disabled.
contentStop
(deprecated)object (ContentStop)
The content block stop data, used for content.stop events. Legacy content-based streaming event, used when steps are disabled.
The error event data, used for error events.
The step start data, used for step.start events. Step-based streaming event, used when steps are enabled.
The step delta data, used for step.delta events. Step-based streaming event, used when steps are enabled.
The step stop data, used for step.stop events. Step-based streaming event, used when steps are enabled.
| JSON representation |
|---|
{ "eventId": string, // event_type "interactionCreatedEvent": { object ( |
InteractionCreatedSseEvent
Server response confirming that a new interaction was created.
Required. Partial interaction resource emitted when the stream is created.
| JSON representation |
|---|
{
"interaction": {
object ( |
InteractionCompletedSseEvent
Signals that the Interaction completed. Sent when the Interaction receives Complete/Cancel or naturally terminates. No more input can be sent to the Interaction after this.
Required. Partial completed interaction resource emitted at the end of the stream.
| JSON representation |
|---|
{
"interaction": {
object ( |
InteractionStatusUpdate
interactionIdstring
| JSON representation |
|---|
{
"interactionId": string,
"status": enum ( |
ContentDeltaData
The delta content data for a content block.
typeUnion type
| JSON representation |
|---|
{ // type "text": { object ( |
TextDelta
textstring
| JSON representation |
|---|
{ "text": string } |
ImageDelta
mimeTypeenum (MimeType)
The resolution of the media.
data_or_uriUnion type
A base64-encoded string.
uristring
| JSON representation |
|---|
{ "mimeType": enum ( |
AudioDelta
sampleRateinteger
The sample rate of the audio.
channelsinteger
The number of audio channels.
data_or_uriUnion type
A base64-encoded string.
uristring
| JSON representation |
|---|
{
"mimeType": enum ( |
DocumentDelta
mimeTypeenum (MimeType)
data_or_uriUnion type
A base64-encoded string.
uristring
| JSON representation |
|---|
{
"mimeType": enum ( |
VideoDelta
mimeTypeenum (MimeType)
The resolution of the media.
data_or_uriUnion type
A base64-encoded string.
uristring
| JSON representation |
|---|
{ "mimeType": enum ( |
ThoughtSummaryDelta
A new summary item to be added to the thought.
| JSON representation |
|---|
{
"content": {
object ( |
ThoughtSignatureDelta
signature to match the backend source to be part of the generation.
A base64-encoded string.
| JSON representation |
|---|
{ "signature": string } |
ToolCallDelta
idstring
Required. A unique id for this specific tool call.
A signature hash for backend validation.
A base64-encoded string.
typeUnion type
| JSON representation |
|---|
{ "id": string, "signature": string, // type "functionCall": { object ( |
FunctionCallDelta
namestring
| JSON representation |
|---|
{
"name": string,
"arguments": {
object ( |
CodeExecutionCallDelta
| JSON representation |
|---|
{
"arguments": {
object ( |
CodeExecutionCallArguments
The arguments to pass to the code execution.
Programming language of the code.
codestring
The code to be executed.
| JSON representation |
|---|
{
"language": enum ( |
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. |
UrlContextCallDelta
| JSON representation |
|---|
{
"arguments": {
object ( |
UrlContextCallArguments
The arguments to pass to the URL context.
urls[]string
The URLs to fetch.
| JSON representation |
|---|
{ "urls": [ string ] } |
GoogleSearchCallDelta
| JSON representation |
|---|
{
"arguments": {
object ( |
GoogleSearchCallArguments
The arguments to pass to Google Search.
queries[]string
Web search queries for the following-up web search.
| JSON representation |
|---|
{ "queries": [ string ] } |
FileSearchCallDelta
This type has no fields.
GoogleMapsCallDelta
The arguments to pass to the Google Maps tool.
| JSON representation |
|---|
{
"arguments": {
object ( |
GoogleMapsCallArguments
The arguments to pass to the Google Maps tool.
queries[]string
The queries to be executed.
| JSON representation |
|---|
{ "queries": [ string ] } |
ToolResultDelta
callIdstring
Required. id to match the id from the function call block.
A signature hash for backend validation.
A base64-encoded string.
typeUnion type
| JSON representation |
|---|
{ "callId": string, "signature": string, // type "functionResult": { object ( |
FunctionResultDelta
namestring
isErrorboolean
| JSON representation |
|---|
{
"name": string,
"isError": boolean,
"result": {
object ( |
CodeExecutionResultDelta
resultstring
isErrorboolean
| JSON representation |
|---|
{ "result": string, "isError": boolean } |
UrlContextResultDelta
isErrorboolean
| JSON representation |
|---|
{
"result": [
{
object ( |
UrlContextResult
The result of the URL context.
urlstring
The URL that was fetched.
The status of the URL retrieval.
| JSON representation |
|---|
{
"url": string,
"status": enum ( |
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. |
GoogleSearchResultDelta
isErrorboolean
| JSON representation |
|---|
{
"result": [
{
object ( |
GoogleSearchResult
The result of the Google Search.
searchSuggestionsstring
Web content snippet that can be embedded in a web page or an app webview.
| JSON representation |
|---|
{ "searchSuggestions": string } |
FileSearchResultDelta
| JSON representation |
|---|
{
"result": [
{
object ( |
FileSearchResult
This type has no fields.
The result of the File Search.
GoogleMapsResultDelta
The results of the Google Maps.
| JSON representation |
|---|
{
"result": [
{
object ( |
GoogleMapsResult
The result of the Google Maps.
The places that were found.
widgetContextTokenstring
Resource name of the Google Maps widget context token.
| JSON representation |
|---|
{
"places": [
{
object ( |
Places
placeIdstring
The id of the place, in places/{placeId} format.
namestring
title of the place.
urlstring
URI reference of the place.
Snippets of reviews that are used to generate answers about the features of a given place in Google Maps.
| JSON representation |
|---|
{
"placeId": string,
"name": string,
"url": string,
"reviewSnippets": [
{
object ( |
TextAnnotationDelta
Citation information for model-generated content.
| JSON representation |
|---|
{
"annotations": [
{
object ( |
ErrorEvent
StepStart
indexinteger
| JSON representation |
|---|
{
"index": integer,
"step": {
object ( |
StepDelta
indexinteger
| JSON representation |
|---|
{
"index": integer,
"delta": {
object ( |
StepDeltaData
typeUnion type
| JSON representation |
|---|
{ // type "text": { object ( |
ArgumentsDelta
argumentsstring
| JSON representation |
|---|
{ "arguments": string } |
ServerToolCallDelta
A signature hash for backend validation.
A base64-encoded string.
typeUnion type
| JSON representation |
|---|
{ "signature": string, // type "codeExecutionCall": { object ( |
RetrievalCallDelta
Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Agent Platform Search, etc. RetrievalType decides which tool is used.
Required. The arguments to pass to the Retrieval tool.
The type of retrieval tools.
| JSON representation |
|---|
{ "arguments": { object ( |
ServerToolResultDelta
A signature hash for backend validation.
A base64-encoded string.
typeUnion type
| JSON representation |
|---|
{ "signature": string, // type "codeExecutionResult": { object ( |
RetrievalResultDelta
Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Agent Platform Search, etc. ToolResultDelta.type
isErrorboolean
Whether the retrieval resulted in an error.
| JSON representation |
|---|
{ "isError": boolean } |