You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Actions are parts of events that are executed by the agent. */
1009
+
exportdeclareinterfaceEventActions{
1010
+
/** Optional. Indicates that the event is updating an artifact. key is the filename, value is the version. */
1011
+
artifactDelta?: Record<string,number>;
1012
+
/** Optional. The agent is escalating to a higher level agent. */
1013
+
escalate?: boolean;
1014
+
/** 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. */
1015
+
requestedAuthConfigs?: Record<string,unknown>;
1016
+
/** Optional. If true, it won't call model to summarize function response. Only used for function_response event. */
1017
+
skipSummarization?: boolean;
1018
+
/** Optional. Indicates that the event is updating the state with the given delta. */
1019
+
stateDelta?: Record<string,unknown>;
1020
+
/** Optional. If set, the event transfers to the specified agent. */
1021
+
transferAgent?: string;
1022
+
}
1023
+
1024
+
/** Metadata relating to a LLM response event. */
1025
+
exportdeclareinterfaceEventMetadata{
1026
+
/** Optional. Metadata returned to client when grounding is enabled. */
1027
+
groundingMetadata?: genaiTypes.GroundingMetadata;
1028
+
/** 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. */
1029
+
branch?: string;
1030
+
/** The custom metadata of the LlmResponse. */
1031
+
customMetadata?: Record<string,unknown>;
1032
+
/** Optional. Flag indicating that LLM was interrupted when generating the content. Usually it's due to user interruption during a bidi streaming. */
1033
+
interrupted?: boolean;
1034
+
/** 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. */
1035
+
longRunningToolIds?: string[];
1036
+
/** 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. */
1037
+
partial?: boolean;
1038
+
/** Optional. Indicates whether the response from the model is complete. Only used for streaming mode. */
1039
+
turnComplete?: boolean;
1040
+
}
1041
+
1042
+
/** Config for appending agent engine session event. */
/** Optional. Content of the event provided by the author. */
1109
+
content?: genaiTypes.Content;
1110
+
/** Optional. Actions executed by the agent. */
1111
+
actions?: EventActions;
1112
+
/** Required. The name of the agent that sent the event, or user. */
1113
+
author?: string;
1114
+
/** Optional. Error code if the response is an error. Code varies by model. */
1115
+
errorCode?: string;
1116
+
/** Optional. Error message if the response is an error. */
1117
+
errorMessage?: string;
1118
+
/** Optional. Metadata relating to this event. */
1119
+
eventMetadata?: EventMetadata;
1120
+
/** Required. The invocation id of the event, multiple events can have the same invocation id. */
1121
+
invocationId?: string;
1122
+
/** Identifier. The resource name of the event. Format:`projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}/events/{event}`. */
1123
+
name?: string;
1124
+
/** Required. Timestamp when the event was created on client side. */
1125
+
timestamp?: string;
1126
+
}
1127
+
1128
+
/** Response for listing agent engine session events. */
0 commit comments