InteractionStreamingEvent

JSON representation
{
  "eventId": string,

  // Union field event_type can be only one of the following:
  "interactionStartEvent": {
    object (InteractionStartEvent)
  },
  "interactionCompleteEvent": {
    object (InteractionCompleteEvent)
  },
  "interactionCreatedEvent": {
    object (InteractionCreatedSseEvent)
  },
  "interactionCompletedEvent": {
    object (InteractionCompletedSseEvent)
  },
  "interactionStatusUpdate": {
    object (InteractionStatusUpdate)
  },
  "contentStart": {
    object (ContentStart)
  },
  "contentDelta": {
    object (ContentDelta)
  },
  "contentStop": {
    object (ContentStop)
  },
  "errorEvent": {
    object (ErrorEvent)
  },
  "stepStart": {
    object (StepStart)
  },
  "stepDelta": {
    object (StepDelta)
  },
  "stepStop": {
    object (StepStop)
  }
  // End of list of possible types for union field event_type.
}
Fields
eventId

string

The eventId token to be used to resume the interaction stream, from this event.

Union field event_type. The event data. event_type can be only one of the following:
interactionStartEvent
(deprecated)

object (InteractionStartEvent)

The interaction data, used for interaction.start events. Legacy event, used when steps are disabled.

interactionCompleteEvent
(deprecated)

object (InteractionCompleteEvent)

The interaction data, used for interaction.complete events. Legacy event, used when steps are disabled.

interactionCreatedEvent

object (InteractionCreatedSseEvent)

The interaction data, used for interaction.created events. Used when steps are enabled.

interactionCompletedEvent

object (InteractionCompletedSseEvent)

The interaction data, used for interaction.completed events. Used when steps are enabled.

interactionStatusUpdate

object (InteractionStatusUpdate)

The interaction status data, used for interaction.status_update events.

contentStart

object (ContentStart)

The content block start data, used for content.start events. Legacy content-based streaming event, used when steps are disabled.

contentDelta

object (ContentDelta)

The content block delta data, used for content.delta events. Legacy content-based streaming event, used when steps are disabled.

contentStop

object (ContentStop)

The content block stop data, used for content.stop events. Legacy content-based streaming event, used when steps are disabled.

errorEvent

object (ErrorEvent)

The error event data, used for error events.

stepStart

object (StepStart)

The step start data, used for step.start events. Step-based streaming event, used when steps are enabled.

stepDelta

object (StepDelta)

The step delta data, used for step.delta events. Step-based streaming event, used when steps are enabled.

stepStop

object (StepStop)

The step stop data, used for step.stop events. Step-based streaming event, used when steps are enabled.

InteractionStartEvent

JSON representation
{
  "interaction": {
    object (Interaction)
  }
}
Fields
interaction

object (Interaction)

InteractionCompleteEvent

JSON representation
{
  "interaction": {
    object (Interaction)
  }
}
Fields
interaction

object (Interaction)

Required. The completed interaction with empty outputs to reduce the payload size. Use the preceding ContentDelta events for the actual output.

InteractionCreatedSseEvent

JSON representation
{
  "interaction": {
    object (Interaction)
  }
}
Fields
interaction

object (Interaction)

InteractionCompletedSseEvent

JSON representation
{
  "interaction": {
    object (Interaction)
  }
}
Fields
interaction

object (Interaction)

Required. The completed interaction with empty outputs to reduce the payload size. Use the preceding ContentDelta events for the actual output.

InteractionStatusUpdate

JSON representation
{
  "interactionId": string,
  "status": enum (Status)
}
Fields
interactionId

string

status

enum (Status)

ContentStart

JSON representation
{
  "index": integer,
  "content": {
    object (Content)
  }
}
Fields
index

integer

content

object (Content)

ContentDelta

JSON representation
{
  "index": integer,
  "delta": {
    object (ContentDeltaData)
  }
}
Fields
index

integer

delta

object (ContentDeltaData)

ContentDeltaData

The delta content data for a content block.

JSON representation
{

  // Union field type can be only one of the following:
  "text": {
    object (TextDelta)
  },
  "image": {
    object (ImageDelta)
  },
  "audio": {
    object (AudioDelta)
  },
  "document": {
    object (DocumentDelta)
  },
  "video": {
    object (VideoDelta)
  },
  "thoughtSummary": {
    object (ThoughtSummaryDelta)
  },
  "thoughtSignature": {
    object (ThoughtSignatureDelta)
  },
  "toolCall": {
    object (ToolCallDelta)
  },
  "toolResult": {
    object (ToolResultDelta)
  },
  "textAnnotation": {
    object (TextAnnotationDelta)
  }
  // End of list of possible types for union field type.
}
Fields
Union field type. The type of the delta content. type can be only one of the following:
text

object (TextDelta)

image

object (ImageDelta)

audio

object (AudioDelta)

document

object (DocumentDelta)

video

object (VideoDelta)

thoughtSummary

object (ThoughtSummaryDelta)

thoughtSignature

object (ThoughtSignatureDelta)

toolCall

object (ToolCallDelta)

toolResult

object (ToolResultDelta)

textAnnotation

object (TextAnnotationDelta)

TextDelta

JSON representation
{
  "text": string
}
Fields
text

string

ImageDelta

JSON representation
{
  "mimeType": enum (MimeType),
  "resolution": enum (MediaResolution),

  // Union field data_or_uri can be only one of the following:
  "data": string,
  "uri": string
  // End of list of possible types for union field data_or_uri.
}
Fields
mimeType

enum (MimeType)

resolution

enum (MediaResolution)

The resolution of the media.

Union field data_or_uri.

data_or_uri can be only one of the following:

data

string (bytes format)

A base64-encoded string.

uri

string

AudioDelta

JSON representation
{
  "mimeType": enum (MimeType),
  "rate": integer,
  "sampleRate": integer,
  "channels": integer,

  // Union field data_or_uri can be only one of the following:
  "data": string,
  "uri": string
  // End of list of possible types for union field data_or_uri.
}
Fields
mimeType

enum (MimeType)

rate
(deprecated)

integer

Deprecated. Use sampleRate instead. The value is ignored.

sampleRate

integer

The sample rate of the audio.

channels

integer

The number of audio channels.

Union field data_or_uri.

data_or_uri can be only one of the following:

data

string (bytes format)

A base64-encoded string.

uri

string

DocumentDelta

JSON representation
{
  "mimeType": enum (MimeType),

  // Union field data_or_uri can be only one of the following:
  "data": string,
  "uri": string
  // End of list of possible types for union field data_or_uri.
}
Fields
mimeType

enum (MimeType)

Union field data_or_uri.

data_or_uri can be only one of the following:

data

string (bytes format)

A base64-encoded string.

uri

string

VideoDelta

JSON representation
{
  "mimeType": enum (MimeType),
  "resolution": enum (MediaResolution),

  // Union field data_or_uri can be only one of the following:
  "data": string,
  "uri": string
  // End of list of possible types for union field data_or_uri.
}
Fields
mimeType

enum (MimeType)

resolution

enum (MediaResolution)

The resolution of the media.

Union field data_or_uri.

data_or_uri can be only one of the following:

data

string (bytes format)

A base64-encoded string.

uri

string

ThoughtSummaryDelta

JSON representation
{
  "content": {
    object (Content)
  }
}
Fields
content

object (Content)

A new summary item to be added to the thought.

ThoughtSignatureDelta

JSON representation
{
  "signature": string
}
Fields
signature

string (bytes format)

signature to match the backend source to be part of the generation.

A base64-encoded string.

ToolCallDelta

JSON representation
{
  "id": string,
  "signature": string,

  // Union field type can be only one of the following:
  "functionCall": {
    object (FunctionCallDelta)
  },
  "codeExecutionCall": {
    object (CodeExecutionCallDelta)
  },
  "urlContextCall": {
    object (UrlContextCallDelta)
  },
  "googleSearchCall": {
    object (GoogleSearchCallDelta)
  },
  "mcpServerToolCall": {
    object (McpServerToolCallDelta)
  },
  "fileSearchCall": {
    object (FileSearchCallDelta)
  },
  "googleMapsCall": {
    object (GoogleMapsCallDelta)
  }
  // End of list of possible types for union field type.
}
Fields
id

string

Required. A unique id for this specific tool call.

signature

string (bytes format)

A signature hash for backend validation.

A base64-encoded string.

Union field type.

type can be only one of the following:

functionCall

object (FunctionCallDelta)

codeExecutionCall

object (CodeExecutionCallDelta)

urlContextCall

object (UrlContextCallDelta)

googleSearchCall

object (GoogleSearchCallDelta)

mcpServerToolCall

object (McpServerToolCallDelta)

fileSearchCall

object (FileSearchCallDelta)

googleMapsCall

object (GoogleMapsCallDelta)

FunctionCallDelta

JSON representation
{
  "name": string,
  "arguments": {
    object (Struct)
  }
}
Fields
name

string

arguments

object (Struct)

CodeExecutionCallDelta

JSON representation
{
  "arguments": {
    object (CodeExecutionCallArguments)
  }
}
Fields
arguments

object (CodeExecutionCallArguments)

UrlContextCallDelta

JSON representation
{
  "arguments": {
    object (UrlContextCallArguments)
  }
}
Fields
arguments

object (UrlContextCallArguments)

GoogleSearchCallDelta

JSON representation
{
  "arguments": {
    object (GoogleSearchCallArguments)
  }
}
Fields
arguments

object (GoogleSearchCallArguments)

McpServerToolCallDelta

JSON representation
{
  "name": string,
  "serverName": string,
  "arguments": {
    object (Struct)
  }
}
Fields
name

string

serverName

string

arguments

object (Struct)

FileSearchCallDelta

This type has no fields.

GoogleMapsCallDelta

JSON representation
{
  "arguments": {
    object (GoogleMapsCallArguments)
  }
}
Fields
arguments

object (GoogleMapsCallArguments)

The arguments to pass to the Google Maps tool.

ToolResultDelta

JSON representation
{
  "callId": string,
  "signature": string,

  // Union field type can be only one of the following:
  "functionResult": {
    object (FunctionResultDelta)
  },
  "codeExecutionResult": {
    object (CodeExecutionResultDelta)
  },
  "urlContextResult": {
    object (UrlContextResultDelta)
  },
  "googleSearchResult": {
    object (GoogleSearchResultDelta)
  },
  "mcpServerToolResult": {
    object (McpServerToolResultDelta)
  },
  "fileSearchResult": {
    object (FileSearchResultDelta)
  },
  "googleMapsResult": {
    object (GoogleMapsResultDelta)
  }
  // End of list of possible types for union field type.
}
Fields
callId

string

Required. id to match the id from the function call block.

signature

string (bytes format)

A signature hash for backend validation.

A base64-encoded string.

Union field type.

type can be only one of the following:

functionResult

object (FunctionResultDelta)

codeExecutionResult

object (CodeExecutionResultDelta)

urlContextResult

object (UrlContextResultDelta)

googleSearchResult

object (GoogleSearchResultDelta)

mcpServerToolResult

object (McpServerToolResultDelta)

fileSearchResult

object (FileSearchResultDelta)

googleMapsResult

object (GoogleMapsResultDelta)

FunctionResultDelta

JSON representation
{
  "name": string,
  "isError": boolean,
  "result": {
    object (Value)
  }
}
Fields
name

string

isError

boolean

result

object (Value)

CodeExecutionResultDelta

JSON representation
{
  "result": string,
  "isError": boolean
}
Fields
result

string

isError

boolean

UrlContextResultDelta

JSON representation
{
  "result": [
    {
      object (UrlContextResult)
    }
  ],
  "isError": boolean
}
Fields
result[]

object (UrlContextResult)

isError

boolean

GoogleSearchResultDelta

JSON representation
{
  "result": [
    {
      object (GoogleSearchResult)
    }
  ],
  "isError": boolean
}
Fields
result[]

object (GoogleSearchResult)

isError

boolean

McpServerToolResultDelta

JSON representation
{
  "name": string,
  "serverName": string,
  "result": {
    object (Value)
  }
}
Fields
name

string

serverName

string

result

object (Value)

FileSearchResultDelta

JSON representation
{
  "result": [
    {
      object (FileSearchResult)
    }
  ]
}
Fields
result[]

object (FileSearchResult)

GoogleMapsResultDelta

JSON representation
{
  "result": [
    {
      object (GoogleMapsResult)
    }
  ]
}
Fields
result[]

object (GoogleMapsResult)

The results of the Google Maps.

TextAnnotationDelta

JSON representation
{
  "annotations": [
    {
      object (Annotation)
    }
  ]
}
Fields
annotations[]

object (Annotation)

Citation information for model-generated content.

ContentStop

JSON representation
{
  "index": integer
}
Fields
index

integer

ErrorEvent

JSON representation
{
  "error": {
    object (Error)
  }
}
Fields
error

object (Error)

StepStart

JSON representation
{
  "index": integer,
  "step": {
    object (Step)
  }
}
Fields
index

integer

step

object (Step)

StepDelta

JSON representation
{
  "index": integer,
  "delta": {
    object (StepDeltaData)
  }
}
Fields
index

integer

delta

object (StepDeltaData)

StepDeltaData

JSON representation
{

  // Union field type can be only one of the following:
  "text": {
    object (TextDelta)
  },
  "image": {
    object (ImageDelta)
  },
  "audio": {
    object (AudioDelta)
  },
  "document": {
    object (DocumentDelta)
  },
  "video": {
    object (VideoDelta)
  },
  "thoughtSummary": {
    object (ThoughtSummaryDelta)
  },
  "thoughtSignature": {
    object (ThoughtSignatureDelta)
  },
  "textAnnotationDelta": {
    object (TextAnnotationDelta)
  },
  "argumentsDelta": {
    object (ArgumentsDelta)
  },
  "serverToolCall": {
    object (ServerToolCallDelta)
  },
  "serverToolResult": {
    object (ServerToolResultDelta)
  },
  "functionResult": {
    object (FunctionResultDelta)
  }
  // End of list of possible types for union field type.
}
Fields

Union field type.

type can be only one of the following:

text

object (TextDelta)

image

object (ImageDelta)

audio

object (AudioDelta)

document

object (DocumentDelta)

video

object (VideoDelta)

thoughtSummary

object (ThoughtSummaryDelta)

thoughtSignature

object (ThoughtSignatureDelta)

textAnnotationDelta

object (TextAnnotationDelta)

argumentsDelta

object (ArgumentsDelta)

serverToolCall

object (ServerToolCallDelta)

serverToolResult

object (ServerToolResultDelta)

functionResult

object (FunctionResultDelta)

ArgumentsDelta

JSON representation
{
  "arguments": string
}
Fields
arguments

string

ServerToolCallDelta

JSON representation
{
  "signature": string,

  // Union field type can be only one of the following:
  "codeExecutionCall": {
    object (CodeExecutionCallDelta)
  },
  "urlContextCall": {
    object (UrlContextCallDelta)
  },
  "googleSearchCall": {
    object (GoogleSearchCallDelta)
  },
  "mcpServerToolCall": {
    object (McpServerToolCallDelta)
  },
  "fileSearchCall": {
    object (FileSearchCallDelta)
  },
  "googleMapsCall": {
    object (GoogleMapsCallDelta)
  },
  "retrievalCall": {
    object (RetrievalCallDelta)
  }
  // End of list of possible types for union field type.
}
Fields
signature

string (bytes format)

A signature hash for backend validation.

A base64-encoded string.

Union field type.

type can be only one of the following:

codeExecutionCall

object (CodeExecutionCallDelta)

urlContextCall

object (UrlContextCallDelta)

googleSearchCall

object (GoogleSearchCallDelta)

mcpServerToolCall

object (McpServerToolCallDelta)

fileSearchCall

object (FileSearchCallDelta)

googleMapsCall

object (GoogleMapsCallDelta)

retrievalCall

object (RetrievalCallDelta)

RetrievalCallDelta

Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search, etc. RetrievalType decides which tool is used.

JSON representation
{
  "arguments": {
    object (RetrievalStepArguments)
  },
  "retrievalType": enum (RetrievalType)
}
Fields
arguments

object (RetrievalStepArguments)

Required. The arguments to pass to the Retrieval tool.

retrievalType

enum (RetrievalType)

The type of retrieval tools.

ServerToolResultDelta

JSON representation
{
  "signature": string,

  // Union field type can be only one of the following:
  "codeExecutionResult": {
    object (CodeExecutionResultDelta)
  },
  "urlContextResult": {
    object (UrlContextResultDelta)
  },
  "googleSearchResult": {
    object (GoogleSearchResultDelta)
  },
  "mcpServerToolResult": {
    object (McpServerToolResultDelta)
  },
  "fileSearchResult": {
    object (FileSearchResultDelta)
  },
  "googleMapsResult": {
    object (GoogleMapsResultDelta)
  },
  "retrievalResult": {
    object (RetrievalResultDelta)
  }
  // End of list of possible types for union field type.
}
Fields
signature

string (bytes format)

A signature hash for backend validation.

A base64-encoded string.

Union field type.

type can be only one of the following:

codeExecutionResult

object (CodeExecutionResultDelta)

urlContextResult

object (UrlContextResultDelta)

googleSearchResult

object (GoogleSearchResultDelta)

mcpServerToolResult

object (McpServerToolResultDelta)

fileSearchResult

object (FileSearchResultDelta)

googleMapsResult

object (GoogleMapsResultDelta)

retrievalResult

object (RetrievalResultDelta)

RetrievalResultDelta

Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search, etc. ToolResultDelta.type

JSON representation
{
  "isError": boolean
}
Fields
isError

boolean

Whether the retrieval resulted in an error.

StepStop

JSON representation
{
  "index": integer,
  "usage": {
    object (Usage)
  },
  "stepUsage": {
    object (Usage)
  }
}
Fields
index

integer

usage

object (Usage)

Cumulative model usage stats from the start of the session.

stepUsage

object (Usage)

Model usage stats for this specific step.