eventIdstring
The eventId token to be used to resume the interaction stream, from this event.
event_typeUnion type
The interaction data, used for interaction.start events. Legacy event, used when steps are disabled.
The interaction data, used for interaction.complete events. Legacy event, used when steps are disabled.
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.
The content block start data, used for content.start events. Legacy content-based streaming event, used when steps are disabled.
The content block delta data, used for content.delta events. Legacy content-based streaming event, used when steps are disabled.
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 "interactionStartEvent": { object ( |
InteractionStartEvent
| JSON representation |
|---|
{
"interaction": {
object ( |
InteractionCompleteEvent
Required. The completed interaction with empty outputs to reduce the payload size. Use the preceding ContentDelta events for the actual output.
| JSON representation |
|---|
{
"interaction": {
object ( |
InteractionCreatedSseEvent
| JSON representation |
|---|
{
"interaction": {
object ( |
InteractionCompletedSseEvent
Required. The completed interaction with empty outputs to reduce the payload size. Use the preceding ContentDelta events for the actual output.
| JSON representation |
|---|
{
"interaction": {
object ( |
InteractionStatusUpdate
interactionIdstring
| JSON representation |
|---|
{
"interactionId": string,
"status": enum ( |
ContentStart
indexinteger
| JSON representation |
|---|
{
"index": integer,
"content": {
object ( |
ContentDelta
indexinteger
| JSON representation |
|---|
{
"index": integer,
"delta": {
object ( |
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
rate
(deprecated)integer
Deprecated. Use sampleRate instead. The value is ignored.
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 ( |
UrlContextCallDelta
| JSON representation |
|---|
{
"arguments": {
object ( |
GoogleSearchCallDelta
| JSON representation |
|---|
{
"arguments": {
object ( |
McpServerToolCallDelta
namestring
serverNamestring
| JSON representation |
|---|
{
"name": string,
"serverName": string,
"arguments": {
object ( |
FileSearchCallDelta
This type has no fields.
GoogleMapsCallDelta
The arguments to pass to the Google Maps tool.
| JSON representation |
|---|
{
"arguments": {
object ( |
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 ( |
GoogleSearchResultDelta
isErrorboolean
| JSON representation |
|---|
{
"result": [
{
object ( |
McpServerToolResultDelta
namestring
serverNamestring
| JSON representation |
|---|
{
"name": string,
"serverName": string,
"result": {
object ( |
FileSearchResultDelta
| JSON representation |
|---|
{
"result": [
{
object ( |
GoogleMapsResultDelta
The results of the Google Maps.
| JSON representation |
|---|
{
"result": [
{
object ( |
TextAnnotationDelta
Citation information for model-generated content.
| JSON representation |
|---|
{
"annotations": [
{
object ( |
ContentStop
indexinteger
| JSON representation |
|---|
{ "index": integer } |
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 } |