| JSON representation |
|---|
{ "eventId": string, // Union field |
| Fields | |
|---|---|
eventId |
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 |
The interaction data, used for interaction.start events. Legacy event, used when steps are disabled. |
interactionCompleteEvent |
The interaction data, used for interaction.complete events. Legacy event, used when steps are disabled. |
interactionCreatedEvent |
The interaction data, used for interaction.created events. Used when steps are enabled. |
interactionCompletedEvent |
The interaction data, used for interaction.completed events. Used when steps are enabled. |
interactionStatusUpdate |
The interaction status data, used for interaction.status_update events. |
contentStart |
The content block start data, used for content.start events. Legacy content-based streaming event, used when steps are disabled. |
contentDelta |
The content block delta data, used for content.delta events. Legacy content-based streaming event, used when steps are disabled. |
contentStop |
The content block stop data, used for content.stop events. Legacy content-based streaming event, used when steps are disabled. |
errorEvent |
The error event data, used for error events. |
stepStart |
The step start data, used for step.start events. Step-based streaming event, used when steps are enabled. |
stepDelta |
The step delta data, used for step.delta events. Step-based streaming event, used when steps are enabled. |
stepStop |
The step stop data, used for step.stop events. Step-based streaming event, used when steps are enabled. |
InteractionStartEvent
| JSON representation |
|---|
{
"interaction": {
object ( |
| Fields | |
|---|---|
interaction |
|
InteractionCompleteEvent
| JSON representation |
|---|
{
"interaction": {
object ( |
| Fields | |
|---|---|
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 ( |
| Fields | |
|---|---|
interaction |
|
InteractionCompletedSseEvent
| JSON representation |
|---|
{
"interaction": {
object ( |
| Fields | |
|---|---|
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 ( |
| Fields | |
|---|---|
interactionId |
|
status |
|
ContentStart
| JSON representation |
|---|
{
"index": integer,
"content": {
object ( |
| Fields | |
|---|---|
index |
|
content |
|
ContentDelta
| JSON representation |
|---|
{
"index": integer,
"delta": {
object ( |
| Fields | |
|---|---|
index |
|
delta |
|
ContentDeltaData
The delta content data for a content block.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field type. The type of the delta content. type can be only one of the following: |
|
text |
|
image |
|
audio |
|
document |
|
video |
|
thoughtSummary |
|
thoughtSignature |
|
toolCall |
|
toolResult |
|
textAnnotation |
|
TextDelta
| JSON representation |
|---|
{ "text": string } |
| Fields | |
|---|---|
text |
|
ImageDelta
| JSON representation |
|---|
{ "mimeType": enum ( |
| Fields | |
|---|---|
mimeType |
|
resolution |
The resolution of the media. |
Union field
|
|
data |
A base64-encoded string. |
uri |
|
AudioDelta
| JSON representation |
|---|
{ "mimeType": enum ( |
| Fields | |
|---|---|
mimeType |
|
rate |
Deprecated. Use sampleRate instead. The value is ignored. |
sampleRate |
The sample rate of the audio. |
channels |
The number of audio channels. |
Union field
|
|
data |
A base64-encoded string. |
uri |
|
DocumentDelta
| JSON representation |
|---|
{ "mimeType": enum ( |
| Fields | |
|---|---|
mimeType |
|
Union field
|
|
data |
A base64-encoded string. |
uri |
|
VideoDelta
| JSON representation |
|---|
{ "mimeType": enum ( |
| Fields | |
|---|---|
mimeType |
|
resolution |
The resolution of the media. |
Union field
|
|
data |
A base64-encoded string. |
uri |
|
ThoughtSummaryDelta
| JSON representation |
|---|
{
"content": {
object ( |
| Fields | |
|---|---|
content |
A new summary item to be added to the thought. |
ThoughtSignatureDelta
| JSON representation |
|---|
{ "signature": string } |
| Fields | |
|---|---|
signature |
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 |
| Fields | |
|---|---|
id |
Required. A unique id for this specific tool call. |
signature |
A signature hash for backend validation. A base64-encoded string. |
Union field
|
|
functionCall |
|
codeExecutionCall |
|
urlContextCall |
|
googleSearchCall |
|
mcpServerToolCall |
|
fileSearchCall |
|
googleMapsCall |
|
FunctionCallDelta
| JSON representation |
|---|
{
"name": string,
"arguments": {
object ( |
| Fields | |
|---|---|
name |
|
arguments |
|
CodeExecutionCallDelta
| JSON representation |
|---|
{
"arguments": {
object ( |
| Fields | |
|---|---|
arguments |
|
UrlContextCallDelta
| JSON representation |
|---|
{
"arguments": {
object ( |
| Fields | |
|---|---|
arguments |
|
GoogleSearchCallDelta
| JSON representation |
|---|
{
"arguments": {
object ( |
| Fields | |
|---|---|
arguments |
|
McpServerToolCallDelta
| JSON representation |
|---|
{
"name": string,
"serverName": string,
"arguments": {
object ( |
| Fields | |
|---|---|
name |
|
serverName |
|
arguments |
|
FileSearchCallDelta
This type has no fields.
GoogleMapsCallDelta
| JSON representation |
|---|
{
"arguments": {
object ( |
| Fields | |
|---|---|
arguments |
The arguments to pass to the Google Maps tool. |
ToolResultDelta
| JSON representation |
|---|
{ "callId": string, "signature": string, // Union field |
| Fields | |
|---|---|
callId |
Required. id to match the id from the function call block. |
signature |
A signature hash for backend validation. A base64-encoded string. |
Union field
|
|
functionResult |
|
codeExecutionResult |
|
urlContextResult |
|
googleSearchResult |
|
mcpServerToolResult |
|
fileSearchResult |
|
googleMapsResult |
|
FunctionResultDelta
| JSON representation |
|---|
{
"name": string,
"isError": boolean,
"result": {
object ( |
| Fields | |
|---|---|
name |
|
isError |
|
result |
|
CodeExecutionResultDelta
| JSON representation |
|---|
{ "result": string, "isError": boolean } |
| Fields | |
|---|---|
result |
|
isError |
|
UrlContextResultDelta
| JSON representation |
|---|
{
"result": [
{
object ( |
| Fields | |
|---|---|
result[] |
|
isError |
|
GoogleSearchResultDelta
| JSON representation |
|---|
{
"result": [
{
object ( |
| Fields | |
|---|---|
result[] |
|
isError |
|
McpServerToolResultDelta
| JSON representation |
|---|
{
"name": string,
"serverName": string,
"result": {
object ( |
| Fields | |
|---|---|
name |
|
serverName |
|
result |
|
FileSearchResultDelta
| JSON representation |
|---|
{
"result": [
{
object ( |
| Fields | |
|---|---|
result[] |
|
GoogleMapsResultDelta
| JSON representation |
|---|
{
"result": [
{
object ( |
| Fields | |
|---|---|
result[] |
The results of the Google Maps. |
TextAnnotationDelta
| JSON representation |
|---|
{
"annotations": [
{
object ( |
| Fields | |
|---|---|
annotations[] |
Citation information for model-generated content. |
ContentStop
| JSON representation |
|---|
{ "index": integer } |
| Fields | |
|---|---|
index |
|
ErrorEvent
| JSON representation |
|---|
{
"error": {
object ( |
| Fields | |
|---|---|
error |
|
StepStart
| JSON representation |
|---|
{
"index": integer,
"step": {
object ( |
| Fields | |
|---|---|
index |
|
step |
|
StepDelta
| JSON representation |
|---|
{
"index": integer,
"delta": {
object ( |
| Fields | |
|---|---|
index |
|
delta |
|
StepDeltaData
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field
|
|
text |
|
image |
|
audio |
|
document |
|
video |
|
thoughtSummary |
|
thoughtSignature |
|
textAnnotationDelta |
|
argumentsDelta |
|
serverToolCall |
|
serverToolResult |
|
functionResult |
|
ArgumentsDelta
| JSON representation |
|---|
{ "arguments": string } |
| Fields | |
|---|---|
arguments |
|
ServerToolCallDelta
| JSON representation |
|---|
{ "signature": string, // Union field |
| Fields | |
|---|---|
signature |
A signature hash for backend validation. A base64-encoded string. |
Union field
|
|
codeExecutionCall |
|
urlContextCall |
|
googleSearchCall |
|
mcpServerToolCall |
|
fileSearchCall |
|
googleMapsCall |
|
retrievalCall |
|
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 ( |
| Fields | |
|---|---|
arguments |
Required. The arguments to pass to the Retrieval tool. |
retrievalType |
The type of retrieval tools. |
ServerToolResultDelta
| JSON representation |
|---|
{ "signature": string, // Union field |
| Fields | |
|---|---|
signature |
A signature hash for backend validation. A base64-encoded string. |
Union field
|
|
codeExecutionResult |
|
urlContextResult |
|
googleSearchResult |
|
mcpServerToolResult |
|
fileSearchResult |
|
googleMapsResult |
|
retrievalResult |
|
RetrievalResultDelta
Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search, etc. ToolResultDelta.type
| JSON representation |
|---|
{ "isError": boolean } |
| Fields | |
|---|---|
isError |
Whether the retrieval resulted in an error. |
StepStop
| JSON representation |
|---|
{ "index": integer, "usage": { object ( |
| Fields | |
|---|---|
index |
|
usage |
Cumulative model usage stats from the start of the session. |
stepUsage |
Model usage stats for this specific step. |