Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, see Model versions and lifecycle.
Stay organized with collections
Save and categorize content based on your preferences.
An event represents a message from either the user or agent.
Fields
name
string
Identifier. The resource name of the event. Format:projects/{project}/locations/{location}/reasoningEngines/{reasoningEngine}/sessions/{session}/events/{event}.
author
string
Required. The name of the agent that sent the event, or user.
Required. timestamp when the event was created on client side.
Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".
errorCode
string
Optional. Error code if the response is an error. code varies by model.
errorMessage
string
Optional. Error message if the response is an error.
Optional. Will only be set by a tool response indicating tool request euc. Struct key is the function call id since one function call response (from model) could correspond to multiple function calls. Struct value is the required auth config, which can be another struct.
transferAgent
string
Optional. If set, the event transfers to the specified agent.
Optional. metadata returned to client when grounding is enabled.
partial
boolean
Optional. Indicates whether the text content is part of a unfinished text stream. Only used for streaming mode and when the content is plain text.
turnComplete
boolean
Optional. Indicates whether the response from the model is complete. Only used for streaming mode.
interrupted
boolean
Optional. Flag indicating that LLM was interrupted when generating the content. Usually it's due to user interruption during a bidi streaming.
longRunningToolIds[]
string
Optional. Set of ids of the long running function calls. Agent client will know from this field about which function call is long running. Only valid for function call event.
branch
string
Optional. The branch of the event. The format is like agent_1.agent_2.agent_3, where agent_1 is the parent of agent_2, and agent_2 is the parent of agent_3. Branch is used when multiple child agents shouldn't see their siblings' conversation history.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-15 UTC."],[],[],null,["# SessionEvent\n\nAn event represents a message from either the user or agent.\nFields `name` `string` \nIdentifier. The resource name of the event. Format:`projects/{project}/locations/{location}/reasoningEngines/{reasoningEngine}/sessions/{session}/events/{event}`.\n`author` `string` \nRequired. The name of the agent that sent the event, or user.\n`content` `object (`[Content](/vertex-ai/generative-ai/docs/reference/rest/v1beta1/Content)`)` \nOptional. Content of the event provided by the author.\n`invocationId` `string` \nRequired. The invocation id of the event, multiple events can have the same invocation id.\n`actions` `object (`[EventActions](/vertex-ai/generative-ai/docs/reference/rest/v1beta1/SessionEvent#EventActions)`)` \nOptional. Actions executed by the agent.\n`timestamp` `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` \nRequired. timestamp when the event was created on client side.\n\nUses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than \"Z\" are also accepted. Examples: `\"2014-10-02T15:01:23Z\"`, `\"2014-10-02T15:01:23.045123456Z\"` or `\"2014-10-02T15:01:23+05:30\"`.\n`errorCode` `string` \nOptional. Error code if the response is an error. code varies by model.\n`errorMessage` `string` \nOptional. Error message if the response is an error.\n`eventMetadata` `object (`[EventMetadata](/vertex-ai/generative-ai/docs/reference/rest/v1beta1/SessionEvent#EventMetadata)`)` \nOptional. metadata relating to this event. \n\nEventActions\n------------\n\nActions are parts of events that are executed by the agent.\nFields `skipSummarization` `boolean` \nOptional. If true, it won't call model to summarize function response. Only used for functionResponse event.\n`stateDelta` `object (`[Struct](https://protobuf.dev/reference/protobuf/google.protobuf/#struct)` format)` \nOptional. Indicates that the event is updating the state with the given delta.\n`artifactDelta` `map (key: string, value: integer)` \nOptional. Indicates that the event is updating an artifact. key is the filename, value is the version.\n`transferToAgent` \n**(deprecated)** `boolean` \n| This item is deprecated!\n\nDeprecated. If set, the event transfers to the specified agent.\n`escalate` `boolean` \nOptional. The agent is escalating to a higher level agent.\n`requestedAuthConfigs` `object (`[Struct](https://protobuf.dev/reference/protobuf/google.protobuf/#struct)` format)` \nOptional. Will only be set by a tool response indicating tool request euc. Struct key is the function call id since one function call response (from model) could correspond to multiple function calls. Struct value is the required auth config, which can be another struct.\n`transferAgent` `string` \nOptional. If set, the event transfers to the specified agent. \n\nEventMetadata\n-------------\n\nmetadata relating to a LLM response event.\nFields `groundingMetadata` `object (`[GroundingMetadata](/vertex-ai/generative-ai/docs/reference/rest/v1beta1/GroundingMetadata)`)` \nOptional. metadata returned to client when grounding is enabled.\n`partial` `boolean` \nOptional. Indicates whether the text content is part of a unfinished text stream. Only used for streaming mode and when the content is plain text.\n`turnComplete` `boolean` \nOptional. Indicates whether the response from the model is complete. Only used for streaming mode.\n`interrupted` `boolean` \nOptional. Flag indicating that LLM was interrupted when generating the content. Usually it's due to user interruption during a bidi streaming.\n`longRunningToolIds[]` `string` \nOptional. Set of ids of the long running function calls. Agent client will know from this field about which function call is long running. Only valid for function call event.\n`branch` `string` \nOptional. The branch of the event. The format is like agent_1.agent_2.agent_3, where agent_1 is the parent of agent_2, and agent_2 is the parent of agent_3. Branch is used when multiple child agents shouldn't see their siblings' conversation history.\n`customMetadata` `object (`[Struct](https://protobuf.dev/reference/protobuf/google.protobuf/#struct)` format)` \nThe custom metadata of the LlmResponse."]]