@alis-build/alis-adk-sessions-v1 1.18.0 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.
|
|
1
|
+
// @generated by protoc-gen-es v2.14.1 with parameter "target=js+dts,import_extension=js,json_types=true"
|
|
2
2
|
// @generated from file alis/adk/sessions/v1/sessions.proto (package alis.adk.sessions.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
@@ -13,45 +13,70 @@ import type { Date, DateJson } from "@alis-build/google-type/google/type/date_pb
|
|
|
13
13
|
export declare const file_alis_adk_sessions_v1_sessions: GenFile;
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
+
* Session represents a conversation session between a user and an agent.
|
|
17
|
+
*
|
|
18
|
+
* A session contains a set of actions between users and agents, including
|
|
19
|
+
* the session state, events, and metadata.
|
|
20
|
+
*
|
|
16
21
|
* @generated from message alis.adk.sessions.v1.Session
|
|
17
22
|
*/
|
|
18
23
|
export declare type Session = Message<"alis.adk.sessions.v1.Session"> & {
|
|
19
24
|
/**
|
|
25
|
+
* Identifier. The ID of the session.
|
|
26
|
+
* Format: `{session}`
|
|
27
|
+
*
|
|
20
28
|
* @generated from field: string id = 1;
|
|
21
29
|
*/
|
|
22
30
|
id: string;
|
|
23
31
|
|
|
24
32
|
/**
|
|
33
|
+
* Required. The name of the application associated with this session.
|
|
34
|
+
*
|
|
25
35
|
* @generated from field: string app_name = 2;
|
|
26
36
|
*/
|
|
27
37
|
appName: string;
|
|
28
38
|
|
|
29
39
|
/**
|
|
40
|
+
* Required. Immutable. The user ID who owns this session.
|
|
41
|
+
*
|
|
30
42
|
* @generated from field: string user_id = 3;
|
|
31
43
|
*/
|
|
32
44
|
userId: string;
|
|
33
45
|
|
|
34
46
|
/**
|
|
47
|
+
* Optional. The display name of the session.
|
|
48
|
+
*
|
|
35
49
|
* @generated from field: optional string display_name = 4;
|
|
36
50
|
*/
|
|
37
51
|
displayName?: string | undefined;
|
|
38
52
|
|
|
39
53
|
/**
|
|
54
|
+
* Optional. Session-specific state which stores key conversation points.
|
|
55
|
+
* This is a key-value store that persists across events in the session.
|
|
56
|
+
*
|
|
40
57
|
* @generated from field: google.protobuf.Struct state = 10;
|
|
41
58
|
*/
|
|
42
59
|
state?: JsonObject | undefined;
|
|
43
60
|
|
|
44
61
|
/**
|
|
62
|
+
* The expiration configuration for the session.
|
|
63
|
+
*
|
|
45
64
|
* @generated from oneof alis.adk.sessions.v1.Session.expiration
|
|
46
65
|
*/
|
|
47
66
|
expiration: {
|
|
48
67
|
/**
|
|
68
|
+
* Optional. Timestamp of when this session is considered expired.
|
|
69
|
+
* This is always provided on output, regardless of what was sent on input.
|
|
70
|
+
*
|
|
49
71
|
* @generated from field: google.protobuf.Timestamp expire_time = 96;
|
|
50
72
|
*/
|
|
51
73
|
value: Timestamp;
|
|
52
74
|
case: "expireTime";
|
|
53
75
|
} | {
|
|
54
76
|
/**
|
|
77
|
+
* Optional. Input only. The TTL (time-to-live) for this session.
|
|
78
|
+
* When provided on input, the service will calculate expire_time.
|
|
79
|
+
*
|
|
55
80
|
* @generated from field: google.protobuf.Duration ttl = 97;
|
|
56
81
|
*/
|
|
57
82
|
value: Duration;
|
|
@@ -59,61 +84,92 @@ export declare type Session = Message<"alis.adk.sessions.v1.Session"> & {
|
|
|
59
84
|
} | { case: undefined; value?: undefined };
|
|
60
85
|
|
|
61
86
|
/**
|
|
87
|
+
* Output only. Timestamp when the session was created.
|
|
88
|
+
*
|
|
62
89
|
* @generated from field: google.protobuf.Timestamp create_time = 98;
|
|
63
90
|
*/
|
|
64
91
|
createTime?: Timestamp | undefined;
|
|
65
92
|
|
|
66
93
|
/**
|
|
94
|
+
* Output only. Timestamp when the session was last updated.
|
|
95
|
+
*
|
|
67
96
|
* @generated from field: google.protobuf.Timestamp update_time = 99;
|
|
68
97
|
*/
|
|
69
98
|
updateTime?: Timestamp | undefined;
|
|
70
99
|
};
|
|
71
100
|
|
|
72
101
|
/**
|
|
102
|
+
* Session represents a conversation session between a user and an agent.
|
|
103
|
+
*
|
|
104
|
+
* A session contains a set of actions between users and agents, including
|
|
105
|
+
* the session state, events, and metadata.
|
|
106
|
+
*
|
|
73
107
|
* @generated from message alis.adk.sessions.v1.Session
|
|
74
108
|
*/
|
|
75
109
|
export declare type SessionJson = {
|
|
76
110
|
/**
|
|
111
|
+
* Identifier. The ID of the session.
|
|
112
|
+
* Format: `{session}`
|
|
113
|
+
*
|
|
77
114
|
* @generated from field: string id = 1;
|
|
78
115
|
*/
|
|
79
116
|
id?: string;
|
|
80
117
|
|
|
81
118
|
/**
|
|
119
|
+
* Required. The name of the application associated with this session.
|
|
120
|
+
*
|
|
82
121
|
* @generated from field: string app_name = 2;
|
|
83
122
|
*/
|
|
84
123
|
appName?: string;
|
|
85
124
|
|
|
86
125
|
/**
|
|
126
|
+
* Required. Immutable. The user ID who owns this session.
|
|
127
|
+
*
|
|
87
128
|
* @generated from field: string user_id = 3;
|
|
88
129
|
*/
|
|
89
130
|
userId?: string;
|
|
90
131
|
|
|
91
132
|
/**
|
|
133
|
+
* Optional. The display name of the session.
|
|
134
|
+
*
|
|
92
135
|
* @generated from field: optional string display_name = 4;
|
|
93
136
|
*/
|
|
94
137
|
displayName?: string;
|
|
95
138
|
|
|
96
139
|
/**
|
|
140
|
+
* Optional. Session-specific state which stores key conversation points.
|
|
141
|
+
* This is a key-value store that persists across events in the session.
|
|
142
|
+
*
|
|
97
143
|
* @generated from field: google.protobuf.Struct state = 10;
|
|
98
144
|
*/
|
|
99
145
|
state?: StructJson;
|
|
100
146
|
|
|
101
147
|
/**
|
|
148
|
+
* Optional. Timestamp of when this session is considered expired.
|
|
149
|
+
* This is always provided on output, regardless of what was sent on input.
|
|
150
|
+
*
|
|
102
151
|
* @generated from field: google.protobuf.Timestamp expire_time = 96;
|
|
103
152
|
*/
|
|
104
153
|
expireTime?: TimestampJson;
|
|
105
154
|
|
|
106
155
|
/**
|
|
156
|
+
* Optional. Input only. The TTL (time-to-live) for this session.
|
|
157
|
+
* When provided on input, the service will calculate expire_time.
|
|
158
|
+
*
|
|
107
159
|
* @generated from field: google.protobuf.Duration ttl = 97;
|
|
108
160
|
*/
|
|
109
161
|
ttl?: DurationJson;
|
|
110
162
|
|
|
111
163
|
/**
|
|
164
|
+
* Output only. Timestamp when the session was created.
|
|
165
|
+
*
|
|
112
166
|
* @generated from field: google.protobuf.Timestamp create_time = 98;
|
|
113
167
|
*/
|
|
114
168
|
createTime?: TimestampJson;
|
|
115
169
|
|
|
116
170
|
/**
|
|
171
|
+
* Output only. Timestamp when the session was last updated.
|
|
172
|
+
*
|
|
117
173
|
* @generated from field: google.protobuf.Timestamp update_time = 99;
|
|
118
174
|
*/
|
|
119
175
|
updateTime?: TimestampJson;
|
|
@@ -126,40 +182,64 @@ export declare type SessionJson = {
|
|
|
126
182
|
export declare const SessionSchema: GenMessage<Session, {jsonType: SessionJson}>;
|
|
127
183
|
|
|
128
184
|
/**
|
|
185
|
+
* AppState represents application-level state shared across all users and
|
|
186
|
+
* sessions within an application.
|
|
187
|
+
*
|
|
188
|
+
* Keys use the "app:" prefix in the merged session state view. Stored in
|
|
189
|
+
* a separate table keyed by app_name.
|
|
190
|
+
*
|
|
129
191
|
* @generated from message alis.adk.sessions.v1.AppState
|
|
130
192
|
*/
|
|
131
193
|
export declare type AppState = Message<"alis.adk.sessions.v1.AppState"> & {
|
|
132
194
|
/**
|
|
195
|
+
* Required. The name of the application.
|
|
196
|
+
*
|
|
133
197
|
* @generated from field: string app_name = 1;
|
|
134
198
|
*/
|
|
135
199
|
appName: string;
|
|
136
200
|
|
|
137
201
|
/**
|
|
202
|
+
* Optional. Key-value state shared across all users and sessions of the app.
|
|
203
|
+
*
|
|
138
204
|
* @generated from field: google.protobuf.Struct state = 2;
|
|
139
205
|
*/
|
|
140
206
|
state?: JsonObject | undefined;
|
|
141
207
|
|
|
142
208
|
/**
|
|
209
|
+
* Output only. Timestamp when this app state was last updated.
|
|
210
|
+
*
|
|
143
211
|
* @generated from field: google.protobuf.Timestamp update_time = 99;
|
|
144
212
|
*/
|
|
145
213
|
updateTime?: Timestamp | undefined;
|
|
146
214
|
};
|
|
147
215
|
|
|
148
216
|
/**
|
|
217
|
+
* AppState represents application-level state shared across all users and
|
|
218
|
+
* sessions within an application.
|
|
219
|
+
*
|
|
220
|
+
* Keys use the "app:" prefix in the merged session state view. Stored in
|
|
221
|
+
* a separate table keyed by app_name.
|
|
222
|
+
*
|
|
149
223
|
* @generated from message alis.adk.sessions.v1.AppState
|
|
150
224
|
*/
|
|
151
225
|
export declare type AppStateJson = {
|
|
152
226
|
/**
|
|
227
|
+
* Required. The name of the application.
|
|
228
|
+
*
|
|
153
229
|
* @generated from field: string app_name = 1;
|
|
154
230
|
*/
|
|
155
231
|
appName?: string;
|
|
156
232
|
|
|
157
233
|
/**
|
|
234
|
+
* Optional. Key-value state shared across all users and sessions of the app.
|
|
235
|
+
*
|
|
158
236
|
* @generated from field: google.protobuf.Struct state = 2;
|
|
159
237
|
*/
|
|
160
238
|
state?: StructJson;
|
|
161
239
|
|
|
162
240
|
/**
|
|
241
|
+
* Output only. Timestamp when this app state was last updated.
|
|
242
|
+
*
|
|
163
243
|
* @generated from field: google.protobuf.Timestamp update_time = 99;
|
|
164
244
|
*/
|
|
165
245
|
updateTime?: TimestampJson;
|
|
@@ -172,50 +252,80 @@ export declare type AppStateJson = {
|
|
|
172
252
|
export declare const AppStateSchema: GenMessage<AppState, {jsonType: AppStateJson}>;
|
|
173
253
|
|
|
174
254
|
/**
|
|
255
|
+
* UserState represents user-level state shared across all sessions of a user
|
|
256
|
+
* within an application.
|
|
257
|
+
*
|
|
258
|
+
* Keys use the "user:" prefix in the merged session state view. Stored in
|
|
259
|
+
* a separate table keyed by (app_name, user_id).
|
|
260
|
+
*
|
|
175
261
|
* @generated from message alis.adk.sessions.v1.UserState
|
|
176
262
|
*/
|
|
177
263
|
export declare type UserState = Message<"alis.adk.sessions.v1.UserState"> & {
|
|
178
264
|
/**
|
|
265
|
+
* Required. The name of the application.
|
|
266
|
+
*
|
|
179
267
|
* @generated from field: string app_name = 1;
|
|
180
268
|
*/
|
|
181
269
|
appName: string;
|
|
182
270
|
|
|
183
271
|
/**
|
|
272
|
+
* Required. The user ID who owns this state.
|
|
273
|
+
*
|
|
184
274
|
* @generated from field: string user_id = 2;
|
|
185
275
|
*/
|
|
186
276
|
userId: string;
|
|
187
277
|
|
|
188
278
|
/**
|
|
279
|
+
* Optional. Key-value state shared across all sessions of this user in the
|
|
280
|
+
* app.
|
|
281
|
+
*
|
|
189
282
|
* @generated from field: google.protobuf.Struct state = 3;
|
|
190
283
|
*/
|
|
191
284
|
state?: JsonObject | undefined;
|
|
192
285
|
|
|
193
286
|
/**
|
|
287
|
+
* Output only. Timestamp when this user state was last updated.
|
|
288
|
+
*
|
|
194
289
|
* @generated from field: google.protobuf.Timestamp update_time = 99;
|
|
195
290
|
*/
|
|
196
291
|
updateTime?: Timestamp | undefined;
|
|
197
292
|
};
|
|
198
293
|
|
|
199
294
|
/**
|
|
295
|
+
* UserState represents user-level state shared across all sessions of a user
|
|
296
|
+
* within an application.
|
|
297
|
+
*
|
|
298
|
+
* Keys use the "user:" prefix in the merged session state view. Stored in
|
|
299
|
+
* a separate table keyed by (app_name, user_id).
|
|
300
|
+
*
|
|
200
301
|
* @generated from message alis.adk.sessions.v1.UserState
|
|
201
302
|
*/
|
|
202
303
|
export declare type UserStateJson = {
|
|
203
304
|
/**
|
|
305
|
+
* Required. The name of the application.
|
|
306
|
+
*
|
|
204
307
|
* @generated from field: string app_name = 1;
|
|
205
308
|
*/
|
|
206
309
|
appName?: string;
|
|
207
310
|
|
|
208
311
|
/**
|
|
312
|
+
* Required. The user ID who owns this state.
|
|
313
|
+
*
|
|
209
314
|
* @generated from field: string user_id = 2;
|
|
210
315
|
*/
|
|
211
316
|
userId?: string;
|
|
212
317
|
|
|
213
318
|
/**
|
|
319
|
+
* Optional. Key-value state shared across all sessions of this user in the
|
|
320
|
+
* app.
|
|
321
|
+
*
|
|
214
322
|
* @generated from field: google.protobuf.Struct state = 3;
|
|
215
323
|
*/
|
|
216
324
|
state?: StructJson;
|
|
217
325
|
|
|
218
326
|
/**
|
|
327
|
+
* Output only. Timestamp when this user state was last updated.
|
|
328
|
+
*
|
|
219
329
|
* @generated from field: google.protobuf.Timestamp update_time = 99;
|
|
220
330
|
*/
|
|
221
331
|
updateTime?: TimestampJson;
|
|
@@ -228,250 +338,456 @@ export declare type UserStateJson = {
|
|
|
228
338
|
export declare const UserStateSchema: GenMessage<UserState, {jsonType: UserStateJson}>;
|
|
229
339
|
|
|
230
340
|
/**
|
|
341
|
+
* SessionEvent represents a message from either the user or agent.
|
|
342
|
+
*
|
|
343
|
+
* Events are the fundamental unit of interaction in a session, containing
|
|
344
|
+
* content, metadata, and actions taken by the agent.
|
|
345
|
+
*
|
|
231
346
|
* @generated from message alis.adk.sessions.v1.SessionEvent
|
|
232
347
|
*/
|
|
233
348
|
export declare type SessionEvent = Message<"alis.adk.sessions.v1.SessionEvent"> & {
|
|
234
349
|
/**
|
|
350
|
+
* Identifier. The ID of the event.
|
|
351
|
+
* Format: `{event}`
|
|
352
|
+
*
|
|
235
353
|
* @generated from field: string id = 1;
|
|
236
354
|
*/
|
|
237
355
|
id: string;
|
|
238
356
|
|
|
239
357
|
/**
|
|
358
|
+
* Required. The name of the application associated with this event.
|
|
359
|
+
*
|
|
240
360
|
* @generated from field: string app_name = 2;
|
|
241
361
|
*/
|
|
242
362
|
appName: string;
|
|
243
363
|
|
|
244
364
|
/**
|
|
365
|
+
* Required. The user ID who owns the session this event belongs to.
|
|
366
|
+
*
|
|
245
367
|
* @generated from field: string user_id = 3;
|
|
246
368
|
*/
|
|
247
369
|
userId: string;
|
|
248
370
|
|
|
249
371
|
/**
|
|
372
|
+
* Required. The ID of the session this event belongs to.
|
|
373
|
+
*
|
|
250
374
|
* @generated from field: string session_id = 4;
|
|
251
375
|
*/
|
|
252
376
|
sessionId: string;
|
|
253
377
|
|
|
254
378
|
/**
|
|
379
|
+
* Required. The invocation ID of the event.
|
|
380
|
+
* Multiple events can have the same invocation ID, representing events
|
|
381
|
+
* that are part of the same agent invocation.
|
|
382
|
+
*
|
|
255
383
|
* @generated from field: string invocation_id = 5;
|
|
256
384
|
*/
|
|
257
385
|
invocationId: string;
|
|
258
386
|
|
|
259
387
|
/**
|
|
388
|
+
* Required. The name of the agent that sent the event, or the user
|
|
389
|
+
* identifier.
|
|
390
|
+
*
|
|
260
391
|
* @generated from field: string author = 6;
|
|
261
392
|
*/
|
|
262
393
|
author: string;
|
|
263
394
|
|
|
264
395
|
/**
|
|
396
|
+
* Optional. Actions executed by the agent as part of this event.
|
|
397
|
+
*
|
|
265
398
|
* @generated from field: alis.adk.sessions.v1.EventActions actions = 7;
|
|
266
399
|
*/
|
|
267
400
|
actions?: EventActions | undefined;
|
|
268
401
|
|
|
269
402
|
/**
|
|
403
|
+
* Optional. IDs of long-running function calls. Used for function call
|
|
404
|
+
* events.
|
|
405
|
+
*
|
|
270
406
|
* @generated from field: repeated string long_running_tool_ids = 8;
|
|
271
407
|
*/
|
|
272
408
|
longRunningToolIds: string[];
|
|
273
409
|
|
|
274
410
|
/**
|
|
411
|
+
* Optional. The branch of the event. Format: `agent_1.agent_2.agent_3` for
|
|
412
|
+
* nested agent hierarchies. Used when child agents should not see siblings'
|
|
413
|
+
* history.
|
|
414
|
+
*
|
|
275
415
|
* @generated from field: optional string branch = 9;
|
|
276
416
|
*/
|
|
277
417
|
branch?: string | undefined;
|
|
278
418
|
|
|
279
419
|
/**
|
|
420
|
+
* Optional. Content of the event provided by the author.
|
|
421
|
+
*
|
|
280
422
|
* @generated from field: alis.adk.sessions.v1.Content content = 10;
|
|
281
423
|
*/
|
|
282
424
|
content?: Content | undefined;
|
|
283
425
|
|
|
284
426
|
/**
|
|
427
|
+
* Optional. Metadata returned when grounding is enabled (e.g. web search,
|
|
428
|
+
* RAG).
|
|
429
|
+
*
|
|
285
430
|
* @generated from field: alis.adk.sessions.v1.GroundingMetadata grounding_metadata = 11;
|
|
286
431
|
*/
|
|
287
432
|
groundingMetadata?: GroundingMetadata | undefined;
|
|
288
433
|
|
|
289
434
|
/**
|
|
435
|
+
* Optional. Custom metadata of the LLM response.
|
|
436
|
+
*
|
|
290
437
|
* @generated from field: google.protobuf.Struct custom_metadata = 12;
|
|
291
438
|
*/
|
|
292
439
|
customMetadata?: JsonObject | undefined;
|
|
293
440
|
|
|
294
441
|
/**
|
|
442
|
+
* Optional. Token usage metadata from the model.
|
|
443
|
+
*
|
|
295
444
|
* @generated from field: alis.adk.sessions.v1.UsageMetadata usage_metadata = 13;
|
|
296
445
|
*/
|
|
297
446
|
usageMetadata?: UsageMetadata | undefined;
|
|
298
447
|
|
|
299
448
|
/**
|
|
449
|
+
* Optional. Citation metadata for sourced content.
|
|
450
|
+
*
|
|
300
451
|
* @generated from field: alis.adk.sessions.v1.CitationMetadata citation_metadata = 14;
|
|
301
452
|
*/
|
|
302
453
|
citationMetadata?: CitationMetadata | undefined;
|
|
303
454
|
|
|
304
455
|
/**
|
|
456
|
+
* Optional. Indicates whether the content is part of an unfinished text
|
|
457
|
+
* stream.
|
|
458
|
+
*
|
|
305
459
|
* @generated from field: optional bool partial = 15;
|
|
306
460
|
*/
|
|
307
461
|
partial?: boolean | undefined;
|
|
308
462
|
|
|
309
463
|
/**
|
|
464
|
+
* Optional. Indicates whether the response from the model is complete.
|
|
465
|
+
*
|
|
310
466
|
* @generated from field: optional bool turn_complete = 16;
|
|
311
467
|
*/
|
|
312
468
|
turnComplete?: boolean | undefined;
|
|
313
469
|
|
|
314
470
|
/**
|
|
471
|
+
* Optional. Error code if the response is an error. Code varies by model.
|
|
472
|
+
*
|
|
315
473
|
* @generated from field: optional string error_code = 17;
|
|
316
474
|
*/
|
|
317
475
|
errorCode?: string | undefined;
|
|
318
476
|
|
|
319
477
|
/**
|
|
478
|
+
* Optional. Error message if the response is an error.
|
|
479
|
+
*
|
|
320
480
|
* @generated from field: optional string error_message = 18;
|
|
321
481
|
*/
|
|
322
482
|
errorMessage?: string | undefined;
|
|
323
483
|
|
|
324
484
|
/**
|
|
485
|
+
* Optional. Indicates the LLM was interrupted when generating (e.g. user
|
|
486
|
+
* stop).
|
|
487
|
+
*
|
|
325
488
|
* @generated from field: optional bool interrupted = 19;
|
|
326
489
|
*/
|
|
327
490
|
interrupted?: boolean | undefined;
|
|
328
491
|
|
|
329
492
|
/**
|
|
493
|
+
* Optional. The reason the LLM stopped generating.
|
|
494
|
+
*
|
|
330
495
|
* @generated from field: alis.adk.sessions.v1.FinishReason finish_reason = 20;
|
|
331
496
|
*/
|
|
332
497
|
finishReason: FinishReason;
|
|
333
498
|
|
|
334
499
|
/**
|
|
500
|
+
* Optional. The average log probability of the tokens in the response.
|
|
501
|
+
*
|
|
335
502
|
* @generated from field: optional double avg_logprobs = 21;
|
|
336
503
|
*/
|
|
337
504
|
avgLogprobs?: number | undefined;
|
|
338
505
|
|
|
339
506
|
/**
|
|
507
|
+
* Optional. The version of the model that generated the response.
|
|
508
|
+
*
|
|
340
509
|
* @generated from field: optional string model_version = 22;
|
|
341
510
|
*/
|
|
342
511
|
modelVersion?: string | undefined;
|
|
343
512
|
|
|
344
513
|
/**
|
|
514
|
+
* Optional. The logprobs result of the response.
|
|
515
|
+
*
|
|
345
516
|
* @generated from field: alis.adk.sessions.v1.LogprobsResult logprobs_result = 23;
|
|
346
517
|
*/
|
|
347
518
|
logprobsResult?: LogprobsResult | undefined;
|
|
348
519
|
|
|
349
520
|
/**
|
|
521
|
+
* Optional. When set, restricts which agent contexts include this event in
|
|
522
|
+
* LLM prompt history: an event is visible only when its isolation scope
|
|
523
|
+
* equals the agent's isolation scope (exact match; empty sees only empty).
|
|
524
|
+
*
|
|
525
|
+
* @generated from field: optional string isolation_scope = 24;
|
|
526
|
+
*/
|
|
527
|
+
isolationScope?: string | undefined;
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Optional. Routing information for workflow execution.
|
|
531
|
+
*
|
|
532
|
+
* @generated from field: repeated string routes = 25;
|
|
533
|
+
*/
|
|
534
|
+
routes: string[];
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Optional. When set, signals that the workflow node emitting this event is
|
|
538
|
+
* asking for human input and is about to pause. At most one event per node
|
|
539
|
+
* activation may carry this field.
|
|
540
|
+
*
|
|
541
|
+
* @generated from field: alis.adk.sessions.v1.RequestInput requested_input = 26;
|
|
542
|
+
*/
|
|
543
|
+
requestedInput?: RequestInput | undefined;
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Optional. Generic data output from a workflow node, as a JSON value.
|
|
547
|
+
*
|
|
548
|
+
* @generated from field: google.protobuf.Value output = 27;
|
|
549
|
+
*/
|
|
550
|
+
output?: Value | undefined;
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Optional. Workflow-node metadata for events emitted inside a workflow.
|
|
554
|
+
* Absent for non-workflow events.
|
|
555
|
+
*
|
|
556
|
+
* @generated from field: alis.adk.sessions.v1.NodeInfo node_info = 28;
|
|
557
|
+
*/
|
|
558
|
+
nodeInfo?: NodeInfo | undefined;
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Required. Timestamp when the event was created on the client side.
|
|
562
|
+
*
|
|
350
563
|
* @generated from field: google.protobuf.Timestamp timestamp = 98;
|
|
351
564
|
*/
|
|
352
565
|
timestamp?: Timestamp | undefined;
|
|
353
566
|
};
|
|
354
567
|
|
|
355
568
|
/**
|
|
569
|
+
* SessionEvent represents a message from either the user or agent.
|
|
570
|
+
*
|
|
571
|
+
* Events are the fundamental unit of interaction in a session, containing
|
|
572
|
+
* content, metadata, and actions taken by the agent.
|
|
573
|
+
*
|
|
356
574
|
* @generated from message alis.adk.sessions.v1.SessionEvent
|
|
357
575
|
*/
|
|
358
576
|
export declare type SessionEventJson = {
|
|
359
577
|
/**
|
|
578
|
+
* Identifier. The ID of the event.
|
|
579
|
+
* Format: `{event}`
|
|
580
|
+
*
|
|
360
581
|
* @generated from field: string id = 1;
|
|
361
582
|
*/
|
|
362
583
|
id?: string;
|
|
363
584
|
|
|
364
585
|
/**
|
|
586
|
+
* Required. The name of the application associated with this event.
|
|
587
|
+
*
|
|
365
588
|
* @generated from field: string app_name = 2;
|
|
366
589
|
*/
|
|
367
590
|
appName?: string;
|
|
368
591
|
|
|
369
592
|
/**
|
|
593
|
+
* Required. The user ID who owns the session this event belongs to.
|
|
594
|
+
*
|
|
370
595
|
* @generated from field: string user_id = 3;
|
|
371
596
|
*/
|
|
372
597
|
userId?: string;
|
|
373
598
|
|
|
374
599
|
/**
|
|
600
|
+
* Required. The ID of the session this event belongs to.
|
|
601
|
+
*
|
|
375
602
|
* @generated from field: string session_id = 4;
|
|
376
603
|
*/
|
|
377
604
|
sessionId?: string;
|
|
378
605
|
|
|
379
606
|
/**
|
|
607
|
+
* Required. The invocation ID of the event.
|
|
608
|
+
* Multiple events can have the same invocation ID, representing events
|
|
609
|
+
* that are part of the same agent invocation.
|
|
610
|
+
*
|
|
380
611
|
* @generated from field: string invocation_id = 5;
|
|
381
612
|
*/
|
|
382
613
|
invocationId?: string;
|
|
383
614
|
|
|
384
615
|
/**
|
|
616
|
+
* Required. The name of the agent that sent the event, or the user
|
|
617
|
+
* identifier.
|
|
618
|
+
*
|
|
385
619
|
* @generated from field: string author = 6;
|
|
386
620
|
*/
|
|
387
621
|
author?: string;
|
|
388
622
|
|
|
389
623
|
/**
|
|
624
|
+
* Optional. Actions executed by the agent as part of this event.
|
|
625
|
+
*
|
|
390
626
|
* @generated from field: alis.adk.sessions.v1.EventActions actions = 7;
|
|
391
627
|
*/
|
|
392
628
|
actions?: EventActionsJson;
|
|
393
629
|
|
|
394
630
|
/**
|
|
631
|
+
* Optional. IDs of long-running function calls. Used for function call
|
|
632
|
+
* events.
|
|
633
|
+
*
|
|
395
634
|
* @generated from field: repeated string long_running_tool_ids = 8;
|
|
396
635
|
*/
|
|
397
636
|
longRunningToolIds?: string[];
|
|
398
637
|
|
|
399
638
|
/**
|
|
639
|
+
* Optional. The branch of the event. Format: `agent_1.agent_2.agent_3` for
|
|
640
|
+
* nested agent hierarchies. Used when child agents should not see siblings'
|
|
641
|
+
* history.
|
|
642
|
+
*
|
|
400
643
|
* @generated from field: optional string branch = 9;
|
|
401
644
|
*/
|
|
402
645
|
branch?: string;
|
|
403
646
|
|
|
404
647
|
/**
|
|
648
|
+
* Optional. Content of the event provided by the author.
|
|
649
|
+
*
|
|
405
650
|
* @generated from field: alis.adk.sessions.v1.Content content = 10;
|
|
406
651
|
*/
|
|
407
652
|
content?: ContentJson;
|
|
408
653
|
|
|
409
654
|
/**
|
|
655
|
+
* Optional. Metadata returned when grounding is enabled (e.g. web search,
|
|
656
|
+
* RAG).
|
|
657
|
+
*
|
|
410
658
|
* @generated from field: alis.adk.sessions.v1.GroundingMetadata grounding_metadata = 11;
|
|
411
659
|
*/
|
|
412
660
|
groundingMetadata?: GroundingMetadataJson;
|
|
413
661
|
|
|
414
662
|
/**
|
|
663
|
+
* Optional. Custom metadata of the LLM response.
|
|
664
|
+
*
|
|
415
665
|
* @generated from field: google.protobuf.Struct custom_metadata = 12;
|
|
416
666
|
*/
|
|
417
667
|
customMetadata?: StructJson;
|
|
418
668
|
|
|
419
669
|
/**
|
|
670
|
+
* Optional. Token usage metadata from the model.
|
|
671
|
+
*
|
|
420
672
|
* @generated from field: alis.adk.sessions.v1.UsageMetadata usage_metadata = 13;
|
|
421
673
|
*/
|
|
422
674
|
usageMetadata?: UsageMetadataJson;
|
|
423
675
|
|
|
424
676
|
/**
|
|
677
|
+
* Optional. Citation metadata for sourced content.
|
|
678
|
+
*
|
|
425
679
|
* @generated from field: alis.adk.sessions.v1.CitationMetadata citation_metadata = 14;
|
|
426
680
|
*/
|
|
427
681
|
citationMetadata?: CitationMetadataJson;
|
|
428
682
|
|
|
429
683
|
/**
|
|
684
|
+
* Optional. Indicates whether the content is part of an unfinished text
|
|
685
|
+
* stream.
|
|
686
|
+
*
|
|
430
687
|
* @generated from field: optional bool partial = 15;
|
|
431
688
|
*/
|
|
432
689
|
partial?: boolean;
|
|
433
690
|
|
|
434
691
|
/**
|
|
692
|
+
* Optional. Indicates whether the response from the model is complete.
|
|
693
|
+
*
|
|
435
694
|
* @generated from field: optional bool turn_complete = 16;
|
|
436
695
|
*/
|
|
437
696
|
turnComplete?: boolean;
|
|
438
697
|
|
|
439
698
|
/**
|
|
699
|
+
* Optional. Error code if the response is an error. Code varies by model.
|
|
700
|
+
*
|
|
440
701
|
* @generated from field: optional string error_code = 17;
|
|
441
702
|
*/
|
|
442
703
|
errorCode?: string;
|
|
443
704
|
|
|
444
705
|
/**
|
|
706
|
+
* Optional. Error message if the response is an error.
|
|
707
|
+
*
|
|
445
708
|
* @generated from field: optional string error_message = 18;
|
|
446
709
|
*/
|
|
447
710
|
errorMessage?: string;
|
|
448
711
|
|
|
449
712
|
/**
|
|
713
|
+
* Optional. Indicates the LLM was interrupted when generating (e.g. user
|
|
714
|
+
* stop).
|
|
715
|
+
*
|
|
450
716
|
* @generated from field: optional bool interrupted = 19;
|
|
451
717
|
*/
|
|
452
718
|
interrupted?: boolean;
|
|
453
719
|
|
|
454
720
|
/**
|
|
721
|
+
* Optional. The reason the LLM stopped generating.
|
|
722
|
+
*
|
|
455
723
|
* @generated from field: alis.adk.sessions.v1.FinishReason finish_reason = 20;
|
|
456
724
|
*/
|
|
457
725
|
finishReason?: FinishReasonJson;
|
|
458
726
|
|
|
459
727
|
/**
|
|
728
|
+
* Optional. The average log probability of the tokens in the response.
|
|
729
|
+
*
|
|
460
730
|
* @generated from field: optional double avg_logprobs = 21;
|
|
461
731
|
*/
|
|
462
732
|
avgLogprobs?: number | "NaN" | "Infinity" | "-Infinity";
|
|
463
733
|
|
|
464
734
|
/**
|
|
735
|
+
* Optional. The version of the model that generated the response.
|
|
736
|
+
*
|
|
465
737
|
* @generated from field: optional string model_version = 22;
|
|
466
738
|
*/
|
|
467
739
|
modelVersion?: string;
|
|
468
740
|
|
|
469
741
|
/**
|
|
742
|
+
* Optional. The logprobs result of the response.
|
|
743
|
+
*
|
|
470
744
|
* @generated from field: alis.adk.sessions.v1.LogprobsResult logprobs_result = 23;
|
|
471
745
|
*/
|
|
472
746
|
logprobsResult?: LogprobsResultJson;
|
|
473
747
|
|
|
474
748
|
/**
|
|
749
|
+
* Optional. When set, restricts which agent contexts include this event in
|
|
750
|
+
* LLM prompt history: an event is visible only when its isolation scope
|
|
751
|
+
* equals the agent's isolation scope (exact match; empty sees only empty).
|
|
752
|
+
*
|
|
753
|
+
* @generated from field: optional string isolation_scope = 24;
|
|
754
|
+
*/
|
|
755
|
+
isolationScope?: string;
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Optional. Routing information for workflow execution.
|
|
759
|
+
*
|
|
760
|
+
* @generated from field: repeated string routes = 25;
|
|
761
|
+
*/
|
|
762
|
+
routes?: string[];
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* Optional. When set, signals that the workflow node emitting this event is
|
|
766
|
+
* asking for human input and is about to pause. At most one event per node
|
|
767
|
+
* activation may carry this field.
|
|
768
|
+
*
|
|
769
|
+
* @generated from field: alis.adk.sessions.v1.RequestInput requested_input = 26;
|
|
770
|
+
*/
|
|
771
|
+
requestedInput?: RequestInputJson;
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* Optional. Generic data output from a workflow node, as a JSON value.
|
|
775
|
+
*
|
|
776
|
+
* @generated from field: google.protobuf.Value output = 27;
|
|
777
|
+
*/
|
|
778
|
+
output?: ValueJson;
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* Optional. Workflow-node metadata for events emitted inside a workflow.
|
|
782
|
+
* Absent for non-workflow events.
|
|
783
|
+
*
|
|
784
|
+
* @generated from field: alis.adk.sessions.v1.NodeInfo node_info = 28;
|
|
785
|
+
*/
|
|
786
|
+
nodeInfo?: NodeInfoJson;
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* Required. Timestamp when the event was created on the client side.
|
|
790
|
+
*
|
|
475
791
|
* @generated from field: google.protobuf.Timestamp timestamp = 98;
|
|
476
792
|
*/
|
|
477
793
|
timestamp?: TimestampJson;
|
|
@@ -484,30 +800,44 @@ export declare type SessionEventJson = {
|
|
|
484
800
|
export declare const SessionEventSchema: GenMessage<SessionEvent, {jsonType: SessionEventJson}>;
|
|
485
801
|
|
|
486
802
|
/**
|
|
803
|
+
* Request message for SessionService.CreateSession.
|
|
804
|
+
*
|
|
487
805
|
* @generated from message alis.adk.sessions.v1.CreateSessionRequest
|
|
488
806
|
*/
|
|
489
807
|
export declare type CreateSessionRequest = Message<"alis.adk.sessions.v1.CreateSessionRequest"> & {
|
|
490
808
|
/**
|
|
809
|
+
* Required. The session to create.
|
|
810
|
+
*
|
|
491
811
|
* @generated from field: alis.adk.sessions.v1.Session session = 1;
|
|
492
812
|
*/
|
|
493
813
|
session?: Session | undefined;
|
|
494
814
|
|
|
495
815
|
/**
|
|
816
|
+
* Optional. The session ID to create.
|
|
817
|
+
* If not provided, a new session ID will be generated.
|
|
818
|
+
*
|
|
496
819
|
* @generated from field: string session_id = 2;
|
|
497
820
|
*/
|
|
498
821
|
sessionId: string;
|
|
499
822
|
};
|
|
500
823
|
|
|
501
824
|
/**
|
|
825
|
+
* Request message for SessionService.CreateSession.
|
|
826
|
+
*
|
|
502
827
|
* @generated from message alis.adk.sessions.v1.CreateSessionRequest
|
|
503
828
|
*/
|
|
504
829
|
export declare type CreateSessionRequestJson = {
|
|
505
830
|
/**
|
|
831
|
+
* Required. The session to create.
|
|
832
|
+
*
|
|
506
833
|
* @generated from field: alis.adk.sessions.v1.Session session = 1;
|
|
507
834
|
*/
|
|
508
835
|
session?: SessionJson;
|
|
509
836
|
|
|
510
837
|
/**
|
|
838
|
+
* Optional. The session ID to create.
|
|
839
|
+
* If not provided, a new session ID will be generated.
|
|
840
|
+
*
|
|
511
841
|
* @generated from field: string session_id = 2;
|
|
512
842
|
*/
|
|
513
843
|
sessionId?: string;
|
|
@@ -520,20 +850,30 @@ export declare type CreateSessionRequestJson = {
|
|
|
520
850
|
export declare const CreateSessionRequestSchema: GenMessage<CreateSessionRequest, {jsonType: CreateSessionRequestJson}>;
|
|
521
851
|
|
|
522
852
|
/**
|
|
853
|
+
* Request message for SessionService.GetSession.
|
|
854
|
+
*
|
|
523
855
|
* @generated from message alis.adk.sessions.v1.GetSessionRequest
|
|
524
856
|
*/
|
|
525
857
|
export declare type GetSessionRequest = Message<"alis.adk.sessions.v1.GetSessionRequest"> & {
|
|
526
858
|
/**
|
|
859
|
+
* Required. The resource name of the session.
|
|
860
|
+
* Format: `sessions/{session}`
|
|
861
|
+
*
|
|
527
862
|
* @generated from field: string name = 1;
|
|
528
863
|
*/
|
|
529
864
|
name: string;
|
|
530
865
|
};
|
|
531
866
|
|
|
532
867
|
/**
|
|
868
|
+
* Request message for SessionService.GetSession.
|
|
869
|
+
*
|
|
533
870
|
* @generated from message alis.adk.sessions.v1.GetSessionRequest
|
|
534
871
|
*/
|
|
535
872
|
export declare type GetSessionRequestJson = {
|
|
536
873
|
/**
|
|
874
|
+
* Required. The resource name of the session.
|
|
875
|
+
* Format: `sessions/{session}`
|
|
876
|
+
*
|
|
537
877
|
* @generated from field: string name = 1;
|
|
538
878
|
*/
|
|
539
879
|
name?: string;
|
|
@@ -546,50 +886,92 @@ export declare type GetSessionRequestJson = {
|
|
|
546
886
|
export declare const GetSessionRequestSchema: GenMessage<GetSessionRequest, {jsonType: GetSessionRequestJson}>;
|
|
547
887
|
|
|
548
888
|
/**
|
|
889
|
+
* Request message for SessionService.ListSessions.
|
|
890
|
+
*
|
|
549
891
|
* @generated from message alis.adk.sessions.v1.ListSessionsRequest
|
|
550
892
|
*/
|
|
551
893
|
export declare type ListSessionsRequest = Message<"alis.adk.sessions.v1.ListSessionsRequest"> & {
|
|
552
894
|
/**
|
|
895
|
+
* Optional. The maximum number of sessions to return.
|
|
896
|
+
* The service may return fewer than this value.
|
|
897
|
+
* If unspecified, at most 100 sessions will be returned.
|
|
898
|
+
*
|
|
553
899
|
* @generated from field: int32 page_size = 1;
|
|
554
900
|
*/
|
|
555
901
|
pageSize: number;
|
|
556
902
|
|
|
557
903
|
/**
|
|
904
|
+
* Optional. A page token, received from a previous ListSessions call.
|
|
905
|
+
* Provide this to retrieve the next page of results.
|
|
906
|
+
*
|
|
558
907
|
* @generated from field: string page_token = 2;
|
|
559
908
|
*/
|
|
560
909
|
pageToken: string;
|
|
561
910
|
|
|
562
911
|
/**
|
|
912
|
+
* Optional. The standard list filter.
|
|
913
|
+
* Supported fields:
|
|
914
|
+
* - `display_name`
|
|
915
|
+
* - `user_id`
|
|
916
|
+
* - `app_name`
|
|
917
|
+
*
|
|
563
918
|
* @generated from field: string filter = 3;
|
|
564
919
|
*/
|
|
565
920
|
filter: string;
|
|
566
921
|
|
|
567
922
|
/**
|
|
923
|
+
* Optional. A comma-separated list of fields to order by, sorted in ascending
|
|
924
|
+
* order. Use "desc" after a field name for descending.
|
|
925
|
+
* Supported fields:
|
|
926
|
+
* - `create_time`
|
|
927
|
+
* - `update_time`
|
|
928
|
+
*
|
|
568
929
|
* @generated from field: string order_by = 4;
|
|
569
930
|
*/
|
|
570
931
|
orderBy: string;
|
|
571
932
|
};
|
|
572
933
|
|
|
573
934
|
/**
|
|
935
|
+
* Request message for SessionService.ListSessions.
|
|
936
|
+
*
|
|
574
937
|
* @generated from message alis.adk.sessions.v1.ListSessionsRequest
|
|
575
938
|
*/
|
|
576
939
|
export declare type ListSessionsRequestJson = {
|
|
577
940
|
/**
|
|
941
|
+
* Optional. The maximum number of sessions to return.
|
|
942
|
+
* The service may return fewer than this value.
|
|
943
|
+
* If unspecified, at most 100 sessions will be returned.
|
|
944
|
+
*
|
|
578
945
|
* @generated from field: int32 page_size = 1;
|
|
579
946
|
*/
|
|
580
947
|
pageSize?: number;
|
|
581
948
|
|
|
582
949
|
/**
|
|
950
|
+
* Optional. A page token, received from a previous ListSessions call.
|
|
951
|
+
* Provide this to retrieve the next page of results.
|
|
952
|
+
*
|
|
583
953
|
* @generated from field: string page_token = 2;
|
|
584
954
|
*/
|
|
585
955
|
pageToken?: string;
|
|
586
956
|
|
|
587
957
|
/**
|
|
958
|
+
* Optional. The standard list filter.
|
|
959
|
+
* Supported fields:
|
|
960
|
+
* - `display_name`
|
|
961
|
+
* - `user_id`
|
|
962
|
+
* - `app_name`
|
|
963
|
+
*
|
|
588
964
|
* @generated from field: string filter = 3;
|
|
589
965
|
*/
|
|
590
966
|
filter?: string;
|
|
591
967
|
|
|
592
968
|
/**
|
|
969
|
+
* Optional. A comma-separated list of fields to order by, sorted in ascending
|
|
970
|
+
* order. Use "desc" after a field name for descending.
|
|
971
|
+
* Supported fields:
|
|
972
|
+
* - `create_time`
|
|
973
|
+
* - `update_time`
|
|
974
|
+
*
|
|
593
975
|
* @generated from field: string order_by = 4;
|
|
594
976
|
*/
|
|
595
977
|
orderBy?: string;
|
|
@@ -602,30 +984,46 @@ export declare type ListSessionsRequestJson = {
|
|
|
602
984
|
export declare const ListSessionsRequestSchema: GenMessage<ListSessionsRequest, {jsonType: ListSessionsRequestJson}>;
|
|
603
985
|
|
|
604
986
|
/**
|
|
987
|
+
* Response message for SessionService.ListSessions.
|
|
988
|
+
*
|
|
605
989
|
* @generated from message alis.adk.sessions.v1.ListSessionsResponse
|
|
606
990
|
*/
|
|
607
991
|
export declare type ListSessionsResponse = Message<"alis.adk.sessions.v1.ListSessionsResponse"> & {
|
|
608
992
|
/**
|
|
993
|
+
* A list of sessions matching the request.
|
|
994
|
+
*
|
|
609
995
|
* @generated from field: repeated alis.adk.sessions.v1.Session sessions = 1;
|
|
610
996
|
*/
|
|
611
997
|
sessions: Session[];
|
|
612
998
|
|
|
613
999
|
/**
|
|
1000
|
+
* A token, which can be sent as ListSessionsRequest.page_token to retrieve
|
|
1001
|
+
* the next page. Absence of this field indicates there are no subsequent
|
|
1002
|
+
* pages.
|
|
1003
|
+
*
|
|
614
1004
|
* @generated from field: string next_page_token = 2;
|
|
615
1005
|
*/
|
|
616
1006
|
nextPageToken: string;
|
|
617
1007
|
};
|
|
618
1008
|
|
|
619
1009
|
/**
|
|
1010
|
+
* Response message for SessionService.ListSessions.
|
|
1011
|
+
*
|
|
620
1012
|
* @generated from message alis.adk.sessions.v1.ListSessionsResponse
|
|
621
1013
|
*/
|
|
622
1014
|
export declare type ListSessionsResponseJson = {
|
|
623
1015
|
/**
|
|
1016
|
+
* A list of sessions matching the request.
|
|
1017
|
+
*
|
|
624
1018
|
* @generated from field: repeated alis.adk.sessions.v1.Session sessions = 1;
|
|
625
1019
|
*/
|
|
626
1020
|
sessions?: SessionJson[];
|
|
627
1021
|
|
|
628
1022
|
/**
|
|
1023
|
+
* A token, which can be sent as ListSessionsRequest.page_token to retrieve
|
|
1024
|
+
* the next page. Absence of this field indicates there are no subsequent
|
|
1025
|
+
* pages.
|
|
1026
|
+
*
|
|
629
1027
|
* @generated from field: string next_page_token = 2;
|
|
630
1028
|
*/
|
|
631
1029
|
nextPageToken?: string;
|
|
@@ -638,30 +1036,42 @@ export declare type ListSessionsResponseJson = {
|
|
|
638
1036
|
export declare const ListSessionsResponseSchema: GenMessage<ListSessionsResponse, {jsonType: ListSessionsResponseJson}>;
|
|
639
1037
|
|
|
640
1038
|
/**
|
|
1039
|
+
* Request message for SessionService.UpdateSession.
|
|
1040
|
+
*
|
|
641
1041
|
* @generated from message alis.adk.sessions.v1.UpdateSessionRequest
|
|
642
1042
|
*/
|
|
643
1043
|
export declare type UpdateSessionRequest = Message<"alis.adk.sessions.v1.UpdateSessionRequest"> & {
|
|
644
1044
|
/**
|
|
1045
|
+
* Required. The session to update.
|
|
1046
|
+
*
|
|
645
1047
|
* @generated from field: alis.adk.sessions.v1.Session session = 1;
|
|
646
1048
|
*/
|
|
647
1049
|
session?: Session | undefined;
|
|
648
1050
|
|
|
649
1051
|
/**
|
|
1052
|
+
* Required. The list of fields to update.
|
|
1053
|
+
*
|
|
650
1054
|
* @generated from field: google.protobuf.FieldMask update_mask = 2;
|
|
651
1055
|
*/
|
|
652
1056
|
updateMask?: FieldMask | undefined;
|
|
653
1057
|
};
|
|
654
1058
|
|
|
655
1059
|
/**
|
|
1060
|
+
* Request message for SessionService.UpdateSession.
|
|
1061
|
+
*
|
|
656
1062
|
* @generated from message alis.adk.sessions.v1.UpdateSessionRequest
|
|
657
1063
|
*/
|
|
658
1064
|
export declare type UpdateSessionRequestJson = {
|
|
659
1065
|
/**
|
|
1066
|
+
* Required. The session to update.
|
|
1067
|
+
*
|
|
660
1068
|
* @generated from field: alis.adk.sessions.v1.Session session = 1;
|
|
661
1069
|
*/
|
|
662
1070
|
session?: SessionJson;
|
|
663
1071
|
|
|
664
1072
|
/**
|
|
1073
|
+
* Required. The list of fields to update.
|
|
1074
|
+
*
|
|
665
1075
|
* @generated from field: google.protobuf.FieldMask update_mask = 2;
|
|
666
1076
|
*/
|
|
667
1077
|
updateMask?: FieldMaskJson;
|
|
@@ -674,20 +1084,30 @@ export declare type UpdateSessionRequestJson = {
|
|
|
674
1084
|
export declare const UpdateSessionRequestSchema: GenMessage<UpdateSessionRequest, {jsonType: UpdateSessionRequestJson}>;
|
|
675
1085
|
|
|
676
1086
|
/**
|
|
1087
|
+
* Request message for SessionService.DeleteSession.
|
|
1088
|
+
*
|
|
677
1089
|
* @generated from message alis.adk.sessions.v1.DeleteSessionRequest
|
|
678
1090
|
*/
|
|
679
1091
|
export declare type DeleteSessionRequest = Message<"alis.adk.sessions.v1.DeleteSessionRequest"> & {
|
|
680
1092
|
/**
|
|
1093
|
+
* Required. The resource name of the session.
|
|
1094
|
+
* Format: `sessions/{session}`
|
|
1095
|
+
*
|
|
681
1096
|
* @generated from field: string name = 1;
|
|
682
1097
|
*/
|
|
683
1098
|
name: string;
|
|
684
1099
|
};
|
|
685
1100
|
|
|
686
1101
|
/**
|
|
1102
|
+
* Request message for SessionService.DeleteSession.
|
|
1103
|
+
*
|
|
687
1104
|
* @generated from message alis.adk.sessions.v1.DeleteSessionRequest
|
|
688
1105
|
*/
|
|
689
1106
|
export declare type DeleteSessionRequestJson = {
|
|
690
1107
|
/**
|
|
1108
|
+
* Required. The resource name of the session.
|
|
1109
|
+
* Format: `sessions/{session}`
|
|
1110
|
+
*
|
|
691
1111
|
* @generated from field: string name = 1;
|
|
692
1112
|
*/
|
|
693
1113
|
name?: string;
|
|
@@ -700,20 +1120,30 @@ export declare type DeleteSessionRequestJson = {
|
|
|
700
1120
|
export declare const DeleteSessionRequestSchema: GenMessage<DeleteSessionRequest, {jsonType: DeleteSessionRequestJson}>;
|
|
701
1121
|
|
|
702
1122
|
/**
|
|
1123
|
+
* Request message for SessionService.GetEvent.
|
|
1124
|
+
*
|
|
703
1125
|
* @generated from message alis.adk.sessions.v1.GetEventRequest
|
|
704
1126
|
*/
|
|
705
1127
|
export declare type GetEventRequest = Message<"alis.adk.sessions.v1.GetEventRequest"> & {
|
|
706
1128
|
/**
|
|
1129
|
+
* Required. The resource name of the event.
|
|
1130
|
+
* Format: `sessions/{session}/events/{event}`
|
|
1131
|
+
*
|
|
707
1132
|
* @generated from field: string name = 1;
|
|
708
1133
|
*/
|
|
709
1134
|
name: string;
|
|
710
1135
|
};
|
|
711
1136
|
|
|
712
1137
|
/**
|
|
1138
|
+
* Request message for SessionService.GetEvent.
|
|
1139
|
+
*
|
|
713
1140
|
* @generated from message alis.adk.sessions.v1.GetEventRequest
|
|
714
1141
|
*/
|
|
715
1142
|
export declare type GetEventRequestJson = {
|
|
716
1143
|
/**
|
|
1144
|
+
* Required. The resource name of the event.
|
|
1145
|
+
* Format: `sessions/{session}/events/{event}`
|
|
1146
|
+
*
|
|
717
1147
|
* @generated from field: string name = 1;
|
|
718
1148
|
*/
|
|
719
1149
|
name?: string;
|
|
@@ -726,60 +1156,102 @@ export declare type GetEventRequestJson = {
|
|
|
726
1156
|
export declare const GetEventRequestSchema: GenMessage<GetEventRequest, {jsonType: GetEventRequestJson}>;
|
|
727
1157
|
|
|
728
1158
|
/**
|
|
1159
|
+
* Request message for SessionService.ListEvents.
|
|
1160
|
+
*
|
|
729
1161
|
* @generated from message alis.adk.sessions.v1.ListEventsRequest
|
|
730
1162
|
*/
|
|
731
1163
|
export declare type ListEventsRequest = Message<"alis.adk.sessions.v1.ListEventsRequest"> & {
|
|
732
1164
|
/**
|
|
1165
|
+
* Required. The resource name of the session to list events from.
|
|
1166
|
+
* Format: `sessions/{session}`
|
|
1167
|
+
*
|
|
733
1168
|
* @generated from field: string parent = 1;
|
|
734
1169
|
*/
|
|
735
1170
|
parent: string;
|
|
736
1171
|
|
|
737
1172
|
/**
|
|
1173
|
+
* Optional. The maximum number of events to return.
|
|
1174
|
+
* The service may return fewer than this value.
|
|
1175
|
+
* If unspecified, at most 100 events will be returned.
|
|
1176
|
+
*
|
|
738
1177
|
* @generated from field: int32 page_size = 2;
|
|
739
1178
|
*/
|
|
740
1179
|
pageSize: number;
|
|
741
1180
|
|
|
742
1181
|
/**
|
|
1182
|
+
* Optional. A page token, received from a previous ListEvents call.
|
|
1183
|
+
* Provide this to retrieve the next page of results.
|
|
1184
|
+
*
|
|
743
1185
|
* @generated from field: string page_token = 3;
|
|
744
1186
|
*/
|
|
745
1187
|
pageToken: string;
|
|
746
1188
|
|
|
747
1189
|
/**
|
|
1190
|
+
* Optional. The standard list filter.
|
|
1191
|
+
* Supported fields:
|
|
1192
|
+
* - `timestamp` range in RFC 3339 format.
|
|
1193
|
+
*
|
|
748
1194
|
* @generated from field: string filter = 4;
|
|
749
1195
|
*/
|
|
750
1196
|
filter: string;
|
|
751
1197
|
|
|
752
1198
|
/**
|
|
1199
|
+
* Optional. A comma-separated list of fields to order by, sorted in ascending
|
|
1200
|
+
* order. Use "desc" after a field name for descending.
|
|
1201
|
+
* Supported fields:
|
|
1202
|
+
* - `timestamp`
|
|
1203
|
+
*
|
|
753
1204
|
* @generated from field: string order_by = 5;
|
|
754
1205
|
*/
|
|
755
1206
|
orderBy: string;
|
|
756
1207
|
};
|
|
757
1208
|
|
|
758
1209
|
/**
|
|
1210
|
+
* Request message for SessionService.ListEvents.
|
|
1211
|
+
*
|
|
759
1212
|
* @generated from message alis.adk.sessions.v1.ListEventsRequest
|
|
760
1213
|
*/
|
|
761
1214
|
export declare type ListEventsRequestJson = {
|
|
762
1215
|
/**
|
|
1216
|
+
* Required. The resource name of the session to list events from.
|
|
1217
|
+
* Format: `sessions/{session}`
|
|
1218
|
+
*
|
|
763
1219
|
* @generated from field: string parent = 1;
|
|
764
1220
|
*/
|
|
765
1221
|
parent?: string;
|
|
766
1222
|
|
|
767
1223
|
/**
|
|
1224
|
+
* Optional. The maximum number of events to return.
|
|
1225
|
+
* The service may return fewer than this value.
|
|
1226
|
+
* If unspecified, at most 100 events will be returned.
|
|
1227
|
+
*
|
|
768
1228
|
* @generated from field: int32 page_size = 2;
|
|
769
1229
|
*/
|
|
770
1230
|
pageSize?: number;
|
|
771
1231
|
|
|
772
1232
|
/**
|
|
1233
|
+
* Optional. A page token, received from a previous ListEvents call.
|
|
1234
|
+
* Provide this to retrieve the next page of results.
|
|
1235
|
+
*
|
|
773
1236
|
* @generated from field: string page_token = 3;
|
|
774
1237
|
*/
|
|
775
1238
|
pageToken?: string;
|
|
776
1239
|
|
|
777
1240
|
/**
|
|
1241
|
+
* Optional. The standard list filter.
|
|
1242
|
+
* Supported fields:
|
|
1243
|
+
* - `timestamp` range in RFC 3339 format.
|
|
1244
|
+
*
|
|
778
1245
|
* @generated from field: string filter = 4;
|
|
779
1246
|
*/
|
|
780
1247
|
filter?: string;
|
|
781
1248
|
|
|
782
1249
|
/**
|
|
1250
|
+
* Optional. A comma-separated list of fields to order by, sorted in ascending
|
|
1251
|
+
* order. Use "desc" after a field name for descending.
|
|
1252
|
+
* Supported fields:
|
|
1253
|
+
* - `timestamp`
|
|
1254
|
+
*
|
|
783
1255
|
* @generated from field: string order_by = 5;
|
|
784
1256
|
*/
|
|
785
1257
|
orderBy?: string;
|
|
@@ -792,30 +1264,46 @@ export declare type ListEventsRequestJson = {
|
|
|
792
1264
|
export declare const ListEventsRequestSchema: GenMessage<ListEventsRequest, {jsonType: ListEventsRequestJson}>;
|
|
793
1265
|
|
|
794
1266
|
/**
|
|
1267
|
+
* Response message for SessionService.ListEvents.
|
|
1268
|
+
*
|
|
795
1269
|
* @generated from message alis.adk.sessions.v1.ListEventsResponse
|
|
796
1270
|
*/
|
|
797
1271
|
export declare type ListEventsResponse = Message<"alis.adk.sessions.v1.ListEventsResponse"> & {
|
|
798
1272
|
/**
|
|
1273
|
+
* A list of events matching the request.
|
|
1274
|
+
*
|
|
799
1275
|
* @generated from field: repeated alis.adk.sessions.v1.SessionEvent session_events = 1;
|
|
800
1276
|
*/
|
|
801
1277
|
sessionEvents: SessionEvent[];
|
|
802
1278
|
|
|
803
1279
|
/**
|
|
1280
|
+
* A token, which can be sent as ListEventsRequest.page_token to retrieve
|
|
1281
|
+
* the next page. Absence of this field indicates there are no subsequent
|
|
1282
|
+
* pages.
|
|
1283
|
+
*
|
|
804
1284
|
* @generated from field: string next_page_token = 2;
|
|
805
1285
|
*/
|
|
806
1286
|
nextPageToken: string;
|
|
807
1287
|
};
|
|
808
1288
|
|
|
809
1289
|
/**
|
|
1290
|
+
* Response message for SessionService.ListEvents.
|
|
1291
|
+
*
|
|
810
1292
|
* @generated from message alis.adk.sessions.v1.ListEventsResponse
|
|
811
1293
|
*/
|
|
812
1294
|
export declare type ListEventsResponseJson = {
|
|
813
1295
|
/**
|
|
1296
|
+
* A list of events matching the request.
|
|
1297
|
+
*
|
|
814
1298
|
* @generated from field: repeated alis.adk.sessions.v1.SessionEvent session_events = 1;
|
|
815
1299
|
*/
|
|
816
1300
|
sessionEvents?: SessionEventJson[];
|
|
817
1301
|
|
|
818
1302
|
/**
|
|
1303
|
+
* A token, which can be sent as ListEventsRequest.page_token to retrieve
|
|
1304
|
+
* the next page. Absence of this field indicates there are no subsequent
|
|
1305
|
+
* pages.
|
|
1306
|
+
*
|
|
819
1307
|
* @generated from field: string next_page_token = 2;
|
|
820
1308
|
*/
|
|
821
1309
|
nextPageToken?: string;
|
|
@@ -828,30 +1316,44 @@ export declare type ListEventsResponseJson = {
|
|
|
828
1316
|
export declare const ListEventsResponseSchema: GenMessage<ListEventsResponse, {jsonType: ListEventsResponseJson}>;
|
|
829
1317
|
|
|
830
1318
|
/**
|
|
1319
|
+
* Request message for SessionService.AppendEvent.
|
|
1320
|
+
*
|
|
831
1321
|
* @generated from message alis.adk.sessions.v1.AppendEventRequest
|
|
832
1322
|
*/
|
|
833
1323
|
export declare type AppendEventRequest = Message<"alis.adk.sessions.v1.AppendEventRequest"> & {
|
|
834
1324
|
/**
|
|
1325
|
+
* Required. The resource name of the session to append the event to.
|
|
1326
|
+
* Format: `sessions/{session}`
|
|
1327
|
+
*
|
|
835
1328
|
* @generated from field: string name = 1;
|
|
836
1329
|
*/
|
|
837
1330
|
name: string;
|
|
838
1331
|
|
|
839
1332
|
/**
|
|
1333
|
+
* Required. The event to append.
|
|
1334
|
+
*
|
|
840
1335
|
* @generated from field: alis.adk.sessions.v1.SessionEvent event = 2;
|
|
841
1336
|
*/
|
|
842
1337
|
event?: SessionEvent | undefined;
|
|
843
1338
|
};
|
|
844
1339
|
|
|
845
1340
|
/**
|
|
1341
|
+
* Request message for SessionService.AppendEvent.
|
|
1342
|
+
*
|
|
846
1343
|
* @generated from message alis.adk.sessions.v1.AppendEventRequest
|
|
847
1344
|
*/
|
|
848
1345
|
export declare type AppendEventRequestJson = {
|
|
849
1346
|
/**
|
|
1347
|
+
* Required. The resource name of the session to append the event to.
|
|
1348
|
+
* Format: `sessions/{session}`
|
|
1349
|
+
*
|
|
850
1350
|
* @generated from field: string name = 1;
|
|
851
1351
|
*/
|
|
852
1352
|
name?: string;
|
|
853
1353
|
|
|
854
1354
|
/**
|
|
1355
|
+
* Required. The event to append.
|
|
1356
|
+
*
|
|
855
1357
|
* @generated from field: alis.adk.sessions.v1.SessionEvent event = 2;
|
|
856
1358
|
*/
|
|
857
1359
|
event?: SessionEventJson;
|
|
@@ -864,12 +1366,16 @@ export declare type AppendEventRequestJson = {
|
|
|
864
1366
|
export declare const AppendEventRequestSchema: GenMessage<AppendEventRequest, {jsonType: AppendEventRequestJson}>;
|
|
865
1367
|
|
|
866
1368
|
/**
|
|
1369
|
+
* Response message for SessionService.AppendEvent.
|
|
1370
|
+
*
|
|
867
1371
|
* @generated from message alis.adk.sessions.v1.AppendEventResponse
|
|
868
1372
|
*/
|
|
869
1373
|
export declare type AppendEventResponse = Message<"alis.adk.sessions.v1.AppendEventResponse"> & {
|
|
870
1374
|
};
|
|
871
1375
|
|
|
872
1376
|
/**
|
|
1377
|
+
* Response message for SessionService.AppendEvent.
|
|
1378
|
+
*
|
|
873
1379
|
* @generated from message alis.adk.sessions.v1.AppendEventResponse
|
|
874
1380
|
*/
|
|
875
1381
|
export declare type AppendEventResponseJson = {
|
|
@@ -882,80 +1388,130 @@ export declare type AppendEventResponseJson = {
|
|
|
882
1388
|
export declare const AppendEventResponseSchema: GenMessage<AppendEventResponse, {jsonType: AppendEventResponseJson}>;
|
|
883
1389
|
|
|
884
1390
|
/**
|
|
1391
|
+
* EventMetadata contains metadata relating to an LLM response event.
|
|
1392
|
+
*
|
|
885
1393
|
* @generated from message alis.adk.sessions.v1.EventMetadata
|
|
886
1394
|
*/
|
|
887
1395
|
export declare type EventMetadata = Message<"alis.adk.sessions.v1.EventMetadata"> & {
|
|
888
1396
|
/**
|
|
1397
|
+
* Optional. Metadata returned to client when grounding is enabled.
|
|
1398
|
+
*
|
|
889
1399
|
* @generated from field: alis.adk.sessions.v1.GroundingMetadata grounding_metadata = 1;
|
|
890
1400
|
*/
|
|
891
1401
|
groundingMetadata?: GroundingMetadata | undefined;
|
|
892
1402
|
|
|
893
1403
|
/**
|
|
1404
|
+
* Optional. Indicates whether the text content is part of an unfinished text
|
|
1405
|
+
* stream. Only used for streaming mode and when the content is plain text.
|
|
1406
|
+
*
|
|
894
1407
|
* @generated from field: bool partial = 2;
|
|
895
1408
|
*/
|
|
896
1409
|
partial: boolean;
|
|
897
1410
|
|
|
898
1411
|
/**
|
|
1412
|
+
* Optional. Indicates whether the response from the model is complete.
|
|
1413
|
+
* Only used for streaming mode.
|
|
1414
|
+
*
|
|
899
1415
|
* @generated from field: bool turn_complete = 3;
|
|
900
1416
|
*/
|
|
901
1417
|
turnComplete: boolean;
|
|
902
1418
|
|
|
903
1419
|
/**
|
|
1420
|
+
* Optional. Flag indicating that LLM was interrupted when generating the
|
|
1421
|
+
* content. Usually due to user interruption during bidirectional streaming.
|
|
1422
|
+
*
|
|
904
1423
|
* @generated from field: bool interrupted = 4;
|
|
905
1424
|
*/
|
|
906
1425
|
interrupted: boolean;
|
|
907
1426
|
|
|
908
1427
|
/**
|
|
1428
|
+
* Optional. Set of IDs of the long-running function calls.
|
|
1429
|
+
* Agent client will know from this field which function call is long-running.
|
|
1430
|
+
* Only valid for function call events.
|
|
1431
|
+
*
|
|
909
1432
|
* @generated from field: repeated string long_running_tool_ids = 5;
|
|
910
1433
|
*/
|
|
911
1434
|
longRunningToolIds: string[];
|
|
912
1435
|
|
|
913
1436
|
/**
|
|
1437
|
+
* Optional. The branch of the event.
|
|
1438
|
+
* The format is like `agent_1.agent_2.agent_3`, where agent_1 is the parent
|
|
1439
|
+
* of agent_2, and agent_2 is the parent of agent_3.
|
|
1440
|
+
* Branch is used when multiple child agents shouldn't see their siblings'
|
|
1441
|
+
* conversation history.
|
|
1442
|
+
*
|
|
914
1443
|
* @generated from field: string branch = 6;
|
|
915
1444
|
*/
|
|
916
1445
|
branch: string;
|
|
917
1446
|
|
|
918
1447
|
/**
|
|
1448
|
+
* Optional. Custom metadata of the LLM response.
|
|
1449
|
+
*
|
|
919
1450
|
* @generated from field: google.protobuf.Struct custom_metadata = 7;
|
|
920
1451
|
*/
|
|
921
1452
|
customMetadata?: JsonObject | undefined;
|
|
922
1453
|
};
|
|
923
1454
|
|
|
924
1455
|
/**
|
|
1456
|
+
* EventMetadata contains metadata relating to an LLM response event.
|
|
1457
|
+
*
|
|
925
1458
|
* @generated from message alis.adk.sessions.v1.EventMetadata
|
|
926
1459
|
*/
|
|
927
1460
|
export declare type EventMetadataJson = {
|
|
928
1461
|
/**
|
|
1462
|
+
* Optional. Metadata returned to client when grounding is enabled.
|
|
1463
|
+
*
|
|
929
1464
|
* @generated from field: alis.adk.sessions.v1.GroundingMetadata grounding_metadata = 1;
|
|
930
1465
|
*/
|
|
931
1466
|
groundingMetadata?: GroundingMetadataJson;
|
|
932
1467
|
|
|
933
1468
|
/**
|
|
1469
|
+
* Optional. Indicates whether the text content is part of an unfinished text
|
|
1470
|
+
* stream. Only used for streaming mode and when the content is plain text.
|
|
1471
|
+
*
|
|
934
1472
|
* @generated from field: bool partial = 2;
|
|
935
1473
|
*/
|
|
936
1474
|
partial?: boolean;
|
|
937
1475
|
|
|
938
1476
|
/**
|
|
1477
|
+
* Optional. Indicates whether the response from the model is complete.
|
|
1478
|
+
* Only used for streaming mode.
|
|
1479
|
+
*
|
|
939
1480
|
* @generated from field: bool turn_complete = 3;
|
|
940
1481
|
*/
|
|
941
1482
|
turnComplete?: boolean;
|
|
942
1483
|
|
|
943
1484
|
/**
|
|
1485
|
+
* Optional. Flag indicating that LLM was interrupted when generating the
|
|
1486
|
+
* content. Usually due to user interruption during bidirectional streaming.
|
|
1487
|
+
*
|
|
944
1488
|
* @generated from field: bool interrupted = 4;
|
|
945
1489
|
*/
|
|
946
1490
|
interrupted?: boolean;
|
|
947
1491
|
|
|
948
1492
|
/**
|
|
1493
|
+
* Optional. Set of IDs of the long-running function calls.
|
|
1494
|
+
* Agent client will know from this field which function call is long-running.
|
|
1495
|
+
* Only valid for function call events.
|
|
1496
|
+
*
|
|
949
1497
|
* @generated from field: repeated string long_running_tool_ids = 5;
|
|
950
1498
|
*/
|
|
951
1499
|
longRunningToolIds?: string[];
|
|
952
1500
|
|
|
953
1501
|
/**
|
|
1502
|
+
* Optional. The branch of the event.
|
|
1503
|
+
* The format is like `agent_1.agent_2.agent_3`, where agent_1 is the parent
|
|
1504
|
+
* of agent_2, and agent_2 is the parent of agent_3.
|
|
1505
|
+
* Branch is used when multiple child agents shouldn't see their siblings'
|
|
1506
|
+
* conversation history.
|
|
1507
|
+
*
|
|
954
1508
|
* @generated from field: string branch = 6;
|
|
955
1509
|
*/
|
|
956
1510
|
branch?: string;
|
|
957
1511
|
|
|
958
1512
|
/**
|
|
1513
|
+
* Optional. Custom metadata of the LLM response.
|
|
1514
|
+
*
|
|
959
1515
|
* @generated from field: google.protobuf.Struct custom_metadata = 7;
|
|
960
1516
|
*/
|
|
961
1517
|
customMetadata?: StructJson;
|
|
@@ -968,73 +1524,135 @@ export declare type EventMetadataJson = {
|
|
|
968
1524
|
export declare const EventMetadataSchema: GenMessage<EventMetadata, {jsonType: EventMetadataJson}>;
|
|
969
1525
|
|
|
970
1526
|
/**
|
|
1527
|
+
* EventActions represent actions executed by the agent as part of an event.
|
|
1528
|
+
*
|
|
971
1529
|
* @generated from message alis.adk.sessions.v1.EventActions
|
|
972
1530
|
*/
|
|
973
1531
|
export declare type EventActions = Message<"alis.adk.sessions.v1.EventActions"> & {
|
|
974
1532
|
/**
|
|
1533
|
+
* Optional. If true, the model will not summarize the function response.
|
|
1534
|
+
* Only used for function_response events.
|
|
1535
|
+
*
|
|
975
1536
|
* @generated from field: bool skip_summarization = 1;
|
|
976
1537
|
*/
|
|
977
1538
|
skipSummarization: boolean;
|
|
978
1539
|
|
|
979
1540
|
/**
|
|
1541
|
+
* Optional. Indicates that the event is updating the state with the given
|
|
1542
|
+
* delta. The delta contains key-value pairs representing state changes.
|
|
1543
|
+
*
|
|
980
1544
|
* @generated from field: google.protobuf.Struct state_delta = 2;
|
|
981
1545
|
*/
|
|
982
1546
|
stateDelta?: JsonObject | undefined;
|
|
983
1547
|
|
|
984
1548
|
/**
|
|
1549
|
+
* Optional. Indicates that the event is updating artifacts.
|
|
1550
|
+
* Key is the filename, value is the version number.
|
|
1551
|
+
*
|
|
985
1552
|
* @generated from field: map<string, int64> artifact_delta = 3;
|
|
986
1553
|
*/
|
|
987
1554
|
artifactDelta: { [key: string]: bigint };
|
|
988
1555
|
|
|
989
1556
|
/**
|
|
1557
|
+
* Optional. The agent is escalating to a higher level agent.
|
|
1558
|
+
*
|
|
990
1559
|
* @generated from field: bool escalate = 6;
|
|
991
1560
|
*/
|
|
992
1561
|
escalate: boolean;
|
|
993
1562
|
|
|
994
1563
|
/**
|
|
1564
|
+
* Optional. Will only be set by a tool response indicating tool request
|
|
1565
|
+
* authentication configuration.
|
|
1566
|
+
* Map key is the function call ID since one function call response (from
|
|
1567
|
+
* model) could correspond to multiple function calls.
|
|
1568
|
+
* Map value is the required auth config, which can be another struct.
|
|
1569
|
+
*
|
|
995
1570
|
* @generated from field: map<string, alis.adk.sessions.v1.ToolConfirmation> requested_tool_confirmations = 7;
|
|
996
1571
|
*/
|
|
997
1572
|
requestedToolConfirmations: { [key: string]: ToolConfirmation };
|
|
998
1573
|
|
|
999
1574
|
/**
|
|
1575
|
+
* Optional. If set, the event transfers control to the specified agent.
|
|
1576
|
+
*
|
|
1000
1577
|
* @generated from field: string transfer_agent = 8;
|
|
1001
1578
|
*/
|
|
1002
1579
|
transferAgent: string;
|
|
1580
|
+
|
|
1581
|
+
/**
|
|
1582
|
+
* Optional. When set, marks this event as a context-compaction summary
|
|
1583
|
+
* standing in for a contiguous range of earlier events. Written by the
|
|
1584
|
+
* framework; prompt assembly drops the covered events and shows the
|
|
1585
|
+
* compacted content in their place.
|
|
1586
|
+
*
|
|
1587
|
+
* @generated from field: alis.adk.sessions.v1.EventCompaction compaction = 9;
|
|
1588
|
+
*/
|
|
1589
|
+
compaction?: EventCompaction | undefined;
|
|
1003
1590
|
};
|
|
1004
1591
|
|
|
1005
1592
|
/**
|
|
1593
|
+
* EventActions represent actions executed by the agent as part of an event.
|
|
1594
|
+
*
|
|
1006
1595
|
* @generated from message alis.adk.sessions.v1.EventActions
|
|
1007
1596
|
*/
|
|
1008
1597
|
export declare type EventActionsJson = {
|
|
1009
1598
|
/**
|
|
1599
|
+
* Optional. If true, the model will not summarize the function response.
|
|
1600
|
+
* Only used for function_response events.
|
|
1601
|
+
*
|
|
1010
1602
|
* @generated from field: bool skip_summarization = 1;
|
|
1011
1603
|
*/
|
|
1012
1604
|
skipSummarization?: boolean;
|
|
1013
1605
|
|
|
1014
1606
|
/**
|
|
1607
|
+
* Optional. Indicates that the event is updating the state with the given
|
|
1608
|
+
* delta. The delta contains key-value pairs representing state changes.
|
|
1609
|
+
*
|
|
1015
1610
|
* @generated from field: google.protobuf.Struct state_delta = 2;
|
|
1016
1611
|
*/
|
|
1017
1612
|
stateDelta?: StructJson;
|
|
1018
1613
|
|
|
1019
1614
|
/**
|
|
1615
|
+
* Optional. Indicates that the event is updating artifacts.
|
|
1616
|
+
* Key is the filename, value is the version number.
|
|
1617
|
+
*
|
|
1020
1618
|
* @generated from field: map<string, int64> artifact_delta = 3;
|
|
1021
1619
|
*/
|
|
1022
1620
|
artifactDelta?: { [key: string]: string };
|
|
1023
1621
|
|
|
1024
1622
|
/**
|
|
1623
|
+
* Optional. The agent is escalating to a higher level agent.
|
|
1624
|
+
*
|
|
1025
1625
|
* @generated from field: bool escalate = 6;
|
|
1026
1626
|
*/
|
|
1027
1627
|
escalate?: boolean;
|
|
1028
1628
|
|
|
1029
1629
|
/**
|
|
1630
|
+
* Optional. Will only be set by a tool response indicating tool request
|
|
1631
|
+
* authentication configuration.
|
|
1632
|
+
* Map key is the function call ID since one function call response (from
|
|
1633
|
+
* model) could correspond to multiple function calls.
|
|
1634
|
+
* Map value is the required auth config, which can be another struct.
|
|
1635
|
+
*
|
|
1030
1636
|
* @generated from field: map<string, alis.adk.sessions.v1.ToolConfirmation> requested_tool_confirmations = 7;
|
|
1031
1637
|
*/
|
|
1032
1638
|
requestedToolConfirmations?: { [key: string]: ToolConfirmationJson };
|
|
1033
1639
|
|
|
1034
1640
|
/**
|
|
1641
|
+
* Optional. If set, the event transfers control to the specified agent.
|
|
1642
|
+
*
|
|
1035
1643
|
* @generated from field: string transfer_agent = 8;
|
|
1036
1644
|
*/
|
|
1037
1645
|
transferAgent?: string;
|
|
1646
|
+
|
|
1647
|
+
/**
|
|
1648
|
+
* Optional. When set, marks this event as a context-compaction summary
|
|
1649
|
+
* standing in for a contiguous range of earlier events. Written by the
|
|
1650
|
+
* framework; prompt assembly drops the covered events and shows the
|
|
1651
|
+
* compacted content in their place.
|
|
1652
|
+
*
|
|
1653
|
+
* @generated from field: alis.adk.sessions.v1.EventCompaction compaction = 9;
|
|
1654
|
+
*/
|
|
1655
|
+
compaction?: EventCompactionJson;
|
|
1038
1656
|
};
|
|
1039
1657
|
|
|
1040
1658
|
/**
|
|
@@ -1044,30 +1662,366 @@ export declare type EventActionsJson = {
|
|
|
1044
1662
|
export declare const EventActionsSchema: GenMessage<EventActions, {jsonType: EventActionsJson}>;
|
|
1045
1663
|
|
|
1046
1664
|
/**
|
|
1665
|
+
* EventCompaction records that a contiguous range of session events has been
|
|
1666
|
+
* replaced by a single piece of compacted content, typically a
|
|
1667
|
+
* model-generated summary. The covered events are left untouched in the
|
|
1668
|
+
* session; prompt assembly skips them and inserts compacted_content instead.
|
|
1669
|
+
*
|
|
1670
|
+
* @generated from message alis.adk.sessions.v1.EventCompaction
|
|
1671
|
+
*/
|
|
1672
|
+
export declare type EventCompaction = Message<"alis.adk.sessions.v1.EventCompaction"> & {
|
|
1673
|
+
/**
|
|
1674
|
+
* Required. Timestamp of the earliest covered event (inclusive).
|
|
1675
|
+
*
|
|
1676
|
+
* @generated from field: google.protobuf.Timestamp start_timestamp = 1;
|
|
1677
|
+
*/
|
|
1678
|
+
startTimestamp?: Timestamp | undefined;
|
|
1679
|
+
|
|
1680
|
+
/**
|
|
1681
|
+
* Required. Timestamp of the latest covered event (inclusive). Never before
|
|
1682
|
+
* start_timestamp.
|
|
1683
|
+
*
|
|
1684
|
+
* @generated from field: google.protobuf.Timestamp end_timestamp = 2;
|
|
1685
|
+
*/
|
|
1686
|
+
endTimestamp?: Timestamp | undefined;
|
|
1687
|
+
|
|
1688
|
+
/**
|
|
1689
|
+
* Required. The content that replaces the covered events in the prompt.
|
|
1690
|
+
*
|
|
1691
|
+
* @generated from field: alis.adk.sessions.v1.Content compacted_content = 3;
|
|
1692
|
+
*/
|
|
1693
|
+
compactedContent?: Content | undefined;
|
|
1694
|
+
|
|
1695
|
+
/**
|
|
1696
|
+
* Optional. Events inside the range that this summary does NOT stand in
|
|
1697
|
+
* for. Everything else in the range is covered. Keyed on invocation and
|
|
1698
|
+
* timestamp rather than event ID because event IDs do not survive every
|
|
1699
|
+
* storage backend. Timestamps must be stored at full precision: a
|
|
1700
|
+
* reference that stops matching its event is read as no hole at all.
|
|
1701
|
+
*
|
|
1702
|
+
* @generated from field: repeated alis.adk.sessions.v1.EventRef excluded_events = 4;
|
|
1703
|
+
*/
|
|
1704
|
+
excludedEvents: EventRef[];
|
|
1705
|
+
};
|
|
1706
|
+
|
|
1707
|
+
/**
|
|
1708
|
+
* EventCompaction records that a contiguous range of session events has been
|
|
1709
|
+
* replaced by a single piece of compacted content, typically a
|
|
1710
|
+
* model-generated summary. The covered events are left untouched in the
|
|
1711
|
+
* session; prompt assembly skips them and inserts compacted_content instead.
|
|
1712
|
+
*
|
|
1713
|
+
* @generated from message alis.adk.sessions.v1.EventCompaction
|
|
1714
|
+
*/
|
|
1715
|
+
export declare type EventCompactionJson = {
|
|
1716
|
+
/**
|
|
1717
|
+
* Required. Timestamp of the earliest covered event (inclusive).
|
|
1718
|
+
*
|
|
1719
|
+
* @generated from field: google.protobuf.Timestamp start_timestamp = 1;
|
|
1720
|
+
*/
|
|
1721
|
+
startTimestamp?: TimestampJson;
|
|
1722
|
+
|
|
1723
|
+
/**
|
|
1724
|
+
* Required. Timestamp of the latest covered event (inclusive). Never before
|
|
1725
|
+
* start_timestamp.
|
|
1726
|
+
*
|
|
1727
|
+
* @generated from field: google.protobuf.Timestamp end_timestamp = 2;
|
|
1728
|
+
*/
|
|
1729
|
+
endTimestamp?: TimestampJson;
|
|
1730
|
+
|
|
1731
|
+
/**
|
|
1732
|
+
* Required. The content that replaces the covered events in the prompt.
|
|
1733
|
+
*
|
|
1734
|
+
* @generated from field: alis.adk.sessions.v1.Content compacted_content = 3;
|
|
1735
|
+
*/
|
|
1736
|
+
compactedContent?: ContentJson;
|
|
1737
|
+
|
|
1738
|
+
/**
|
|
1739
|
+
* Optional. Events inside the range that this summary does NOT stand in
|
|
1740
|
+
* for. Everything else in the range is covered. Keyed on invocation and
|
|
1741
|
+
* timestamp rather than event ID because event IDs do not survive every
|
|
1742
|
+
* storage backend. Timestamps must be stored at full precision: a
|
|
1743
|
+
* reference that stops matching its event is read as no hole at all.
|
|
1744
|
+
*
|
|
1745
|
+
* @generated from field: repeated alis.adk.sessions.v1.EventRef excluded_events = 4;
|
|
1746
|
+
*/
|
|
1747
|
+
excludedEvents?: EventRefJson[];
|
|
1748
|
+
};
|
|
1749
|
+
|
|
1750
|
+
/**
|
|
1751
|
+
* Describes the message alis.adk.sessions.v1.EventCompaction.
|
|
1752
|
+
* Use `create(EventCompactionSchema)` to create a new message.
|
|
1753
|
+
*/
|
|
1754
|
+
export declare const EventCompactionSchema: GenMessage<EventCompaction, {jsonType: EventCompactionJson}>;
|
|
1755
|
+
|
|
1756
|
+
/**
|
|
1757
|
+
* EventRef identifies a stored event by fields that survive a storage round
|
|
1758
|
+
* trip. The pair is not guaranteed unique: two events of one invocation can
|
|
1759
|
+
* share a timestamp, and a reference then names both.
|
|
1760
|
+
*
|
|
1761
|
+
* @generated from message alis.adk.sessions.v1.EventRef
|
|
1762
|
+
*/
|
|
1763
|
+
export declare type EventRef = Message<"alis.adk.sessions.v1.EventRef"> & {
|
|
1764
|
+
/**
|
|
1765
|
+
* Required. The invocation ID of the referenced event.
|
|
1766
|
+
*
|
|
1767
|
+
* @generated from field: string invocation_id = 1;
|
|
1768
|
+
*/
|
|
1769
|
+
invocationId: string;
|
|
1770
|
+
|
|
1771
|
+
/**
|
|
1772
|
+
* Required. The timestamp of the referenced event.
|
|
1773
|
+
*
|
|
1774
|
+
* @generated from field: google.protobuf.Timestamp timestamp = 2;
|
|
1775
|
+
*/
|
|
1776
|
+
timestamp?: Timestamp | undefined;
|
|
1777
|
+
};
|
|
1778
|
+
|
|
1779
|
+
/**
|
|
1780
|
+
* EventRef identifies a stored event by fields that survive a storage round
|
|
1781
|
+
* trip. The pair is not guaranteed unique: two events of one invocation can
|
|
1782
|
+
* share a timestamp, and a reference then names both.
|
|
1783
|
+
*
|
|
1784
|
+
* @generated from message alis.adk.sessions.v1.EventRef
|
|
1785
|
+
*/
|
|
1786
|
+
export declare type EventRefJson = {
|
|
1787
|
+
/**
|
|
1788
|
+
* Required. The invocation ID of the referenced event.
|
|
1789
|
+
*
|
|
1790
|
+
* @generated from field: string invocation_id = 1;
|
|
1791
|
+
*/
|
|
1792
|
+
invocationId?: string;
|
|
1793
|
+
|
|
1794
|
+
/**
|
|
1795
|
+
* Required. The timestamp of the referenced event.
|
|
1796
|
+
*
|
|
1797
|
+
* @generated from field: google.protobuf.Timestamp timestamp = 2;
|
|
1798
|
+
*/
|
|
1799
|
+
timestamp?: TimestampJson;
|
|
1800
|
+
};
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* Describes the message alis.adk.sessions.v1.EventRef.
|
|
1804
|
+
* Use `create(EventRefSchema)` to create a new message.
|
|
1805
|
+
*/
|
|
1806
|
+
export declare const EventRefSchema: GenMessage<EventRef, {jsonType: EventRefJson}>;
|
|
1807
|
+
|
|
1808
|
+
/**
|
|
1809
|
+
* RequestInput describes a single human-in-the-loop prompt emitted by a
|
|
1810
|
+
* workflow node. It travels on SessionEvent.requested_input from the node,
|
|
1811
|
+
* through the scheduler, out to the UI surface; the matching response is
|
|
1812
|
+
* routed back by interrupt_id.
|
|
1813
|
+
*
|
|
1814
|
+
* @generated from message alis.adk.sessions.v1.RequestInput
|
|
1815
|
+
*/
|
|
1816
|
+
export declare type RequestInput = Message<"alis.adk.sessions.v1.RequestInput"> & {
|
|
1817
|
+
/**
|
|
1818
|
+
* Required. Correlates this request with the response that resumes it.
|
|
1819
|
+
*
|
|
1820
|
+
* @generated from field: string interrupt_id = 1;
|
|
1821
|
+
*/
|
|
1822
|
+
interruptId: string;
|
|
1823
|
+
|
|
1824
|
+
/**
|
|
1825
|
+
* Optional. Human-readable description of what is being asked. Surfaced in
|
|
1826
|
+
* UI as the prompt text.
|
|
1827
|
+
*
|
|
1828
|
+
* @generated from field: string message = 2;
|
|
1829
|
+
*/
|
|
1830
|
+
message: string;
|
|
1831
|
+
|
|
1832
|
+
/**
|
|
1833
|
+
* Optional. JSON schema the user's response payload must conform to,
|
|
1834
|
+
* encoded as its JSON object form.
|
|
1835
|
+
*
|
|
1836
|
+
* @generated from field: google.protobuf.Struct response_schema = 3;
|
|
1837
|
+
*/
|
|
1838
|
+
responseSchema?: JsonObject | undefined;
|
|
1839
|
+
|
|
1840
|
+
/**
|
|
1841
|
+
* Optional. Context the UI may render alongside the prompt (e.g. the
|
|
1842
|
+
* document to approve). Carried through opaquely as a JSON value.
|
|
1843
|
+
*
|
|
1844
|
+
* @generated from field: google.protobuf.Value payload = 4;
|
|
1845
|
+
*/
|
|
1846
|
+
payload?: Value | undefined;
|
|
1847
|
+
};
|
|
1848
|
+
|
|
1849
|
+
/**
|
|
1850
|
+
* RequestInput describes a single human-in-the-loop prompt emitted by a
|
|
1851
|
+
* workflow node. It travels on SessionEvent.requested_input from the node,
|
|
1852
|
+
* through the scheduler, out to the UI surface; the matching response is
|
|
1853
|
+
* routed back by interrupt_id.
|
|
1854
|
+
*
|
|
1855
|
+
* @generated from message alis.adk.sessions.v1.RequestInput
|
|
1856
|
+
*/
|
|
1857
|
+
export declare type RequestInputJson = {
|
|
1858
|
+
/**
|
|
1859
|
+
* Required. Correlates this request with the response that resumes it.
|
|
1860
|
+
*
|
|
1861
|
+
* @generated from field: string interrupt_id = 1;
|
|
1862
|
+
*/
|
|
1863
|
+
interruptId?: string;
|
|
1864
|
+
|
|
1865
|
+
/**
|
|
1866
|
+
* Optional. Human-readable description of what is being asked. Surfaced in
|
|
1867
|
+
* UI as the prompt text.
|
|
1868
|
+
*
|
|
1869
|
+
* @generated from field: string message = 2;
|
|
1870
|
+
*/
|
|
1871
|
+
message?: string;
|
|
1872
|
+
|
|
1873
|
+
/**
|
|
1874
|
+
* Optional. JSON schema the user's response payload must conform to,
|
|
1875
|
+
* encoded as its JSON object form.
|
|
1876
|
+
*
|
|
1877
|
+
* @generated from field: google.protobuf.Struct response_schema = 3;
|
|
1878
|
+
*/
|
|
1879
|
+
responseSchema?: StructJson;
|
|
1880
|
+
|
|
1881
|
+
/**
|
|
1882
|
+
* Optional. Context the UI may render alongside the prompt (e.g. the
|
|
1883
|
+
* document to approve). Carried through opaquely as a JSON value.
|
|
1884
|
+
*
|
|
1885
|
+
* @generated from field: google.protobuf.Value payload = 4;
|
|
1886
|
+
*/
|
|
1887
|
+
payload?: ValueJson;
|
|
1888
|
+
};
|
|
1889
|
+
|
|
1890
|
+
/**
|
|
1891
|
+
* Describes the message alis.adk.sessions.v1.RequestInput.
|
|
1892
|
+
* Use `create(RequestInputSchema)` to create a new message.
|
|
1893
|
+
*/
|
|
1894
|
+
export declare const RequestInputSchema: GenMessage<RequestInput, {jsonType: RequestInputJson}>;
|
|
1895
|
+
|
|
1896
|
+
/**
|
|
1897
|
+
* NodeInfo carries the per-event metadata identifying which node in a
|
|
1898
|
+
* workflow activation emitted it. Absent for non-workflow events.
|
|
1899
|
+
*
|
|
1900
|
+
* @generated from message alis.adk.sessions.v1.NodeInfo
|
|
1901
|
+
*/
|
|
1902
|
+
export declare type NodeInfo = Message<"alis.adk.sessions.v1.NodeInfo"> & {
|
|
1903
|
+
/**
|
|
1904
|
+
* Optional. Composite path of the emitting node within its workflow
|
|
1905
|
+
* activation. Empty for top-level static nodes;
|
|
1906
|
+
* "<parent_path>/<child_name>@<run_id>" for dynamic children.
|
|
1907
|
+
*
|
|
1908
|
+
* @generated from field: string path = 1;
|
|
1909
|
+
*/
|
|
1910
|
+
path: string;
|
|
1911
|
+
|
|
1912
|
+
/**
|
|
1913
|
+
* Optional. Marks that this event's content IS the node's output: when set
|
|
1914
|
+
* and output is unset, readers derive the node output from the event's
|
|
1915
|
+
* model text.
|
|
1916
|
+
*
|
|
1917
|
+
* @generated from field: bool message_as_output = 2;
|
|
1918
|
+
*/
|
|
1919
|
+
messageAsOutput: boolean;
|
|
1920
|
+
|
|
1921
|
+
/**
|
|
1922
|
+
* Optional. Node paths this event's output counts for: the emitter plus any
|
|
1923
|
+
* delegating ancestors, so one event stands in for a whole delegation chain.
|
|
1924
|
+
*
|
|
1925
|
+
* @generated from field: repeated string output_for = 3;
|
|
1926
|
+
*/
|
|
1927
|
+
outputFor: string[];
|
|
1928
|
+
};
|
|
1929
|
+
|
|
1930
|
+
/**
|
|
1931
|
+
* NodeInfo carries the per-event metadata identifying which node in a
|
|
1932
|
+
* workflow activation emitted it. Absent for non-workflow events.
|
|
1933
|
+
*
|
|
1934
|
+
* @generated from message alis.adk.sessions.v1.NodeInfo
|
|
1935
|
+
*/
|
|
1936
|
+
export declare type NodeInfoJson = {
|
|
1937
|
+
/**
|
|
1938
|
+
* Optional. Composite path of the emitting node within its workflow
|
|
1939
|
+
* activation. Empty for top-level static nodes;
|
|
1940
|
+
* "<parent_path>/<child_name>@<run_id>" for dynamic children.
|
|
1941
|
+
*
|
|
1942
|
+
* @generated from field: string path = 1;
|
|
1943
|
+
*/
|
|
1944
|
+
path?: string;
|
|
1945
|
+
|
|
1946
|
+
/**
|
|
1947
|
+
* Optional. Marks that this event's content IS the node's output: when set
|
|
1948
|
+
* and output is unset, readers derive the node output from the event's
|
|
1949
|
+
* model text.
|
|
1950
|
+
*
|
|
1951
|
+
* @generated from field: bool message_as_output = 2;
|
|
1952
|
+
*/
|
|
1953
|
+
messageAsOutput?: boolean;
|
|
1954
|
+
|
|
1955
|
+
/**
|
|
1956
|
+
* Optional. Node paths this event's output counts for: the emitter plus any
|
|
1957
|
+
* delegating ancestors, so one event stands in for a whole delegation chain.
|
|
1958
|
+
*
|
|
1959
|
+
* @generated from field: repeated string output_for = 3;
|
|
1960
|
+
*/
|
|
1961
|
+
outputFor?: string[];
|
|
1962
|
+
};
|
|
1963
|
+
|
|
1964
|
+
/**
|
|
1965
|
+
* Describes the message alis.adk.sessions.v1.NodeInfo.
|
|
1966
|
+
* Use `create(NodeInfoSchema)` to create a new message.
|
|
1967
|
+
*/
|
|
1968
|
+
export declare const NodeInfoSchema: GenMessage<NodeInfo, {jsonType: NodeInfoJson}>;
|
|
1969
|
+
|
|
1970
|
+
/**
|
|
1971
|
+
* Content represents the base structured datatype containing multi-part content
|
|
1972
|
+
* of a message.
|
|
1973
|
+
*
|
|
1974
|
+
* A Content includes a role field designating the producer of the Content
|
|
1975
|
+
* and a parts field containing multi-part data that contains the content of
|
|
1976
|
+
* the message turn.
|
|
1977
|
+
*
|
|
1047
1978
|
* @generated from message alis.adk.sessions.v1.Content
|
|
1048
1979
|
*/
|
|
1049
1980
|
export declare type Content = Message<"alis.adk.sessions.v1.Content"> & {
|
|
1050
1981
|
/**
|
|
1982
|
+
* Optional. The producer of the content. Must be either 'user' or 'model'.
|
|
1983
|
+
*
|
|
1984
|
+
* Useful to set for multi-turn conversations, otherwise can be left blank
|
|
1985
|
+
* or unset.
|
|
1986
|
+
*
|
|
1051
1987
|
* @generated from field: string role = 1;
|
|
1052
1988
|
*/
|
|
1053
1989
|
role: string;
|
|
1054
1990
|
|
|
1055
1991
|
/**
|
|
1992
|
+
* Required. Ordered Parts that constitute a single message.
|
|
1993
|
+
* Parts may have different IANA MIME types.
|
|
1994
|
+
*
|
|
1056
1995
|
* @generated from field: repeated alis.adk.sessions.v1.Part parts = 2;
|
|
1057
1996
|
*/
|
|
1058
1997
|
parts: Part[];
|
|
1059
1998
|
};
|
|
1060
1999
|
|
|
1061
2000
|
/**
|
|
2001
|
+
* Content represents the base structured datatype containing multi-part content
|
|
2002
|
+
* of a message.
|
|
2003
|
+
*
|
|
2004
|
+
* A Content includes a role field designating the producer of the Content
|
|
2005
|
+
* and a parts field containing multi-part data that contains the content of
|
|
2006
|
+
* the message turn.
|
|
2007
|
+
*
|
|
1062
2008
|
* @generated from message alis.adk.sessions.v1.Content
|
|
1063
2009
|
*/
|
|
1064
2010
|
export declare type ContentJson = {
|
|
1065
2011
|
/**
|
|
2012
|
+
* Optional. The producer of the content. Must be either 'user' or 'model'.
|
|
2013
|
+
*
|
|
2014
|
+
* Useful to set for multi-turn conversations, otherwise can be left blank
|
|
2015
|
+
* or unset.
|
|
2016
|
+
*
|
|
1066
2017
|
* @generated from field: string role = 1;
|
|
1067
2018
|
*/
|
|
1068
2019
|
role?: string;
|
|
1069
2020
|
|
|
1070
2021
|
/**
|
|
2022
|
+
* Required. Ordered Parts that constitute a single message.
|
|
2023
|
+
* Parts may have different IANA MIME types.
|
|
2024
|
+
*
|
|
1071
2025
|
* @generated from field: repeated alis.adk.sessions.v1.Part parts = 2;
|
|
1072
2026
|
*/
|
|
1073
2027
|
parts?: PartJson[];
|
|
@@ -1080,6 +2034,15 @@ export declare type ContentJson = {
|
|
|
1080
2034
|
export declare const ContentSchema: GenMessage<Content, {jsonType: ContentJson}>;
|
|
1081
2035
|
|
|
1082
2036
|
/**
|
|
2037
|
+
* Part represents a datatype containing media that is part of a multi-part
|
|
2038
|
+
* Content message.
|
|
2039
|
+
*
|
|
2040
|
+
* A Part consists of data which has an associated datatype. A Part can only
|
|
2041
|
+
* contain one of the accepted types in Part.data.
|
|
2042
|
+
*
|
|
2043
|
+
* A Part must have a fixed IANA MIME type identifying the type and subtype
|
|
2044
|
+
* of the media if inline_data or file_data field is filled with raw bytes.
|
|
2045
|
+
*
|
|
1083
2046
|
* @generated from message alis.adk.sessions.v1.Part
|
|
1084
2047
|
*/
|
|
1085
2048
|
export declare type Part = Message<"alis.adk.sessions.v1.Part"> & {
|
|
@@ -1088,42 +2051,61 @@ export declare type Part = Message<"alis.adk.sessions.v1.Part"> & {
|
|
|
1088
2051
|
*/
|
|
1089
2052
|
data: {
|
|
1090
2053
|
/**
|
|
2054
|
+
* Optional. Text part (can be code).
|
|
2055
|
+
*
|
|
1091
2056
|
* @generated from field: string text = 1;
|
|
1092
2057
|
*/
|
|
1093
2058
|
value: string;
|
|
1094
2059
|
case: "text";
|
|
1095
2060
|
} | {
|
|
1096
2061
|
/**
|
|
2062
|
+
* Optional. Inlined bytes data.
|
|
2063
|
+
*
|
|
1097
2064
|
* @generated from field: alis.adk.sessions.v1.Blob inline_data = 2;
|
|
1098
2065
|
*/
|
|
1099
2066
|
value: Blob;
|
|
1100
2067
|
case: "inlineData";
|
|
1101
2068
|
} | {
|
|
1102
2069
|
/**
|
|
2070
|
+
* Optional. URI-based data.
|
|
2071
|
+
*
|
|
1103
2072
|
* @generated from field: alis.adk.sessions.v1.FileData file_data = 3;
|
|
1104
2073
|
*/
|
|
1105
2074
|
value: FileData;
|
|
1106
2075
|
case: "fileData";
|
|
1107
2076
|
} | {
|
|
1108
2077
|
/**
|
|
2078
|
+
* Optional. A predicted FunctionCall returned from the model that
|
|
2079
|
+
* contains a string representing the FunctionDeclaration.name with the
|
|
2080
|
+
* parameters and their values.
|
|
2081
|
+
*
|
|
1109
2082
|
* @generated from field: alis.adk.sessions.v1.FunctionCall function_call = 5;
|
|
1110
2083
|
*/
|
|
1111
2084
|
value: FunctionCall;
|
|
1112
2085
|
case: "functionCall";
|
|
1113
2086
|
} | {
|
|
1114
2087
|
/**
|
|
2088
|
+
* Optional. The result output of a FunctionCall that contains a string
|
|
2089
|
+
* representing the FunctionDeclaration.name and a structured JSON object
|
|
2090
|
+
* containing any output from the function call. It is used as context to
|
|
2091
|
+
* the model.
|
|
2092
|
+
*
|
|
1115
2093
|
* @generated from field: alis.adk.sessions.v1.FunctionResponse function_response = 6;
|
|
1116
2094
|
*/
|
|
1117
2095
|
value: FunctionResponse;
|
|
1118
2096
|
case: "functionResponse";
|
|
1119
2097
|
} | {
|
|
1120
2098
|
/**
|
|
2099
|
+
* Optional. Code generated by the model that is meant to be executed.
|
|
2100
|
+
*
|
|
1121
2101
|
* @generated from field: alis.adk.sessions.v1.ExecutableCode executable_code = 8;
|
|
1122
2102
|
*/
|
|
1123
2103
|
value: ExecutableCode;
|
|
1124
2104
|
case: "executableCode";
|
|
1125
2105
|
} | {
|
|
1126
2106
|
/**
|
|
2107
|
+
* Optional. Result of executing the ExecutableCode.
|
|
2108
|
+
*
|
|
1127
2109
|
* @generated from field: alis.adk.sessions.v1.CodeExecutionResult code_execution_result = 9;
|
|
1128
2110
|
*/
|
|
1129
2111
|
value: CodeExecutionResult;
|
|
@@ -1135,6 +2117,9 @@ export declare type Part = Message<"alis.adk.sessions.v1.Part"> & {
|
|
|
1135
2117
|
*/
|
|
1136
2118
|
metadata: {
|
|
1137
2119
|
/**
|
|
2120
|
+
* Optional. Video metadata. The metadata should only be specified while the
|
|
2121
|
+
* video data is presented in inline_data or file_data.
|
|
2122
|
+
*
|
|
1138
2123
|
* @generated from field: alis.adk.sessions.v1.VideoMetadata video_metadata = 4;
|
|
1139
2124
|
*/
|
|
1140
2125
|
value: VideoMetadata;
|
|
@@ -1142,66 +2127,107 @@ export declare type Part = Message<"alis.adk.sessions.v1.Part"> & {
|
|
|
1142
2127
|
} | { case: undefined; value?: undefined };
|
|
1143
2128
|
|
|
1144
2129
|
/**
|
|
2130
|
+
* Optional. Indicates if the part is a thought from the model.
|
|
2131
|
+
*
|
|
1145
2132
|
* @generated from field: bool thought = 10;
|
|
1146
2133
|
*/
|
|
1147
2134
|
thought: boolean;
|
|
1148
2135
|
|
|
1149
2136
|
/**
|
|
2137
|
+
* Optional. An opaque signature for the thought so it can be reused in
|
|
2138
|
+
* subsequent requests.
|
|
2139
|
+
*
|
|
1150
2140
|
* @generated from field: bytes thought_signature = 11;
|
|
1151
2141
|
*/
|
|
1152
2142
|
thoughtSignature: Uint8Array;
|
|
1153
2143
|
};
|
|
1154
2144
|
|
|
1155
2145
|
/**
|
|
2146
|
+
* Part represents a datatype containing media that is part of a multi-part
|
|
2147
|
+
* Content message.
|
|
2148
|
+
*
|
|
2149
|
+
* A Part consists of data which has an associated datatype. A Part can only
|
|
2150
|
+
* contain one of the accepted types in Part.data.
|
|
2151
|
+
*
|
|
2152
|
+
* A Part must have a fixed IANA MIME type identifying the type and subtype
|
|
2153
|
+
* of the media if inline_data or file_data field is filled with raw bytes.
|
|
2154
|
+
*
|
|
1156
2155
|
* @generated from message alis.adk.sessions.v1.Part
|
|
1157
2156
|
*/
|
|
1158
2157
|
export declare type PartJson = {
|
|
1159
2158
|
/**
|
|
2159
|
+
* Optional. Text part (can be code).
|
|
2160
|
+
*
|
|
1160
2161
|
* @generated from field: string text = 1;
|
|
1161
2162
|
*/
|
|
1162
2163
|
text?: string;
|
|
1163
2164
|
|
|
1164
2165
|
/**
|
|
2166
|
+
* Optional. Inlined bytes data.
|
|
2167
|
+
*
|
|
1165
2168
|
* @generated from field: alis.adk.sessions.v1.Blob inline_data = 2;
|
|
1166
2169
|
*/
|
|
1167
2170
|
inlineData?: BlobJson;
|
|
1168
2171
|
|
|
1169
2172
|
/**
|
|
2173
|
+
* Optional. URI-based data.
|
|
2174
|
+
*
|
|
1170
2175
|
* @generated from field: alis.adk.sessions.v1.FileData file_data = 3;
|
|
1171
2176
|
*/
|
|
1172
2177
|
fileData?: FileDataJson;
|
|
1173
2178
|
|
|
1174
2179
|
/**
|
|
2180
|
+
* Optional. A predicted FunctionCall returned from the model that
|
|
2181
|
+
* contains a string representing the FunctionDeclaration.name with the
|
|
2182
|
+
* parameters and their values.
|
|
2183
|
+
*
|
|
1175
2184
|
* @generated from field: alis.adk.sessions.v1.FunctionCall function_call = 5;
|
|
1176
2185
|
*/
|
|
1177
2186
|
functionCall?: FunctionCallJson;
|
|
1178
2187
|
|
|
1179
2188
|
/**
|
|
2189
|
+
* Optional. The result output of a FunctionCall that contains a string
|
|
2190
|
+
* representing the FunctionDeclaration.name and a structured JSON object
|
|
2191
|
+
* containing any output from the function call. It is used as context to
|
|
2192
|
+
* the model.
|
|
2193
|
+
*
|
|
1180
2194
|
* @generated from field: alis.adk.sessions.v1.FunctionResponse function_response = 6;
|
|
1181
2195
|
*/
|
|
1182
2196
|
functionResponse?: FunctionResponseJson;
|
|
1183
2197
|
|
|
1184
2198
|
/**
|
|
2199
|
+
* Optional. Code generated by the model that is meant to be executed.
|
|
2200
|
+
*
|
|
1185
2201
|
* @generated from field: alis.adk.sessions.v1.ExecutableCode executable_code = 8;
|
|
1186
2202
|
*/
|
|
1187
2203
|
executableCode?: ExecutableCodeJson;
|
|
1188
2204
|
|
|
1189
2205
|
/**
|
|
2206
|
+
* Optional. Result of executing the ExecutableCode.
|
|
2207
|
+
*
|
|
1190
2208
|
* @generated from field: alis.adk.sessions.v1.CodeExecutionResult code_execution_result = 9;
|
|
1191
2209
|
*/
|
|
1192
2210
|
codeExecutionResult?: CodeExecutionResultJson;
|
|
1193
2211
|
|
|
1194
2212
|
/**
|
|
2213
|
+
* Optional. Video metadata. The metadata should only be specified while the
|
|
2214
|
+
* video data is presented in inline_data or file_data.
|
|
2215
|
+
*
|
|
1195
2216
|
* @generated from field: alis.adk.sessions.v1.VideoMetadata video_metadata = 4;
|
|
1196
2217
|
*/
|
|
1197
2218
|
videoMetadata?: VideoMetadataJson;
|
|
1198
2219
|
|
|
1199
2220
|
/**
|
|
2221
|
+
* Optional. Indicates if the part is a thought from the model.
|
|
2222
|
+
*
|
|
1200
2223
|
* @generated from field: bool thought = 10;
|
|
1201
2224
|
*/
|
|
1202
2225
|
thought?: boolean;
|
|
1203
2226
|
|
|
1204
2227
|
/**
|
|
2228
|
+
* Optional. An opaque signature for the thought so it can be reused in
|
|
2229
|
+
* subsequent requests.
|
|
2230
|
+
*
|
|
1205
2231
|
* @generated from field: bytes thought_signature = 11;
|
|
1206
2232
|
*/
|
|
1207
2233
|
thoughtSignature?: string;
|
|
@@ -1214,33 +2240,65 @@ export declare type PartJson = {
|
|
|
1214
2240
|
export declare const PartSchema: GenMessage<Part, {jsonType: PartJson}>;
|
|
1215
2241
|
|
|
1216
2242
|
/**
|
|
2243
|
+
* Blob represents inline binary data.
|
|
2244
|
+
*
|
|
2245
|
+
* It's preferred to send text directly rather than raw bytes.
|
|
2246
|
+
*
|
|
1217
2247
|
* @generated from message alis.adk.sessions.v1.Blob
|
|
1218
2248
|
*/
|
|
1219
2249
|
export declare type Blob = Message<"alis.adk.sessions.v1.Blob"> & {
|
|
1220
2250
|
/**
|
|
2251
|
+
* Required. The IANA standard MIME type of the source data.
|
|
2252
|
+
*
|
|
1221
2253
|
* @generated from field: string mime_type = 1;
|
|
1222
2254
|
*/
|
|
1223
2255
|
mimeType: string;
|
|
1224
2256
|
|
|
1225
2257
|
/**
|
|
2258
|
+
* Required. Raw bytes.
|
|
2259
|
+
*
|
|
1226
2260
|
* @generated from field: bytes data = 2;
|
|
1227
2261
|
*/
|
|
1228
2262
|
data: Uint8Array;
|
|
2263
|
+
|
|
2264
|
+
/**
|
|
2265
|
+
* Optional. Display name of the blob. Used to provide a label or filename
|
|
2266
|
+
* to distinguish blobs.
|
|
2267
|
+
*
|
|
2268
|
+
* @generated from field: optional string display_name = 3;
|
|
2269
|
+
*/
|
|
2270
|
+
displayName?: string | undefined;
|
|
1229
2271
|
};
|
|
1230
2272
|
|
|
1231
2273
|
/**
|
|
2274
|
+
* Blob represents inline binary data.
|
|
2275
|
+
*
|
|
2276
|
+
* It's preferred to send text directly rather than raw bytes.
|
|
2277
|
+
*
|
|
1232
2278
|
* @generated from message alis.adk.sessions.v1.Blob
|
|
1233
2279
|
*/
|
|
1234
2280
|
export declare type BlobJson = {
|
|
1235
2281
|
/**
|
|
2282
|
+
* Required. The IANA standard MIME type of the source data.
|
|
2283
|
+
*
|
|
1236
2284
|
* @generated from field: string mime_type = 1;
|
|
1237
2285
|
*/
|
|
1238
2286
|
mimeType?: string;
|
|
1239
2287
|
|
|
1240
2288
|
/**
|
|
2289
|
+
* Required. Raw bytes.
|
|
2290
|
+
*
|
|
1241
2291
|
* @generated from field: bytes data = 2;
|
|
1242
2292
|
*/
|
|
1243
2293
|
data?: string;
|
|
2294
|
+
|
|
2295
|
+
/**
|
|
2296
|
+
* Optional. Display name of the blob. Used to provide a label or filename
|
|
2297
|
+
* to distinguish blobs.
|
|
2298
|
+
*
|
|
2299
|
+
* @generated from field: optional string display_name = 3;
|
|
2300
|
+
*/
|
|
2301
|
+
displayName?: string;
|
|
1244
2302
|
};
|
|
1245
2303
|
|
|
1246
2304
|
/**
|
|
@@ -1250,40 +2308,56 @@ export declare type BlobJson = {
|
|
|
1250
2308
|
export declare const BlobSchema: GenMessage<Blob, {jsonType: BlobJson}>;
|
|
1251
2309
|
|
|
1252
2310
|
/**
|
|
2311
|
+
* FileData represents URI-based data.
|
|
2312
|
+
*
|
|
1253
2313
|
* @generated from message alis.adk.sessions.v1.FileData
|
|
1254
2314
|
*/
|
|
1255
2315
|
export declare type FileData = Message<"alis.adk.sessions.v1.FileData"> & {
|
|
1256
2316
|
/**
|
|
2317
|
+
* Required. The IANA standard MIME type of the source data.
|
|
2318
|
+
*
|
|
1257
2319
|
* @generated from field: string mime_type = 1;
|
|
1258
2320
|
*/
|
|
1259
2321
|
mimeType: string;
|
|
1260
2322
|
|
|
1261
2323
|
/**
|
|
2324
|
+
* Required. URI.
|
|
2325
|
+
*
|
|
1262
2326
|
* @generated from field: string file_uri = 2;
|
|
1263
2327
|
*/
|
|
1264
2328
|
fileUri: string;
|
|
1265
2329
|
|
|
1266
2330
|
/**
|
|
2331
|
+
* Optional. The display name of the file.
|
|
2332
|
+
*
|
|
1267
2333
|
* @generated from field: string display_name = 3;
|
|
1268
2334
|
*/
|
|
1269
2335
|
displayName: string;
|
|
1270
2336
|
};
|
|
1271
2337
|
|
|
1272
2338
|
/**
|
|
2339
|
+
* FileData represents URI-based data.
|
|
2340
|
+
*
|
|
1273
2341
|
* @generated from message alis.adk.sessions.v1.FileData
|
|
1274
2342
|
*/
|
|
1275
2343
|
export declare type FileDataJson = {
|
|
1276
2344
|
/**
|
|
2345
|
+
* Required. The IANA standard MIME type of the source data.
|
|
2346
|
+
*
|
|
1277
2347
|
* @generated from field: string mime_type = 1;
|
|
1278
2348
|
*/
|
|
1279
2349
|
mimeType?: string;
|
|
1280
2350
|
|
|
1281
2351
|
/**
|
|
2352
|
+
* Required. URI.
|
|
2353
|
+
*
|
|
1282
2354
|
* @generated from field: string file_uri = 2;
|
|
1283
2355
|
*/
|
|
1284
2356
|
fileUri?: string;
|
|
1285
2357
|
|
|
1286
2358
|
/**
|
|
2359
|
+
* Optional. The display name of the file.
|
|
2360
|
+
*
|
|
1287
2361
|
* @generated from field: string display_name = 3;
|
|
1288
2362
|
*/
|
|
1289
2363
|
displayName?: string;
|
|
@@ -1296,30 +2370,42 @@ export declare type FileDataJson = {
|
|
|
1296
2370
|
export declare const FileDataSchema: GenMessage<FileData, {jsonType: FileDataJson}>;
|
|
1297
2371
|
|
|
1298
2372
|
/**
|
|
2373
|
+
* VideoMetadata describes the input video content.
|
|
2374
|
+
*
|
|
1299
2375
|
* @generated from message alis.adk.sessions.v1.VideoMetadata
|
|
1300
2376
|
*/
|
|
1301
2377
|
export declare type VideoMetadata = Message<"alis.adk.sessions.v1.VideoMetadata"> & {
|
|
1302
2378
|
/**
|
|
2379
|
+
* Optional. The start offset of the video.
|
|
2380
|
+
*
|
|
1303
2381
|
* @generated from field: google.protobuf.Duration start_offset = 1;
|
|
1304
2382
|
*/
|
|
1305
2383
|
startOffset?: Duration | undefined;
|
|
1306
2384
|
|
|
1307
2385
|
/**
|
|
2386
|
+
* Optional. The end offset of the video.
|
|
2387
|
+
*
|
|
1308
2388
|
* @generated from field: google.protobuf.Duration end_offset = 2;
|
|
1309
2389
|
*/
|
|
1310
2390
|
endOffset?: Duration | undefined;
|
|
1311
2391
|
};
|
|
1312
2392
|
|
|
1313
2393
|
/**
|
|
2394
|
+
* VideoMetadata describes the input video content.
|
|
2395
|
+
*
|
|
1314
2396
|
* @generated from message alis.adk.sessions.v1.VideoMetadata
|
|
1315
2397
|
*/
|
|
1316
2398
|
export declare type VideoMetadataJson = {
|
|
1317
2399
|
/**
|
|
2400
|
+
* Optional. The start offset of the video.
|
|
2401
|
+
*
|
|
1318
2402
|
* @generated from field: google.protobuf.Duration start_offset = 1;
|
|
1319
2403
|
*/
|
|
1320
2404
|
startOffset?: DurationJson;
|
|
1321
2405
|
|
|
1322
2406
|
/**
|
|
2407
|
+
* Optional. The end offset of the video.
|
|
2408
|
+
*
|
|
1323
2409
|
* @generated from field: google.protobuf.Duration end_offset = 2;
|
|
1324
2410
|
*/
|
|
1325
2411
|
endOffset?: DurationJson;
|
|
@@ -1332,40 +2418,68 @@ export declare type VideoMetadataJson = {
|
|
|
1332
2418
|
export declare const VideoMetadataSchema: GenMessage<VideoMetadata, {jsonType: VideoMetadataJson}>;
|
|
1333
2419
|
|
|
1334
2420
|
/**
|
|
2421
|
+
* FunctionCall represents a predicted function call returned from the model
|
|
2422
|
+
* that contains a string representing the FunctionDeclaration.name and a
|
|
2423
|
+
* structured JSON object containing the parameters and their values.
|
|
2424
|
+
*
|
|
1335
2425
|
* @generated from message alis.adk.sessions.v1.FunctionCall
|
|
1336
2426
|
*/
|
|
1337
2427
|
export declare type FunctionCall = Message<"alis.adk.sessions.v1.FunctionCall"> & {
|
|
1338
2428
|
/**
|
|
2429
|
+
* Required. The name of the function to call.
|
|
2430
|
+
* Matches FunctionDeclaration.name.
|
|
2431
|
+
*
|
|
1339
2432
|
* @generated from field: string name = 1;
|
|
1340
2433
|
*/
|
|
1341
2434
|
name: string;
|
|
1342
2435
|
|
|
1343
2436
|
/**
|
|
2437
|
+
* Required. The function parameters and values in JSON object format.
|
|
2438
|
+
* See FunctionDeclaration.parameters for parameter details.
|
|
2439
|
+
*
|
|
1344
2440
|
* @generated from field: google.protobuf.Struct args = 2;
|
|
1345
2441
|
*/
|
|
1346
2442
|
args?: JsonObject | undefined;
|
|
1347
2443
|
|
|
1348
2444
|
/**
|
|
2445
|
+
* Optional. The unique ID of the function call. If populated, the client
|
|
2446
|
+
* should execute the function_call and return the response with the matching
|
|
2447
|
+
* id.
|
|
2448
|
+
*
|
|
1349
2449
|
* @generated from field: string id = 3;
|
|
1350
2450
|
*/
|
|
1351
2451
|
id: string;
|
|
1352
2452
|
};
|
|
1353
2453
|
|
|
1354
2454
|
/**
|
|
2455
|
+
* FunctionCall represents a predicted function call returned from the model
|
|
2456
|
+
* that contains a string representing the FunctionDeclaration.name and a
|
|
2457
|
+
* structured JSON object containing the parameters and their values.
|
|
2458
|
+
*
|
|
1355
2459
|
* @generated from message alis.adk.sessions.v1.FunctionCall
|
|
1356
2460
|
*/
|
|
1357
2461
|
export declare type FunctionCallJson = {
|
|
1358
2462
|
/**
|
|
2463
|
+
* Required. The name of the function to call.
|
|
2464
|
+
* Matches FunctionDeclaration.name.
|
|
2465
|
+
*
|
|
1359
2466
|
* @generated from field: string name = 1;
|
|
1360
2467
|
*/
|
|
1361
2468
|
name?: string;
|
|
1362
2469
|
|
|
1363
2470
|
/**
|
|
2471
|
+
* Required. The function parameters and values in JSON object format.
|
|
2472
|
+
* See FunctionDeclaration.parameters for parameter details.
|
|
2473
|
+
*
|
|
1364
2474
|
* @generated from field: google.protobuf.Struct args = 2;
|
|
1365
2475
|
*/
|
|
1366
2476
|
args?: StructJson;
|
|
1367
2477
|
|
|
1368
2478
|
/**
|
|
2479
|
+
* Optional. The unique ID of the function call. If populated, the client
|
|
2480
|
+
* should execute the function_call and return the response with the matching
|
|
2481
|
+
* id.
|
|
2482
|
+
*
|
|
1369
2483
|
* @generated from field: string id = 3;
|
|
1370
2484
|
*/
|
|
1371
2485
|
id?: string;
|
|
@@ -1378,50 +2492,94 @@ export declare type FunctionCallJson = {
|
|
|
1378
2492
|
export declare const FunctionCallSchema: GenMessage<FunctionCall, {jsonType: FunctionCallJson}>;
|
|
1379
2493
|
|
|
1380
2494
|
/**
|
|
2495
|
+
* FunctionResponse represents the result output from a FunctionCall that
|
|
2496
|
+
* contains a string representing the FunctionDeclaration.name and a structured
|
|
2497
|
+
* JSON object containing any output from the function. This is used as context
|
|
2498
|
+
* to the model.
|
|
2499
|
+
*
|
|
2500
|
+
* This should contain the result of a FunctionCall made based on model
|
|
2501
|
+
* prediction.
|
|
2502
|
+
*
|
|
1381
2503
|
* @generated from message alis.adk.sessions.v1.FunctionResponse
|
|
1382
2504
|
*/
|
|
1383
2505
|
export declare type FunctionResponse = Message<"alis.adk.sessions.v1.FunctionResponse"> & {
|
|
1384
2506
|
/**
|
|
2507
|
+
* Required. The name of the function that was called.
|
|
2508
|
+
* Matches FunctionDeclaration.name and FunctionCall.name.
|
|
2509
|
+
*
|
|
1385
2510
|
* @generated from field: string name = 1;
|
|
1386
2511
|
*/
|
|
1387
2512
|
name: string;
|
|
1388
2513
|
|
|
1389
2514
|
/**
|
|
2515
|
+
* Required. The function response in JSON object format.
|
|
2516
|
+
* Use "output" key to specify function output and "error" key to specify
|
|
2517
|
+
* error details (if any). If "output" and "error" keys are not specified,
|
|
2518
|
+
* then the whole "response" is treated as function output.
|
|
2519
|
+
*
|
|
1390
2520
|
* @generated from field: google.protobuf.Struct response = 2;
|
|
1391
2521
|
*/
|
|
1392
2522
|
response?: JsonObject | undefined;
|
|
1393
2523
|
|
|
1394
2524
|
/**
|
|
2525
|
+
* Optional. The ID of the function call this response is for. Populated by
|
|
2526
|
+
* the client to match the corresponding function call id.
|
|
2527
|
+
*
|
|
1395
2528
|
* @generated from field: string id = 3;
|
|
1396
2529
|
*/
|
|
1397
2530
|
id: string;
|
|
1398
2531
|
|
|
1399
2532
|
/**
|
|
2533
|
+
* Optional. Ordered Parts that constitute a function response.
|
|
2534
|
+
* Parts may have different IANA MIME types.
|
|
2535
|
+
*
|
|
1400
2536
|
* @generated from field: repeated alis.adk.sessions.v1.FunctionResponsePart parts = 4;
|
|
1401
2537
|
*/
|
|
1402
2538
|
parts: FunctionResponsePart[];
|
|
1403
2539
|
};
|
|
1404
2540
|
|
|
1405
2541
|
/**
|
|
2542
|
+
* FunctionResponse represents the result output from a FunctionCall that
|
|
2543
|
+
* contains a string representing the FunctionDeclaration.name and a structured
|
|
2544
|
+
* JSON object containing any output from the function. This is used as context
|
|
2545
|
+
* to the model.
|
|
2546
|
+
*
|
|
2547
|
+
* This should contain the result of a FunctionCall made based on model
|
|
2548
|
+
* prediction.
|
|
2549
|
+
*
|
|
1406
2550
|
* @generated from message alis.adk.sessions.v1.FunctionResponse
|
|
1407
2551
|
*/
|
|
1408
2552
|
export declare type FunctionResponseJson = {
|
|
1409
2553
|
/**
|
|
2554
|
+
* Required. The name of the function that was called.
|
|
2555
|
+
* Matches FunctionDeclaration.name and FunctionCall.name.
|
|
2556
|
+
*
|
|
1410
2557
|
* @generated from field: string name = 1;
|
|
1411
2558
|
*/
|
|
1412
2559
|
name?: string;
|
|
1413
2560
|
|
|
1414
2561
|
/**
|
|
2562
|
+
* Required. The function response in JSON object format.
|
|
2563
|
+
* Use "output" key to specify function output and "error" key to specify
|
|
2564
|
+
* error details (if any). If "output" and "error" keys are not specified,
|
|
2565
|
+
* then the whole "response" is treated as function output.
|
|
2566
|
+
*
|
|
1415
2567
|
* @generated from field: google.protobuf.Struct response = 2;
|
|
1416
2568
|
*/
|
|
1417
2569
|
response?: StructJson;
|
|
1418
2570
|
|
|
1419
2571
|
/**
|
|
2572
|
+
* Optional. The ID of the function call this response is for. Populated by
|
|
2573
|
+
* the client to match the corresponding function call id.
|
|
2574
|
+
*
|
|
1420
2575
|
* @generated from field: string id = 3;
|
|
1421
2576
|
*/
|
|
1422
2577
|
id?: string;
|
|
1423
2578
|
|
|
1424
2579
|
/**
|
|
2580
|
+
* Optional. Ordered Parts that constitute a function response.
|
|
2581
|
+
* Parts may have different IANA MIME types.
|
|
2582
|
+
*
|
|
1425
2583
|
* @generated from field: repeated alis.adk.sessions.v1.FunctionResponsePart parts = 4;
|
|
1426
2584
|
*/
|
|
1427
2585
|
parts?: FunctionResponsePartJson[];
|
|
@@ -1434,6 +2592,17 @@ export declare type FunctionResponseJson = {
|
|
|
1434
2592
|
export declare const FunctionResponseSchema: GenMessage<FunctionResponse, {jsonType: FunctionResponseJson}>;
|
|
1435
2593
|
|
|
1436
2594
|
/**
|
|
2595
|
+
* FunctionResponsePart represents a datatype containing media that is part of
|
|
2596
|
+
* a FunctionResponse message.
|
|
2597
|
+
*
|
|
2598
|
+
* A FunctionResponsePart consists of data which has an associated datatype.
|
|
2599
|
+
* A FunctionResponsePart can only contain one of the accepted types in
|
|
2600
|
+
* FunctionResponsePart.data.
|
|
2601
|
+
*
|
|
2602
|
+
* A FunctionResponsePart must have a fixed IANA MIME type identifying the
|
|
2603
|
+
* type and subtype of the media if the inline_data field is filled with raw
|
|
2604
|
+
* bytes.
|
|
2605
|
+
*
|
|
1437
2606
|
* @generated from message alis.adk.sessions.v1.FunctionResponsePart
|
|
1438
2607
|
*/
|
|
1439
2608
|
export declare type FunctionResponsePart = Message<"alis.adk.sessions.v1.FunctionResponsePart"> & {
|
|
@@ -1442,12 +2611,16 @@ export declare type FunctionResponsePart = Message<"alis.adk.sessions.v1.Functio
|
|
|
1442
2611
|
*/
|
|
1443
2612
|
data: {
|
|
1444
2613
|
/**
|
|
2614
|
+
* Inline media bytes.
|
|
2615
|
+
*
|
|
1445
2616
|
* @generated from field: alis.adk.sessions.v1.FunctionResponseBlob inline_data = 1;
|
|
1446
2617
|
*/
|
|
1447
2618
|
value: FunctionResponseBlob;
|
|
1448
2619
|
case: "inlineData";
|
|
1449
2620
|
} | {
|
|
1450
2621
|
/**
|
|
2622
|
+
* URI-based data.
|
|
2623
|
+
*
|
|
1451
2624
|
* @generated from field: alis.adk.sessions.v1.FunctionResponseFileData file_data = 2;
|
|
1452
2625
|
*/
|
|
1453
2626
|
value: FunctionResponseFileData;
|
|
@@ -1456,15 +2629,30 @@ export declare type FunctionResponsePart = Message<"alis.adk.sessions.v1.Functio
|
|
|
1456
2629
|
};
|
|
1457
2630
|
|
|
1458
2631
|
/**
|
|
2632
|
+
* FunctionResponsePart represents a datatype containing media that is part of
|
|
2633
|
+
* a FunctionResponse message.
|
|
2634
|
+
*
|
|
2635
|
+
* A FunctionResponsePart consists of data which has an associated datatype.
|
|
2636
|
+
* A FunctionResponsePart can only contain one of the accepted types in
|
|
2637
|
+
* FunctionResponsePart.data.
|
|
2638
|
+
*
|
|
2639
|
+
* A FunctionResponsePart must have a fixed IANA MIME type identifying the
|
|
2640
|
+
* type and subtype of the media if the inline_data field is filled with raw
|
|
2641
|
+
* bytes.
|
|
2642
|
+
*
|
|
1459
2643
|
* @generated from message alis.adk.sessions.v1.FunctionResponsePart
|
|
1460
2644
|
*/
|
|
1461
2645
|
export declare type FunctionResponsePartJson = {
|
|
1462
2646
|
/**
|
|
2647
|
+
* Inline media bytes.
|
|
2648
|
+
*
|
|
1463
2649
|
* @generated from field: alis.adk.sessions.v1.FunctionResponseBlob inline_data = 1;
|
|
1464
2650
|
*/
|
|
1465
2651
|
inlineData?: FunctionResponseBlobJson;
|
|
1466
2652
|
|
|
1467
2653
|
/**
|
|
2654
|
+
* URI-based data.
|
|
2655
|
+
*
|
|
1468
2656
|
* @generated from field: alis.adk.sessions.v1.FunctionResponseFileData file_data = 2;
|
|
1469
2657
|
*/
|
|
1470
2658
|
fileData?: FunctionResponseFileDataJson;
|
|
@@ -1477,40 +2665,72 @@ export declare type FunctionResponsePartJson = {
|
|
|
1477
2665
|
export declare const FunctionResponsePartSchema: GenMessage<FunctionResponsePart, {jsonType: FunctionResponsePartJson}>;
|
|
1478
2666
|
|
|
1479
2667
|
/**
|
|
2668
|
+
* FunctionResponseBlob represents raw media bytes for function response.
|
|
2669
|
+
*
|
|
2670
|
+
* Text should not be sent as raw bytes; use the 'text' field instead.
|
|
2671
|
+
*
|
|
1480
2672
|
* @generated from message alis.adk.sessions.v1.FunctionResponseBlob
|
|
1481
2673
|
*/
|
|
1482
2674
|
export declare type FunctionResponseBlob = Message<"alis.adk.sessions.v1.FunctionResponseBlob"> & {
|
|
1483
2675
|
/**
|
|
2676
|
+
* Required. The IANA standard MIME type of the source data.
|
|
2677
|
+
*
|
|
1484
2678
|
* @generated from field: string mime_type = 1;
|
|
1485
2679
|
*/
|
|
1486
2680
|
mimeType: string;
|
|
1487
2681
|
|
|
1488
2682
|
/**
|
|
2683
|
+
* Required. Raw bytes.
|
|
2684
|
+
*
|
|
1489
2685
|
* @generated from field: bytes data = 2;
|
|
1490
2686
|
*/
|
|
1491
2687
|
data: Uint8Array;
|
|
1492
2688
|
|
|
1493
2689
|
/**
|
|
2690
|
+
* Optional. Display name of the blob.
|
|
2691
|
+
*
|
|
2692
|
+
* Used to provide a label or filename to distinguish blobs.
|
|
2693
|
+
*
|
|
2694
|
+
* This field is only returned in PromptMessage for prompt management.
|
|
2695
|
+
* It is currently used in the Gemini GenerateContent calls only when server
|
|
2696
|
+
* side tools (code_execution, google_search, and url_context) are enabled.
|
|
2697
|
+
*
|
|
1494
2698
|
* @generated from field: string display_name = 4;
|
|
1495
2699
|
*/
|
|
1496
2700
|
displayName: string;
|
|
1497
2701
|
};
|
|
1498
2702
|
|
|
1499
2703
|
/**
|
|
2704
|
+
* FunctionResponseBlob represents raw media bytes for function response.
|
|
2705
|
+
*
|
|
2706
|
+
* Text should not be sent as raw bytes; use the 'text' field instead.
|
|
2707
|
+
*
|
|
1500
2708
|
* @generated from message alis.adk.sessions.v1.FunctionResponseBlob
|
|
1501
2709
|
*/
|
|
1502
2710
|
export declare type FunctionResponseBlobJson = {
|
|
1503
2711
|
/**
|
|
2712
|
+
* Required. The IANA standard MIME type of the source data.
|
|
2713
|
+
*
|
|
1504
2714
|
* @generated from field: string mime_type = 1;
|
|
1505
2715
|
*/
|
|
1506
2716
|
mimeType?: string;
|
|
1507
2717
|
|
|
1508
2718
|
/**
|
|
2719
|
+
* Required. Raw bytes.
|
|
2720
|
+
*
|
|
1509
2721
|
* @generated from field: bytes data = 2;
|
|
1510
2722
|
*/
|
|
1511
2723
|
data?: string;
|
|
1512
2724
|
|
|
1513
2725
|
/**
|
|
2726
|
+
* Optional. Display name of the blob.
|
|
2727
|
+
*
|
|
2728
|
+
* Used to provide a label or filename to distinguish blobs.
|
|
2729
|
+
*
|
|
2730
|
+
* This field is only returned in PromptMessage for prompt management.
|
|
2731
|
+
* It is currently used in the Gemini GenerateContent calls only when server
|
|
2732
|
+
* side tools (code_execution, google_search, and url_context) are enabled.
|
|
2733
|
+
*
|
|
1514
2734
|
* @generated from field: string display_name = 4;
|
|
1515
2735
|
*/
|
|
1516
2736
|
displayName?: string;
|
|
@@ -1523,40 +2743,68 @@ export declare type FunctionResponseBlobJson = {
|
|
|
1523
2743
|
export declare const FunctionResponseBlobSchema: GenMessage<FunctionResponseBlob, {jsonType: FunctionResponseBlobJson}>;
|
|
1524
2744
|
|
|
1525
2745
|
/**
|
|
2746
|
+
* FunctionResponseFileData represents URI-based data for function response.
|
|
2747
|
+
*
|
|
1526
2748
|
* @generated from message alis.adk.sessions.v1.FunctionResponseFileData
|
|
1527
2749
|
*/
|
|
1528
2750
|
export declare type FunctionResponseFileData = Message<"alis.adk.sessions.v1.FunctionResponseFileData"> & {
|
|
1529
2751
|
/**
|
|
2752
|
+
* Required. The IANA standard MIME type of the source data.
|
|
2753
|
+
*
|
|
1530
2754
|
* @generated from field: string mime_type = 1;
|
|
1531
2755
|
*/
|
|
1532
2756
|
mimeType: string;
|
|
1533
2757
|
|
|
1534
2758
|
/**
|
|
2759
|
+
* Required. URI.
|
|
2760
|
+
*
|
|
1535
2761
|
* @generated from field: string file_uri = 2;
|
|
1536
2762
|
*/
|
|
1537
2763
|
fileUri: string;
|
|
1538
2764
|
|
|
1539
2765
|
/**
|
|
2766
|
+
* Optional. Display name of the file data.
|
|
2767
|
+
*
|
|
2768
|
+
* Used to provide a label or filename to distinguish file data.
|
|
2769
|
+
*
|
|
2770
|
+
* This field is only returned in PromptMessage for prompt management.
|
|
2771
|
+
* It is currently used in the Gemini GenerateContent calls only when server
|
|
2772
|
+
* side tools (code_execution, google_search, and url_context) are enabled.
|
|
2773
|
+
*
|
|
1540
2774
|
* @generated from field: string display_name = 3;
|
|
1541
2775
|
*/
|
|
1542
2776
|
displayName: string;
|
|
1543
2777
|
};
|
|
1544
2778
|
|
|
1545
2779
|
/**
|
|
2780
|
+
* FunctionResponseFileData represents URI-based data for function response.
|
|
2781
|
+
*
|
|
1546
2782
|
* @generated from message alis.adk.sessions.v1.FunctionResponseFileData
|
|
1547
2783
|
*/
|
|
1548
2784
|
export declare type FunctionResponseFileDataJson = {
|
|
1549
2785
|
/**
|
|
2786
|
+
* Required. The IANA standard MIME type of the source data.
|
|
2787
|
+
*
|
|
1550
2788
|
* @generated from field: string mime_type = 1;
|
|
1551
2789
|
*/
|
|
1552
2790
|
mimeType?: string;
|
|
1553
2791
|
|
|
1554
2792
|
/**
|
|
2793
|
+
* Required. URI.
|
|
2794
|
+
*
|
|
1555
2795
|
* @generated from field: string file_uri = 2;
|
|
1556
2796
|
*/
|
|
1557
2797
|
fileUri?: string;
|
|
1558
2798
|
|
|
1559
2799
|
/**
|
|
2800
|
+
* Optional. Display name of the file data.
|
|
2801
|
+
*
|
|
2802
|
+
* Used to provide a label or filename to distinguish file data.
|
|
2803
|
+
*
|
|
2804
|
+
* This field is only returned in PromptMessage for prompt management.
|
|
2805
|
+
* It is currently used in the Gemini GenerateContent calls only when server
|
|
2806
|
+
* side tools (code_execution, google_search, and url_context) are enabled.
|
|
2807
|
+
*
|
|
1560
2808
|
* @generated from field: string display_name = 3;
|
|
1561
2809
|
*/
|
|
1562
2810
|
displayName?: string;
|
|
@@ -1569,30 +2817,50 @@ export declare type FunctionResponseFileDataJson = {
|
|
|
1569
2817
|
export declare const FunctionResponseFileDataSchema: GenMessage<FunctionResponseFileData, {jsonType: FunctionResponseFileDataJson}>;
|
|
1570
2818
|
|
|
1571
2819
|
/**
|
|
2820
|
+
* ExecutableCode represents code generated by the model that is meant to be
|
|
2821
|
+
* executed, and the result returned to the model.
|
|
2822
|
+
*
|
|
2823
|
+
* Generated when using the FunctionDeclaration tool and FunctionCallingConfig
|
|
2824
|
+
* mode is set to Mode.CODE.
|
|
2825
|
+
*
|
|
1572
2826
|
* @generated from message alis.adk.sessions.v1.ExecutableCode
|
|
1573
2827
|
*/
|
|
1574
2828
|
export declare type ExecutableCode = Message<"alis.adk.sessions.v1.ExecutableCode"> & {
|
|
1575
2829
|
/**
|
|
2830
|
+
* Required. Programming language of the code.
|
|
2831
|
+
*
|
|
1576
2832
|
* @generated from field: alis.adk.sessions.v1.ExecutableCode.Language language = 1;
|
|
1577
2833
|
*/
|
|
1578
2834
|
language: ExecutableCode_Language;
|
|
1579
2835
|
|
|
1580
2836
|
/**
|
|
2837
|
+
* Required. The code to be executed.
|
|
2838
|
+
*
|
|
1581
2839
|
* @generated from field: string code = 2;
|
|
1582
2840
|
*/
|
|
1583
2841
|
code: string;
|
|
1584
2842
|
};
|
|
1585
2843
|
|
|
1586
2844
|
/**
|
|
2845
|
+
* ExecutableCode represents code generated by the model that is meant to be
|
|
2846
|
+
* executed, and the result returned to the model.
|
|
2847
|
+
*
|
|
2848
|
+
* Generated when using the FunctionDeclaration tool and FunctionCallingConfig
|
|
2849
|
+
* mode is set to Mode.CODE.
|
|
2850
|
+
*
|
|
1587
2851
|
* @generated from message alis.adk.sessions.v1.ExecutableCode
|
|
1588
2852
|
*/
|
|
1589
2853
|
export declare type ExecutableCodeJson = {
|
|
1590
2854
|
/**
|
|
2855
|
+
* Required. Programming language of the code.
|
|
2856
|
+
*
|
|
1591
2857
|
* @generated from field: alis.adk.sessions.v1.ExecutableCode.Language language = 1;
|
|
1592
2858
|
*/
|
|
1593
2859
|
language?: ExecutableCode_LanguageJson;
|
|
1594
2860
|
|
|
1595
2861
|
/**
|
|
2862
|
+
* Required. The code to be executed.
|
|
2863
|
+
*
|
|
1596
2864
|
* @generated from field: string code = 2;
|
|
1597
2865
|
*/
|
|
1598
2866
|
code?: string;
|
|
@@ -1605,21 +2873,29 @@ export declare type ExecutableCodeJson = {
|
|
|
1605
2873
|
export declare const ExecutableCodeSchema: GenMessage<ExecutableCode, {jsonType: ExecutableCodeJson}>;
|
|
1606
2874
|
|
|
1607
2875
|
/**
|
|
2876
|
+
* Supported programming languages for the generated code.
|
|
2877
|
+
*
|
|
1608
2878
|
* @generated from enum alis.adk.sessions.v1.ExecutableCode.Language
|
|
1609
2879
|
*/
|
|
1610
2880
|
export enum ExecutableCode_Language {
|
|
1611
2881
|
/**
|
|
2882
|
+
* Unspecified language. This value should not be used.
|
|
2883
|
+
*
|
|
1612
2884
|
* @generated from enum value: LANGUAGE_UNSPECIFIED = 0;
|
|
1613
2885
|
*/
|
|
1614
2886
|
LANGUAGE_UNSPECIFIED = 0,
|
|
1615
2887
|
|
|
1616
2888
|
/**
|
|
2889
|
+
* Python >= 3.10, with numpy and simpy available.
|
|
2890
|
+
*
|
|
1617
2891
|
* @generated from enum value: PYTHON = 1;
|
|
1618
2892
|
*/
|
|
1619
2893
|
PYTHON = 1,
|
|
1620
2894
|
}
|
|
1621
2895
|
|
|
1622
2896
|
/**
|
|
2897
|
+
* Supported programming languages for the generated code.
|
|
2898
|
+
*
|
|
1623
2899
|
* @generated from enum alis.adk.sessions.v1.ExecutableCode.Language
|
|
1624
2900
|
*/
|
|
1625
2901
|
export declare type ExecutableCode_LanguageJson = "LANGUAGE_UNSPECIFIED" | "PYTHON";
|
|
@@ -1630,30 +2906,48 @@ export declare type ExecutableCode_LanguageJson = "LANGUAGE_UNSPECIFIED" | "PYTH
|
|
|
1630
2906
|
export declare const ExecutableCode_LanguageSchema: GenEnum<ExecutableCode_Language, ExecutableCode_LanguageJson>;
|
|
1631
2907
|
|
|
1632
2908
|
/**
|
|
2909
|
+
* CodeExecutionResult represents the result of executing ExecutableCode.
|
|
2910
|
+
*
|
|
2911
|
+
* Always follows a part containing the ExecutableCode.
|
|
2912
|
+
*
|
|
1633
2913
|
* @generated from message alis.adk.sessions.v1.CodeExecutionResult
|
|
1634
2914
|
*/
|
|
1635
2915
|
export declare type CodeExecutionResult = Message<"alis.adk.sessions.v1.CodeExecutionResult"> & {
|
|
1636
2916
|
/**
|
|
2917
|
+
* Required. Outcome of the code execution.
|
|
2918
|
+
*
|
|
1637
2919
|
* @generated from field: alis.adk.sessions.v1.CodeExecutionResult.Outcome outcome = 1;
|
|
1638
2920
|
*/
|
|
1639
2921
|
outcome: CodeExecutionResult_Outcome;
|
|
1640
2922
|
|
|
1641
2923
|
/**
|
|
2924
|
+
* Optional. Contains stdout when code execution is successful, stderr or
|
|
2925
|
+
* other description otherwise.
|
|
2926
|
+
*
|
|
1642
2927
|
* @generated from field: string output = 2;
|
|
1643
2928
|
*/
|
|
1644
2929
|
output: string;
|
|
1645
2930
|
};
|
|
1646
2931
|
|
|
1647
2932
|
/**
|
|
2933
|
+
* CodeExecutionResult represents the result of executing ExecutableCode.
|
|
2934
|
+
*
|
|
2935
|
+
* Always follows a part containing the ExecutableCode.
|
|
2936
|
+
*
|
|
1648
2937
|
* @generated from message alis.adk.sessions.v1.CodeExecutionResult
|
|
1649
2938
|
*/
|
|
1650
2939
|
export declare type CodeExecutionResultJson = {
|
|
1651
2940
|
/**
|
|
2941
|
+
* Required. Outcome of the code execution.
|
|
2942
|
+
*
|
|
1652
2943
|
* @generated from field: alis.adk.sessions.v1.CodeExecutionResult.Outcome outcome = 1;
|
|
1653
2944
|
*/
|
|
1654
2945
|
outcome?: CodeExecutionResult_OutcomeJson;
|
|
1655
2946
|
|
|
1656
2947
|
/**
|
|
2948
|
+
* Optional. Contains stdout when code execution is successful, stderr or
|
|
2949
|
+
* other description otherwise.
|
|
2950
|
+
*
|
|
1657
2951
|
* @generated from field: string output = 2;
|
|
1658
2952
|
*/
|
|
1659
2953
|
output?: string;
|
|
@@ -1666,31 +2960,45 @@ export declare type CodeExecutionResultJson = {
|
|
|
1666
2960
|
export declare const CodeExecutionResultSchema: GenMessage<CodeExecutionResult, {jsonType: CodeExecutionResultJson}>;
|
|
1667
2961
|
|
|
1668
2962
|
/**
|
|
2963
|
+
* Enumeration of possible outcomes of the code execution.
|
|
2964
|
+
*
|
|
1669
2965
|
* @generated from enum alis.adk.sessions.v1.CodeExecutionResult.Outcome
|
|
1670
2966
|
*/
|
|
1671
2967
|
export enum CodeExecutionResult_Outcome {
|
|
1672
2968
|
/**
|
|
2969
|
+
* Unspecified status. This value should not be used.
|
|
2970
|
+
*
|
|
1673
2971
|
* @generated from enum value: OUTCOME_UNSPECIFIED = 0;
|
|
1674
2972
|
*/
|
|
1675
2973
|
UNSPECIFIED = 0,
|
|
1676
2974
|
|
|
1677
2975
|
/**
|
|
2976
|
+
* Code execution completed successfully.
|
|
2977
|
+
*
|
|
1678
2978
|
* @generated from enum value: OUTCOME_OK = 1;
|
|
1679
2979
|
*/
|
|
1680
2980
|
OK = 1,
|
|
1681
2981
|
|
|
1682
2982
|
/**
|
|
2983
|
+
* Code execution finished but with a failure. stderr should contain the
|
|
2984
|
+
* reason.
|
|
2985
|
+
*
|
|
1683
2986
|
* @generated from enum value: OUTCOME_FAILED = 2;
|
|
1684
2987
|
*/
|
|
1685
2988
|
FAILED = 2,
|
|
1686
2989
|
|
|
1687
2990
|
/**
|
|
2991
|
+
* Code execution ran for too long, and was cancelled. There may or may not
|
|
2992
|
+
* be a partial output present.
|
|
2993
|
+
*
|
|
1688
2994
|
* @generated from enum value: OUTCOME_DEADLINE_EXCEEDED = 3;
|
|
1689
2995
|
*/
|
|
1690
2996
|
DEADLINE_EXCEEDED = 3,
|
|
1691
2997
|
}
|
|
1692
2998
|
|
|
1693
2999
|
/**
|
|
3000
|
+
* Enumeration of possible outcomes of the code execution.
|
|
3001
|
+
*
|
|
1694
3002
|
* @generated from enum alis.adk.sessions.v1.CodeExecutionResult.Outcome
|
|
1695
3003
|
*/
|
|
1696
3004
|
export declare type CodeExecutionResult_OutcomeJson = "OUTCOME_UNSPECIFIED" | "OUTCOME_OK" | "OUTCOME_FAILED" | "OUTCOME_DEADLINE_EXCEEDED";
|
|
@@ -1701,90 +3009,134 @@ export declare type CodeExecutionResult_OutcomeJson = "OUTCOME_UNSPECIFIED" | "O
|
|
|
1701
3009
|
export declare const CodeExecutionResult_OutcomeSchema: GenEnum<CodeExecutionResult_Outcome, CodeExecutionResult_OutcomeJson>;
|
|
1702
3010
|
|
|
1703
3011
|
/**
|
|
3012
|
+
* GroundingMetadata contains metadata returned to client when grounding is
|
|
3013
|
+
* enabled.
|
|
3014
|
+
*
|
|
1704
3015
|
* @generated from message alis.adk.sessions.v1.GroundingMetadata
|
|
1705
3016
|
*/
|
|
1706
3017
|
export declare type GroundingMetadata = Message<"alis.adk.sessions.v1.GroundingMetadata"> & {
|
|
1707
3018
|
/**
|
|
3019
|
+
* Optional. Web search queries for the following-up web search.
|
|
3020
|
+
*
|
|
1708
3021
|
* @generated from field: repeated string web_search_queries = 1;
|
|
1709
3022
|
*/
|
|
1710
3023
|
webSearchQueries: string[];
|
|
1711
3024
|
|
|
1712
3025
|
/**
|
|
3026
|
+
* Optional. Queries executed by the retrieval tools.
|
|
3027
|
+
*
|
|
1713
3028
|
* @generated from field: repeated string retrieval_queries = 3;
|
|
1714
3029
|
*/
|
|
1715
3030
|
retrievalQueries: string[];
|
|
1716
3031
|
|
|
1717
3032
|
/**
|
|
3033
|
+
* Optional. Google search entry for the following-up web searches.
|
|
3034
|
+
*
|
|
1718
3035
|
* @generated from field: alis.adk.sessions.v1.SearchEntryPoint search_entry_point = 4;
|
|
1719
3036
|
*/
|
|
1720
3037
|
searchEntryPoint?: SearchEntryPoint | undefined;
|
|
1721
3038
|
|
|
1722
3039
|
/**
|
|
3040
|
+
* List of supporting references retrieved from specified grounding source.
|
|
3041
|
+
*
|
|
1723
3042
|
* @generated from field: repeated alis.adk.sessions.v1.GroundingChunk grounding_chunks = 5;
|
|
1724
3043
|
*/
|
|
1725
3044
|
groundingChunks: GroundingChunk[];
|
|
1726
3045
|
|
|
1727
3046
|
/**
|
|
3047
|
+
* Optional. List of grounding support.
|
|
3048
|
+
*
|
|
1728
3049
|
* @generated from field: repeated alis.adk.sessions.v1.GroundingSupport grounding_supports = 6;
|
|
1729
3050
|
*/
|
|
1730
3051
|
groundingSupports: GroundingSupport[];
|
|
1731
3052
|
|
|
1732
3053
|
/**
|
|
3054
|
+
* Optional. Output only. Retrieval metadata.
|
|
3055
|
+
*
|
|
1733
3056
|
* @generated from field: alis.adk.sessions.v1.RetrievalMetadata retrieval_metadata = 7;
|
|
1734
3057
|
*/
|
|
1735
3058
|
retrievalMetadata?: RetrievalMetadata | undefined;
|
|
1736
3059
|
|
|
1737
3060
|
/**
|
|
3061
|
+
* Optional. Output only. Resource name of the Google Maps widget context
|
|
3062
|
+
* token to be used with the PlacesContextElement widget to render contextual
|
|
3063
|
+
* data. This is populated only for Google Maps grounding.
|
|
3064
|
+
*
|
|
1738
3065
|
* @generated from field: string google_maps_widget_context_token = 8;
|
|
1739
3066
|
*/
|
|
1740
3067
|
googleMapsWidgetContextToken: string;
|
|
1741
3068
|
|
|
1742
3069
|
/**
|
|
3070
|
+
* List of source flagging URIs. This is currently populated only for Google
|
|
3071
|
+
* Maps grounding.
|
|
3072
|
+
*
|
|
1743
3073
|
* @generated from field: repeated alis.adk.sessions.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
|
|
1744
3074
|
*/
|
|
1745
3075
|
sourceFlaggingUris: GroundingMetadata_SourceFlaggingUri[];
|
|
1746
3076
|
};
|
|
1747
3077
|
|
|
1748
3078
|
/**
|
|
3079
|
+
* GroundingMetadata contains metadata returned to client when grounding is
|
|
3080
|
+
* enabled.
|
|
3081
|
+
*
|
|
1749
3082
|
* @generated from message alis.adk.sessions.v1.GroundingMetadata
|
|
1750
3083
|
*/
|
|
1751
3084
|
export declare type GroundingMetadataJson = {
|
|
1752
3085
|
/**
|
|
3086
|
+
* Optional. Web search queries for the following-up web search.
|
|
3087
|
+
*
|
|
1753
3088
|
* @generated from field: repeated string web_search_queries = 1;
|
|
1754
3089
|
*/
|
|
1755
3090
|
webSearchQueries?: string[];
|
|
1756
3091
|
|
|
1757
3092
|
/**
|
|
3093
|
+
* Optional. Queries executed by the retrieval tools.
|
|
3094
|
+
*
|
|
1758
3095
|
* @generated from field: repeated string retrieval_queries = 3;
|
|
1759
3096
|
*/
|
|
1760
3097
|
retrievalQueries?: string[];
|
|
1761
3098
|
|
|
1762
3099
|
/**
|
|
3100
|
+
* Optional. Google search entry for the following-up web searches.
|
|
3101
|
+
*
|
|
1763
3102
|
* @generated from field: alis.adk.sessions.v1.SearchEntryPoint search_entry_point = 4;
|
|
1764
3103
|
*/
|
|
1765
3104
|
searchEntryPoint?: SearchEntryPointJson;
|
|
1766
3105
|
|
|
1767
3106
|
/**
|
|
3107
|
+
* List of supporting references retrieved from specified grounding source.
|
|
3108
|
+
*
|
|
1768
3109
|
* @generated from field: repeated alis.adk.sessions.v1.GroundingChunk grounding_chunks = 5;
|
|
1769
3110
|
*/
|
|
1770
3111
|
groundingChunks?: GroundingChunkJson[];
|
|
1771
3112
|
|
|
1772
3113
|
/**
|
|
3114
|
+
* Optional. List of grounding support.
|
|
3115
|
+
*
|
|
1773
3116
|
* @generated from field: repeated alis.adk.sessions.v1.GroundingSupport grounding_supports = 6;
|
|
1774
3117
|
*/
|
|
1775
3118
|
groundingSupports?: GroundingSupportJson[];
|
|
1776
3119
|
|
|
1777
3120
|
/**
|
|
3121
|
+
* Optional. Output only. Retrieval metadata.
|
|
3122
|
+
*
|
|
1778
3123
|
* @generated from field: alis.adk.sessions.v1.RetrievalMetadata retrieval_metadata = 7;
|
|
1779
3124
|
*/
|
|
1780
3125
|
retrievalMetadata?: RetrievalMetadataJson;
|
|
1781
3126
|
|
|
1782
3127
|
/**
|
|
3128
|
+
* Optional. Output only. Resource name of the Google Maps widget context
|
|
3129
|
+
* token to be used with the PlacesContextElement widget to render contextual
|
|
3130
|
+
* data. This is populated only for Google Maps grounding.
|
|
3131
|
+
*
|
|
1783
3132
|
* @generated from field: string google_maps_widget_context_token = 8;
|
|
1784
3133
|
*/
|
|
1785
3134
|
googleMapsWidgetContextToken?: string;
|
|
1786
3135
|
|
|
1787
3136
|
/**
|
|
3137
|
+
* List of source flagging URIs. This is currently populated only for Google
|
|
3138
|
+
* Maps grounding.
|
|
3139
|
+
*
|
|
1788
3140
|
* @generated from field: repeated alis.adk.sessions.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
|
|
1789
3141
|
*/
|
|
1790
3142
|
sourceFlaggingUris?: GroundingMetadata_SourceFlaggingUriJson[];
|
|
@@ -1797,30 +3149,50 @@ export declare type GroundingMetadataJson = {
|
|
|
1797
3149
|
export declare const GroundingMetadataSchema: GenMessage<GroundingMetadata, {jsonType: GroundingMetadataJson}>;
|
|
1798
3150
|
|
|
1799
3151
|
/**
|
|
3152
|
+
* SourceFlaggingUri represents a source content flagging URI for a place or
|
|
3153
|
+
* review. This is currently populated only for Google Maps grounding.
|
|
3154
|
+
*
|
|
1800
3155
|
* @generated from message alis.adk.sessions.v1.GroundingMetadata.SourceFlaggingUri
|
|
1801
3156
|
*/
|
|
1802
3157
|
export declare type GroundingMetadata_SourceFlaggingUri = Message<"alis.adk.sessions.v1.GroundingMetadata.SourceFlaggingUri"> & {
|
|
1803
3158
|
/**
|
|
3159
|
+
* ID of the place or review.
|
|
3160
|
+
*
|
|
1804
3161
|
* @generated from field: string source_id = 1;
|
|
1805
3162
|
*/
|
|
1806
3163
|
sourceId: string;
|
|
1807
3164
|
|
|
1808
3165
|
/**
|
|
3166
|
+
* A link where users can flag a problem with the source (place or review).
|
|
3167
|
+
* The link is generated by Google and it does not contain information from
|
|
3168
|
+
* the user query. It may contain information of the content it is flagging,
|
|
3169
|
+
* which can be used to identify places.
|
|
3170
|
+
*
|
|
1809
3171
|
* @generated from field: string flag_content_uri = 2;
|
|
1810
3172
|
*/
|
|
1811
3173
|
flagContentUri: string;
|
|
1812
3174
|
};
|
|
1813
3175
|
|
|
1814
3176
|
/**
|
|
3177
|
+
* SourceFlaggingUri represents a source content flagging URI for a place or
|
|
3178
|
+
* review. This is currently populated only for Google Maps grounding.
|
|
3179
|
+
*
|
|
1815
3180
|
* @generated from message alis.adk.sessions.v1.GroundingMetadata.SourceFlaggingUri
|
|
1816
3181
|
*/
|
|
1817
3182
|
export declare type GroundingMetadata_SourceFlaggingUriJson = {
|
|
1818
3183
|
/**
|
|
3184
|
+
* ID of the place or review.
|
|
3185
|
+
*
|
|
1819
3186
|
* @generated from field: string source_id = 1;
|
|
1820
3187
|
*/
|
|
1821
3188
|
sourceId?: string;
|
|
1822
3189
|
|
|
1823
3190
|
/**
|
|
3191
|
+
* A link where users can flag a problem with the source (place or review).
|
|
3192
|
+
* The link is generated by Google and it does not contain information from
|
|
3193
|
+
* the user query. It may contain information of the content it is flagging,
|
|
3194
|
+
* which can be used to identify places.
|
|
3195
|
+
*
|
|
1824
3196
|
* @generated from field: string flag_content_uri = 2;
|
|
1825
3197
|
*/
|
|
1826
3198
|
flagContentUri?: string;
|
|
@@ -1833,26 +3205,37 @@ export declare type GroundingMetadata_SourceFlaggingUriJson = {
|
|
|
1833
3205
|
export declare const GroundingMetadata_SourceFlaggingUriSchema: GenMessage<GroundingMetadata_SourceFlaggingUri, {jsonType: GroundingMetadata_SourceFlaggingUriJson}>;
|
|
1834
3206
|
|
|
1835
3207
|
/**
|
|
3208
|
+
* GroundingChunk represents a chunk of grounding information from various
|
|
3209
|
+
* sources.
|
|
3210
|
+
*
|
|
1836
3211
|
* @generated from message alis.adk.sessions.v1.GroundingChunk
|
|
1837
3212
|
*/
|
|
1838
3213
|
export declare type GroundingChunk = Message<"alis.adk.sessions.v1.GroundingChunk"> & {
|
|
1839
3214
|
/**
|
|
3215
|
+
* Chunk type.
|
|
3216
|
+
*
|
|
1840
3217
|
* @generated from oneof alis.adk.sessions.v1.GroundingChunk.chunk_type
|
|
1841
3218
|
*/
|
|
1842
3219
|
chunkType: {
|
|
1843
3220
|
/**
|
|
3221
|
+
* Grounding chunk from the web.
|
|
3222
|
+
*
|
|
1844
3223
|
* @generated from field: alis.adk.sessions.v1.GroundingChunk.Web web = 1;
|
|
1845
3224
|
*/
|
|
1846
3225
|
value: GroundingChunk_Web;
|
|
1847
3226
|
case: "web";
|
|
1848
3227
|
} | {
|
|
1849
3228
|
/**
|
|
3229
|
+
* Grounding chunk from context retrieved by the retrieval tools.
|
|
3230
|
+
*
|
|
1850
3231
|
* @generated from field: alis.adk.sessions.v1.GroundingChunk.RetrievedContext retrieved_context = 2;
|
|
1851
3232
|
*/
|
|
1852
3233
|
value: GroundingChunk_RetrievedContext;
|
|
1853
3234
|
case: "retrievedContext";
|
|
1854
3235
|
} | {
|
|
1855
3236
|
/**
|
|
3237
|
+
* Grounding chunk from Google Maps.
|
|
3238
|
+
*
|
|
1856
3239
|
* @generated from field: alis.adk.sessions.v1.GroundingChunk.Maps maps = 3;
|
|
1857
3240
|
*/
|
|
1858
3241
|
value: GroundingChunk_Maps;
|
|
@@ -1861,20 +3244,29 @@ export declare type GroundingChunk = Message<"alis.adk.sessions.v1.GroundingChun
|
|
|
1861
3244
|
};
|
|
1862
3245
|
|
|
1863
3246
|
/**
|
|
3247
|
+
* GroundingChunk represents a chunk of grounding information from various
|
|
3248
|
+
* sources.
|
|
3249
|
+
*
|
|
1864
3250
|
* @generated from message alis.adk.sessions.v1.GroundingChunk
|
|
1865
3251
|
*/
|
|
1866
3252
|
export declare type GroundingChunkJson = {
|
|
1867
3253
|
/**
|
|
3254
|
+
* Grounding chunk from the web.
|
|
3255
|
+
*
|
|
1868
3256
|
* @generated from field: alis.adk.sessions.v1.GroundingChunk.Web web = 1;
|
|
1869
3257
|
*/
|
|
1870
3258
|
web?: GroundingChunk_WebJson;
|
|
1871
3259
|
|
|
1872
3260
|
/**
|
|
3261
|
+
* Grounding chunk from context retrieved by the retrieval tools.
|
|
3262
|
+
*
|
|
1873
3263
|
* @generated from field: alis.adk.sessions.v1.GroundingChunk.RetrievedContext retrieved_context = 2;
|
|
1874
3264
|
*/
|
|
1875
3265
|
retrievedContext?: GroundingChunk_RetrievedContextJson;
|
|
1876
3266
|
|
|
1877
3267
|
/**
|
|
3268
|
+
* Grounding chunk from Google Maps.
|
|
3269
|
+
*
|
|
1878
3270
|
* @generated from field: alis.adk.sessions.v1.GroundingChunk.Maps maps = 3;
|
|
1879
3271
|
*/
|
|
1880
3272
|
maps?: GroundingChunk_MapsJson;
|
|
@@ -1887,40 +3279,56 @@ export declare type GroundingChunkJson = {
|
|
|
1887
3279
|
export declare const GroundingChunkSchema: GenMessage<GroundingChunk, {jsonType: GroundingChunkJson}>;
|
|
1888
3280
|
|
|
1889
3281
|
/**
|
|
3282
|
+
* Web represents a chunk from the web.
|
|
3283
|
+
*
|
|
1890
3284
|
* @generated from message alis.adk.sessions.v1.GroundingChunk.Web
|
|
1891
3285
|
*/
|
|
1892
3286
|
export declare type GroundingChunk_Web = Message<"alis.adk.sessions.v1.GroundingChunk.Web"> & {
|
|
1893
3287
|
/**
|
|
3288
|
+
* Optional. Domain of the chunk.
|
|
3289
|
+
*
|
|
1894
3290
|
* @generated from field: string domain = 1;
|
|
1895
3291
|
*/
|
|
1896
3292
|
domain: string;
|
|
1897
3293
|
|
|
1898
3294
|
/**
|
|
3295
|
+
* Optional. URI reference of the chunk.
|
|
3296
|
+
*
|
|
1899
3297
|
* @generated from field: string uri = 2;
|
|
1900
3298
|
*/
|
|
1901
3299
|
uri: string;
|
|
1902
3300
|
|
|
1903
3301
|
/**
|
|
3302
|
+
* Optional. Title of the chunk.
|
|
3303
|
+
*
|
|
1904
3304
|
* @generated from field: string title = 3;
|
|
1905
3305
|
*/
|
|
1906
3306
|
title: string;
|
|
1907
3307
|
};
|
|
1908
3308
|
|
|
1909
3309
|
/**
|
|
3310
|
+
* Web represents a chunk from the web.
|
|
3311
|
+
*
|
|
1910
3312
|
* @generated from message alis.adk.sessions.v1.GroundingChunk.Web
|
|
1911
3313
|
*/
|
|
1912
3314
|
export declare type GroundingChunk_WebJson = {
|
|
1913
3315
|
/**
|
|
3316
|
+
* Optional. Domain of the chunk.
|
|
3317
|
+
*
|
|
1914
3318
|
* @generated from field: string domain = 1;
|
|
1915
3319
|
*/
|
|
1916
3320
|
domain?: string;
|
|
1917
3321
|
|
|
1918
3322
|
/**
|
|
3323
|
+
* Optional. URI reference of the chunk.
|
|
3324
|
+
*
|
|
1919
3325
|
* @generated from field: string uri = 2;
|
|
1920
3326
|
*/
|
|
1921
3327
|
uri?: string;
|
|
1922
3328
|
|
|
1923
3329
|
/**
|
|
3330
|
+
* Optional. Title of the chunk.
|
|
3331
|
+
*
|
|
1924
3332
|
* @generated from field: string title = 3;
|
|
1925
3333
|
*/
|
|
1926
3334
|
title?: string;
|
|
@@ -1933,29 +3341,43 @@ export declare type GroundingChunk_WebJson = {
|
|
|
1933
3341
|
export declare const GroundingChunk_WebSchema: GenMessage<GroundingChunk_Web, {jsonType: GroundingChunk_WebJson}>;
|
|
1934
3342
|
|
|
1935
3343
|
/**
|
|
3344
|
+
* RetrievedContext represents a chunk from context retrieved by the retrieval
|
|
3345
|
+
* tools.
|
|
3346
|
+
*
|
|
1936
3347
|
* @generated from message alis.adk.sessions.v1.GroundingChunk.RetrievedContext
|
|
1937
3348
|
*/
|
|
1938
3349
|
export declare type GroundingChunk_RetrievedContext = Message<"alis.adk.sessions.v1.GroundingChunk.RetrievedContext"> & {
|
|
1939
3350
|
/**
|
|
3351
|
+
* Optional. URI reference of the attribution.
|
|
3352
|
+
*
|
|
1940
3353
|
* @generated from field: string uri = 1;
|
|
1941
3354
|
*/
|
|
1942
3355
|
uri: string;
|
|
1943
3356
|
|
|
1944
3357
|
/**
|
|
3358
|
+
* Optional. Title of the attribution.
|
|
3359
|
+
*
|
|
1945
3360
|
* @generated from field: string title = 2;
|
|
1946
3361
|
*/
|
|
1947
3362
|
title: string;
|
|
1948
3363
|
|
|
1949
3364
|
/**
|
|
3365
|
+
* Optional. Text of the attribution.
|
|
3366
|
+
*
|
|
1950
3367
|
* @generated from field: string text = 3;
|
|
1951
3368
|
*/
|
|
1952
3369
|
text: string;
|
|
1953
3370
|
|
|
1954
3371
|
/**
|
|
3372
|
+
* Tool-specific details about the retrieved context.
|
|
3373
|
+
*
|
|
1955
3374
|
* @generated from oneof alis.adk.sessions.v1.GroundingChunk.RetrievedContext.context_details
|
|
1956
3375
|
*/
|
|
1957
3376
|
contextDetails: {
|
|
1958
3377
|
/**
|
|
3378
|
+
* Additional context for the RAG retrieval result. This is only populated
|
|
3379
|
+
* when using the RAG retrieval tool.
|
|
3380
|
+
*
|
|
1959
3381
|
* @generated from field: alis.adk.sessions.v1.RagChunk rag_chunk = 4;
|
|
1960
3382
|
*/
|
|
1961
3383
|
value: RagChunk;
|
|
@@ -1963,36 +3385,54 @@ export declare type GroundingChunk_RetrievedContext = Message<"alis.adk.sessions
|
|
|
1963
3385
|
} | { case: undefined; value?: undefined };
|
|
1964
3386
|
|
|
1965
3387
|
/**
|
|
3388
|
+
* Optional. Output only. The full document name for the referenced Vertex
|
|
3389
|
+
* AI Search document.
|
|
3390
|
+
*
|
|
1966
3391
|
* @generated from field: string document_name = 6;
|
|
1967
3392
|
*/
|
|
1968
3393
|
documentName: string;
|
|
1969
3394
|
};
|
|
1970
3395
|
|
|
1971
3396
|
/**
|
|
3397
|
+
* RetrievedContext represents a chunk from context retrieved by the retrieval
|
|
3398
|
+
* tools.
|
|
3399
|
+
*
|
|
1972
3400
|
* @generated from message alis.adk.sessions.v1.GroundingChunk.RetrievedContext
|
|
1973
3401
|
*/
|
|
1974
3402
|
export declare type GroundingChunk_RetrievedContextJson = {
|
|
1975
3403
|
/**
|
|
3404
|
+
* Optional. URI reference of the attribution.
|
|
3405
|
+
*
|
|
1976
3406
|
* @generated from field: string uri = 1;
|
|
1977
3407
|
*/
|
|
1978
3408
|
uri?: string;
|
|
1979
3409
|
|
|
1980
3410
|
/**
|
|
3411
|
+
* Optional. Title of the attribution.
|
|
3412
|
+
*
|
|
1981
3413
|
* @generated from field: string title = 2;
|
|
1982
3414
|
*/
|
|
1983
3415
|
title?: string;
|
|
1984
3416
|
|
|
1985
3417
|
/**
|
|
3418
|
+
* Optional. Text of the attribution.
|
|
3419
|
+
*
|
|
1986
3420
|
* @generated from field: string text = 3;
|
|
1987
3421
|
*/
|
|
1988
3422
|
text?: string;
|
|
1989
3423
|
|
|
1990
3424
|
/**
|
|
3425
|
+
* Additional context for the RAG retrieval result. This is only populated
|
|
3426
|
+
* when using the RAG retrieval tool.
|
|
3427
|
+
*
|
|
1991
3428
|
* @generated from field: alis.adk.sessions.v1.RagChunk rag_chunk = 4;
|
|
1992
3429
|
*/
|
|
1993
3430
|
ragChunk?: RagChunkJson;
|
|
1994
3431
|
|
|
1995
3432
|
/**
|
|
3433
|
+
* Optional. Output only. The full document name for the referenced Vertex
|
|
3434
|
+
* AI Search document.
|
|
3435
|
+
*
|
|
1996
3436
|
* @generated from field: string document_name = 6;
|
|
1997
3437
|
*/
|
|
1998
3438
|
documentName?: string;
|
|
@@ -2005,60 +3445,90 @@ export declare type GroundingChunk_RetrievedContextJson = {
|
|
|
2005
3445
|
export declare const GroundingChunk_RetrievedContextSchema: GenMessage<GroundingChunk_RetrievedContext, {jsonType: GroundingChunk_RetrievedContextJson}>;
|
|
2006
3446
|
|
|
2007
3447
|
/**
|
|
3448
|
+
* Maps represents a chunk from Google Maps.
|
|
3449
|
+
*
|
|
2008
3450
|
* @generated from message alis.adk.sessions.v1.GroundingChunk.Maps
|
|
2009
3451
|
*/
|
|
2010
3452
|
export declare type GroundingChunk_Maps = Message<"alis.adk.sessions.v1.GroundingChunk.Maps"> & {
|
|
2011
3453
|
/**
|
|
3454
|
+
* Optional. URI reference of the chunk.
|
|
3455
|
+
*
|
|
2012
3456
|
* @generated from field: string uri = 1;
|
|
2013
3457
|
*/
|
|
2014
3458
|
uri: string;
|
|
2015
3459
|
|
|
2016
3460
|
/**
|
|
3461
|
+
* Optional. Title of the chunk.
|
|
3462
|
+
*
|
|
2017
3463
|
* @generated from field: string title = 2;
|
|
2018
3464
|
*/
|
|
2019
3465
|
title: string;
|
|
2020
3466
|
|
|
2021
3467
|
/**
|
|
3468
|
+
* Optional. Text of the chunk.
|
|
3469
|
+
*
|
|
2022
3470
|
* @generated from field: string text = 3;
|
|
2023
3471
|
*/
|
|
2024
3472
|
text: string;
|
|
2025
3473
|
|
|
2026
3474
|
/**
|
|
3475
|
+
* Optional. This Place's resource name, in `places/{place_id}` format.
|
|
3476
|
+
* Can be used to look up the Place.
|
|
3477
|
+
*
|
|
2027
3478
|
* @generated from field: string place_id = 4;
|
|
2028
3479
|
*/
|
|
2029
3480
|
placeId: string;
|
|
2030
3481
|
|
|
2031
3482
|
/**
|
|
3483
|
+
* Sources used to generate the place answer.
|
|
3484
|
+
* This includes review snippets and photos that were used to generate the
|
|
3485
|
+
* answer, as well as URIs to flag content.
|
|
3486
|
+
*
|
|
2032
3487
|
* @generated from field: alis.adk.sessions.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
|
|
2033
3488
|
*/
|
|
2034
3489
|
placeAnswerSources?: GroundingChunk_Maps_PlaceAnswerSources | undefined;
|
|
2035
3490
|
};
|
|
2036
3491
|
|
|
2037
3492
|
/**
|
|
3493
|
+
* Maps represents a chunk from Google Maps.
|
|
3494
|
+
*
|
|
2038
3495
|
* @generated from message alis.adk.sessions.v1.GroundingChunk.Maps
|
|
2039
3496
|
*/
|
|
2040
3497
|
export declare type GroundingChunk_MapsJson = {
|
|
2041
3498
|
/**
|
|
3499
|
+
* Optional. URI reference of the chunk.
|
|
3500
|
+
*
|
|
2042
3501
|
* @generated from field: string uri = 1;
|
|
2043
3502
|
*/
|
|
2044
3503
|
uri?: string;
|
|
2045
3504
|
|
|
2046
3505
|
/**
|
|
3506
|
+
* Optional. Title of the chunk.
|
|
3507
|
+
*
|
|
2047
3508
|
* @generated from field: string title = 2;
|
|
2048
3509
|
*/
|
|
2049
3510
|
title?: string;
|
|
2050
3511
|
|
|
2051
3512
|
/**
|
|
3513
|
+
* Optional. Text of the chunk.
|
|
3514
|
+
*
|
|
2052
3515
|
* @generated from field: string text = 3;
|
|
2053
3516
|
*/
|
|
2054
3517
|
text?: string;
|
|
2055
3518
|
|
|
2056
3519
|
/**
|
|
3520
|
+
* Optional. This Place's resource name, in `places/{place_id}` format.
|
|
3521
|
+
* Can be used to look up the Place.
|
|
3522
|
+
*
|
|
2057
3523
|
* @generated from field: string place_id = 4;
|
|
2058
3524
|
*/
|
|
2059
3525
|
placeId?: string;
|
|
2060
3526
|
|
|
2061
3527
|
/**
|
|
3528
|
+
* Sources used to generate the place answer.
|
|
3529
|
+
* This includes review snippets and photos that were used to generate the
|
|
3530
|
+
* answer, as well as URIs to flag content.
|
|
3531
|
+
*
|
|
2062
3532
|
* @generated from field: alis.adk.sessions.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
|
|
2063
3533
|
*/
|
|
2064
3534
|
placeAnswerSources?: GroundingChunk_Maps_PlaceAnswerSourcesJson;
|
|
@@ -2071,30 +3541,42 @@ export declare type GroundingChunk_MapsJson = {
|
|
|
2071
3541
|
export declare const GroundingChunk_MapsSchema: GenMessage<GroundingChunk_Maps, {jsonType: GroundingChunk_MapsJson}>;
|
|
2072
3542
|
|
|
2073
3543
|
/**
|
|
3544
|
+
* PlaceAnswerSources contains sources used to generate the place answer.
|
|
3545
|
+
*
|
|
2074
3546
|
* @generated from message alis.adk.sessions.v1.GroundingChunk.Maps.PlaceAnswerSources
|
|
2075
3547
|
*/
|
|
2076
3548
|
export declare type GroundingChunk_Maps_PlaceAnswerSources = Message<"alis.adk.sessions.v1.GroundingChunk.Maps.PlaceAnswerSources"> & {
|
|
2077
3549
|
/**
|
|
3550
|
+
* Snippets of reviews that are used to generate the answer.
|
|
3551
|
+
*
|
|
2078
3552
|
* @generated from field: repeated alis.adk.sessions.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
|
|
2079
3553
|
*/
|
|
2080
3554
|
reviewSnippets: GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippet[];
|
|
2081
3555
|
|
|
2082
3556
|
/**
|
|
3557
|
+
* A link where users can flag a problem with the generated answer.
|
|
3558
|
+
*
|
|
2083
3559
|
* @generated from field: string flag_content_uri = 2;
|
|
2084
3560
|
*/
|
|
2085
3561
|
flagContentUri: string;
|
|
2086
3562
|
};
|
|
2087
3563
|
|
|
2088
3564
|
/**
|
|
3565
|
+
* PlaceAnswerSources contains sources used to generate the place answer.
|
|
3566
|
+
*
|
|
2089
3567
|
* @generated from message alis.adk.sessions.v1.GroundingChunk.Maps.PlaceAnswerSources
|
|
2090
3568
|
*/
|
|
2091
3569
|
export declare type GroundingChunk_Maps_PlaceAnswerSourcesJson = {
|
|
2092
3570
|
/**
|
|
3571
|
+
* Snippets of reviews that are used to generate the answer.
|
|
3572
|
+
*
|
|
2093
3573
|
* @generated from field: repeated alis.adk.sessions.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
|
|
2094
3574
|
*/
|
|
2095
3575
|
reviewSnippets?: GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippetJson[];
|
|
2096
3576
|
|
|
2097
3577
|
/**
|
|
3578
|
+
* A link where users can flag a problem with the generated answer.
|
|
3579
|
+
*
|
|
2098
3580
|
* @generated from field: string flag_content_uri = 2;
|
|
2099
3581
|
*/
|
|
2100
3582
|
flagContentUri?: string;
|
|
@@ -2107,70 +3589,104 @@ export declare type GroundingChunk_Maps_PlaceAnswerSourcesJson = {
|
|
|
2107
3589
|
export declare const GroundingChunk_Maps_PlaceAnswerSourcesSchema: GenMessage<GroundingChunk_Maps_PlaceAnswerSources, {jsonType: GroundingChunk_Maps_PlaceAnswerSourcesJson}>;
|
|
2108
3590
|
|
|
2109
3591
|
/**
|
|
3592
|
+
* ReviewSnippet encapsulates a review snippet.
|
|
3593
|
+
*
|
|
2110
3594
|
* @generated from message alis.adk.sessions.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
|
|
2111
3595
|
*/
|
|
2112
3596
|
export declare type GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippet = Message<"alis.adk.sessions.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet"> & {
|
|
2113
3597
|
/**
|
|
3598
|
+
* ID of the review referencing the place.
|
|
3599
|
+
*
|
|
2114
3600
|
* @generated from field: string review_id = 1;
|
|
2115
3601
|
*/
|
|
2116
3602
|
reviewId: string;
|
|
2117
3603
|
|
|
2118
3604
|
/**
|
|
3605
|
+
* A link to show the review on Google Maps.
|
|
3606
|
+
*
|
|
2119
3607
|
* @generated from field: string google_maps_uri = 2;
|
|
2120
3608
|
*/
|
|
2121
3609
|
googleMapsUri: string;
|
|
2122
3610
|
|
|
2123
3611
|
/**
|
|
3612
|
+
* Title of the review.
|
|
3613
|
+
*
|
|
2124
3614
|
* @generated from field: string title = 3;
|
|
2125
3615
|
*/
|
|
2126
3616
|
title: string;
|
|
2127
3617
|
|
|
2128
3618
|
/**
|
|
3619
|
+
* A reference representing this place review which may be used to look
|
|
3620
|
+
* up this place review again.
|
|
3621
|
+
*
|
|
2129
3622
|
* @generated from field: string review = 4;
|
|
2130
3623
|
*/
|
|
2131
3624
|
review: string;
|
|
2132
3625
|
|
|
2133
3626
|
/**
|
|
3627
|
+
* A link where users can flag a problem with the generated answer.
|
|
3628
|
+
*
|
|
2134
3629
|
* @generated from field: string flag_content_uri = 5;
|
|
2135
3630
|
*/
|
|
2136
3631
|
flagContentUri: string;
|
|
2137
3632
|
|
|
2138
3633
|
/**
|
|
3634
|
+
* A string of formatted recent time, expressing the review time
|
|
3635
|
+
* relative to the current time in a form appropriate for the language
|
|
3636
|
+
* and country.
|
|
3637
|
+
*
|
|
2139
3638
|
* @generated from field: string relative_publish_time_description = 6;
|
|
2140
3639
|
*/
|
|
2141
3640
|
relativePublishTimeDescription: string;
|
|
2142
3641
|
};
|
|
2143
3642
|
|
|
2144
3643
|
/**
|
|
3644
|
+
* ReviewSnippet encapsulates a review snippet.
|
|
3645
|
+
*
|
|
2145
3646
|
* @generated from message alis.adk.sessions.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
|
|
2146
3647
|
*/
|
|
2147
3648
|
export declare type GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippetJson = {
|
|
2148
3649
|
/**
|
|
3650
|
+
* ID of the review referencing the place.
|
|
3651
|
+
*
|
|
2149
3652
|
* @generated from field: string review_id = 1;
|
|
2150
3653
|
*/
|
|
2151
3654
|
reviewId?: string;
|
|
2152
3655
|
|
|
2153
3656
|
/**
|
|
3657
|
+
* A link to show the review on Google Maps.
|
|
3658
|
+
*
|
|
2154
3659
|
* @generated from field: string google_maps_uri = 2;
|
|
2155
3660
|
*/
|
|
2156
3661
|
googleMapsUri?: string;
|
|
2157
3662
|
|
|
2158
3663
|
/**
|
|
3664
|
+
* Title of the review.
|
|
3665
|
+
*
|
|
2159
3666
|
* @generated from field: string title = 3;
|
|
2160
3667
|
*/
|
|
2161
3668
|
title?: string;
|
|
2162
3669
|
|
|
2163
3670
|
/**
|
|
3671
|
+
* A reference representing this place review which may be used to look
|
|
3672
|
+
* up this place review again.
|
|
3673
|
+
*
|
|
2164
3674
|
* @generated from field: string review = 4;
|
|
2165
3675
|
*/
|
|
2166
3676
|
review?: string;
|
|
2167
3677
|
|
|
2168
3678
|
/**
|
|
3679
|
+
* A link where users can flag a problem with the generated answer.
|
|
3680
|
+
*
|
|
2169
3681
|
* @generated from field: string flag_content_uri = 5;
|
|
2170
3682
|
*/
|
|
2171
3683
|
flagContentUri?: string;
|
|
2172
3684
|
|
|
2173
3685
|
/**
|
|
3686
|
+
* A string of formatted recent time, expressing the review time
|
|
3687
|
+
* relative to the current time in a form appropriate for the language
|
|
3688
|
+
* and country.
|
|
3689
|
+
*
|
|
2174
3690
|
* @generated from field: string relative_publish_time_description = 6;
|
|
2175
3691
|
*/
|
|
2176
3692
|
relativePublishTimeDescription?: string;
|
|
@@ -2183,40 +3699,66 @@ export declare type GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippetJson = {
|
|
|
2183
3699
|
export declare const GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippetSchema: GenMessage<GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippet, {jsonType: GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippetJson}>;
|
|
2184
3700
|
|
|
2185
3701
|
/**
|
|
3702
|
+
* GroundingSupport represents grounding support for a claim in the content.
|
|
3703
|
+
*
|
|
2186
3704
|
* @generated from message alis.adk.sessions.v1.GroundingSupport
|
|
2187
3705
|
*/
|
|
2188
3706
|
export declare type GroundingSupport = Message<"alis.adk.sessions.v1.GroundingSupport"> & {
|
|
2189
3707
|
/**
|
|
3708
|
+
* Optional. Segment of the content this support belongs to.
|
|
3709
|
+
*
|
|
2190
3710
|
* @generated from field: alis.adk.sessions.v1.Segment segment = 1;
|
|
2191
3711
|
*/
|
|
2192
3712
|
segment?: Segment | undefined;
|
|
2193
3713
|
|
|
2194
3714
|
/**
|
|
3715
|
+
* A list of indices (into 'grounding_chunk') specifying the citations
|
|
3716
|
+
* associated with the claim. For instance [1,3,4] means that
|
|
3717
|
+
* grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the
|
|
3718
|
+
* retrieved content attributed to the claim.
|
|
3719
|
+
*
|
|
2195
3720
|
* @generated from field: repeated int32 grounding_chunk_indices = 2;
|
|
2196
3721
|
*/
|
|
2197
3722
|
groundingChunkIndices: number[];
|
|
2198
3723
|
|
|
2199
3724
|
/**
|
|
3725
|
+
* Confidence score of the support references. Ranges from 0 to 1. 1 is the
|
|
3726
|
+
* most confident. This list must have the same size as the
|
|
3727
|
+
* grounding_chunk_indices.
|
|
3728
|
+
*
|
|
2200
3729
|
* @generated from field: repeated float confidence_scores = 3;
|
|
2201
3730
|
*/
|
|
2202
3731
|
confidenceScores: number[];
|
|
2203
3732
|
};
|
|
2204
3733
|
|
|
2205
3734
|
/**
|
|
3735
|
+
* GroundingSupport represents grounding support for a claim in the content.
|
|
3736
|
+
*
|
|
2206
3737
|
* @generated from message alis.adk.sessions.v1.GroundingSupport
|
|
2207
3738
|
*/
|
|
2208
3739
|
export declare type GroundingSupportJson = {
|
|
2209
3740
|
/**
|
|
3741
|
+
* Optional. Segment of the content this support belongs to.
|
|
3742
|
+
*
|
|
2210
3743
|
* @generated from field: alis.adk.sessions.v1.Segment segment = 1;
|
|
2211
3744
|
*/
|
|
2212
3745
|
segment?: SegmentJson;
|
|
2213
3746
|
|
|
2214
3747
|
/**
|
|
3748
|
+
* A list of indices (into 'grounding_chunk') specifying the citations
|
|
3749
|
+
* associated with the claim. For instance [1,3,4] means that
|
|
3750
|
+
* grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the
|
|
3751
|
+
* retrieved content attributed to the claim.
|
|
3752
|
+
*
|
|
2215
3753
|
* @generated from field: repeated int32 grounding_chunk_indices = 2;
|
|
2216
3754
|
*/
|
|
2217
3755
|
groundingChunkIndices?: number[];
|
|
2218
3756
|
|
|
2219
3757
|
/**
|
|
3758
|
+
* Confidence score of the support references. Ranges from 0 to 1. 1 is the
|
|
3759
|
+
* most confident. This list must have the same size as the
|
|
3760
|
+
* grounding_chunk_indices.
|
|
3761
|
+
*
|
|
2220
3762
|
* @generated from field: repeated float confidence_scores = 3;
|
|
2221
3763
|
*/
|
|
2222
3764
|
confidenceScores?: (number | "NaN" | "Infinity" | "-Infinity")[];
|
|
@@ -2229,50 +3771,74 @@ export declare type GroundingSupportJson = {
|
|
|
2229
3771
|
export declare const GroundingSupportSchema: GenMessage<GroundingSupport, {jsonType: GroundingSupportJson}>;
|
|
2230
3772
|
|
|
2231
3773
|
/**
|
|
3774
|
+
* Segment represents a segment of the content.
|
|
3775
|
+
*
|
|
2232
3776
|
* @generated from message alis.adk.sessions.v1.Segment
|
|
2233
3777
|
*/
|
|
2234
3778
|
export declare type Segment = Message<"alis.adk.sessions.v1.Segment"> & {
|
|
2235
3779
|
/**
|
|
3780
|
+
* Output only. The index of a Part object within its parent Content object.
|
|
3781
|
+
*
|
|
2236
3782
|
* @generated from field: int32 part_index = 1;
|
|
2237
3783
|
*/
|
|
2238
3784
|
partIndex: number;
|
|
2239
3785
|
|
|
2240
3786
|
/**
|
|
3787
|
+
* Output only. Start index in the given Part, measured in bytes. Offset from
|
|
3788
|
+
* the start of the Part, inclusive, starting at zero.
|
|
3789
|
+
*
|
|
2241
3790
|
* @generated from field: int32 start_index = 2;
|
|
2242
3791
|
*/
|
|
2243
3792
|
startIndex: number;
|
|
2244
3793
|
|
|
2245
3794
|
/**
|
|
3795
|
+
* Output only. End index in the given Part, measured in bytes. Offset from
|
|
3796
|
+
* the start of the Part, exclusive, starting at zero.
|
|
3797
|
+
*
|
|
2246
3798
|
* @generated from field: int32 end_index = 3;
|
|
2247
3799
|
*/
|
|
2248
3800
|
endIndex: number;
|
|
2249
3801
|
|
|
2250
3802
|
/**
|
|
3803
|
+
* Output only. The text corresponding to the segment from the response.
|
|
3804
|
+
*
|
|
2251
3805
|
* @generated from field: string text = 4;
|
|
2252
3806
|
*/
|
|
2253
3807
|
text: string;
|
|
2254
3808
|
};
|
|
2255
3809
|
|
|
2256
3810
|
/**
|
|
3811
|
+
* Segment represents a segment of the content.
|
|
3812
|
+
*
|
|
2257
3813
|
* @generated from message alis.adk.sessions.v1.Segment
|
|
2258
3814
|
*/
|
|
2259
3815
|
export declare type SegmentJson = {
|
|
2260
3816
|
/**
|
|
3817
|
+
* Output only. The index of a Part object within its parent Content object.
|
|
3818
|
+
*
|
|
2261
3819
|
* @generated from field: int32 part_index = 1;
|
|
2262
3820
|
*/
|
|
2263
3821
|
partIndex?: number;
|
|
2264
3822
|
|
|
2265
3823
|
/**
|
|
3824
|
+
* Output only. Start index in the given Part, measured in bytes. Offset from
|
|
3825
|
+
* the start of the Part, inclusive, starting at zero.
|
|
3826
|
+
*
|
|
2266
3827
|
* @generated from field: int32 start_index = 2;
|
|
2267
3828
|
*/
|
|
2268
3829
|
startIndex?: number;
|
|
2269
3830
|
|
|
2270
3831
|
/**
|
|
3832
|
+
* Output only. End index in the given Part, measured in bytes. Offset from
|
|
3833
|
+
* the start of the Part, exclusive, starting at zero.
|
|
3834
|
+
*
|
|
2271
3835
|
* @generated from field: int32 end_index = 3;
|
|
2272
3836
|
*/
|
|
2273
3837
|
endIndex?: number;
|
|
2274
3838
|
|
|
2275
3839
|
/**
|
|
3840
|
+
* Output only. The text corresponding to the segment from the response.
|
|
3841
|
+
*
|
|
2276
3842
|
* @generated from field: string text = 4;
|
|
2277
3843
|
*/
|
|
2278
3844
|
text?: string;
|
|
@@ -2285,30 +3851,46 @@ export declare type SegmentJson = {
|
|
|
2285
3851
|
export declare const SegmentSchema: GenMessage<Segment, {jsonType: SegmentJson}>;
|
|
2286
3852
|
|
|
2287
3853
|
/**
|
|
3854
|
+
* SearchEntryPoint represents a Google search entry point.
|
|
3855
|
+
*
|
|
2288
3856
|
* @generated from message alis.adk.sessions.v1.SearchEntryPoint
|
|
2289
3857
|
*/
|
|
2290
3858
|
export declare type SearchEntryPoint = Message<"alis.adk.sessions.v1.SearchEntryPoint"> & {
|
|
2291
3859
|
/**
|
|
3860
|
+
* Optional. Web content snippet that can be embedded in a web page or an app
|
|
3861
|
+
* webview.
|
|
3862
|
+
*
|
|
2292
3863
|
* @generated from field: string rendered_content = 1;
|
|
2293
3864
|
*/
|
|
2294
3865
|
renderedContent: string;
|
|
2295
3866
|
|
|
2296
3867
|
/**
|
|
3868
|
+
* Optional. Base64 encoded JSON representing array of <search term, search
|
|
3869
|
+
* url> tuple.
|
|
3870
|
+
*
|
|
2297
3871
|
* @generated from field: bytes sdk_blob = 2;
|
|
2298
3872
|
*/
|
|
2299
3873
|
sdkBlob: Uint8Array;
|
|
2300
3874
|
};
|
|
2301
3875
|
|
|
2302
3876
|
/**
|
|
3877
|
+
* SearchEntryPoint represents a Google search entry point.
|
|
3878
|
+
*
|
|
2303
3879
|
* @generated from message alis.adk.sessions.v1.SearchEntryPoint
|
|
2304
3880
|
*/
|
|
2305
3881
|
export declare type SearchEntryPointJson = {
|
|
2306
3882
|
/**
|
|
3883
|
+
* Optional. Web content snippet that can be embedded in a web page or an app
|
|
3884
|
+
* webview.
|
|
3885
|
+
*
|
|
2307
3886
|
* @generated from field: string rendered_content = 1;
|
|
2308
3887
|
*/
|
|
2309
3888
|
renderedContent?: string;
|
|
2310
3889
|
|
|
2311
3890
|
/**
|
|
3891
|
+
* Optional. Base64 encoded JSON representing array of <search term, search
|
|
3892
|
+
* url> tuple.
|
|
3893
|
+
*
|
|
2312
3894
|
* @generated from field: bytes sdk_blob = 2;
|
|
2313
3895
|
*/
|
|
2314
3896
|
sdkBlob?: string;
|
|
@@ -2321,20 +3903,38 @@ export declare type SearchEntryPointJson = {
|
|
|
2321
3903
|
export declare const SearchEntryPointSchema: GenMessage<SearchEntryPoint, {jsonType: SearchEntryPointJson}>;
|
|
2322
3904
|
|
|
2323
3905
|
/**
|
|
3906
|
+
* RetrievalMetadata contains metadata related to retrieval in the grounding
|
|
3907
|
+
* flow.
|
|
3908
|
+
*
|
|
2324
3909
|
* @generated from message alis.adk.sessions.v1.RetrievalMetadata
|
|
2325
3910
|
*/
|
|
2326
3911
|
export declare type RetrievalMetadata = Message<"alis.adk.sessions.v1.RetrievalMetadata"> & {
|
|
2327
3912
|
/**
|
|
3913
|
+
* Optional. Score indicating how likely information from Google Search could
|
|
3914
|
+
* help answer the prompt. The score is in the range [0, 1], where 0 is the
|
|
3915
|
+
* least likely and 1 is the most likely. This score is only populated when
|
|
3916
|
+
* Google Search grounding and dynamic retrieval is enabled. It will be
|
|
3917
|
+
* compared to the threshold to determine whether to trigger Google Search.
|
|
3918
|
+
*
|
|
2328
3919
|
* @generated from field: float google_search_dynamic_retrieval_score = 2;
|
|
2329
3920
|
*/
|
|
2330
3921
|
googleSearchDynamicRetrievalScore: number;
|
|
2331
3922
|
};
|
|
2332
3923
|
|
|
2333
3924
|
/**
|
|
3925
|
+
* RetrievalMetadata contains metadata related to retrieval in the grounding
|
|
3926
|
+
* flow.
|
|
3927
|
+
*
|
|
2334
3928
|
* @generated from message alis.adk.sessions.v1.RetrievalMetadata
|
|
2335
3929
|
*/
|
|
2336
3930
|
export declare type RetrievalMetadataJson = {
|
|
2337
3931
|
/**
|
|
3932
|
+
* Optional. Score indicating how likely information from Google Search could
|
|
3933
|
+
* help answer the prompt. The score is in the range [0, 1], where 0 is the
|
|
3934
|
+
* least likely and 1 is the most likely. This score is only populated when
|
|
3935
|
+
* Google Search grounding and dynamic retrieval is enabled. It will be
|
|
3936
|
+
* compared to the threshold to determine whether to trigger Google Search.
|
|
3937
|
+
*
|
|
2338
3938
|
* @generated from field: float google_search_dynamic_retrieval_score = 2;
|
|
2339
3939
|
*/
|
|
2340
3940
|
googleSearchDynamicRetrievalScore?: number | "NaN" | "Infinity" | "-Infinity";
|
|
@@ -2347,30 +3947,46 @@ export declare type RetrievalMetadataJson = {
|
|
|
2347
3947
|
export declare const RetrievalMetadataSchema: GenMessage<RetrievalMetadata, {jsonType: RetrievalMetadataJson}>;
|
|
2348
3948
|
|
|
2349
3949
|
/**
|
|
3950
|
+
* RagChunk includes the content of a chunk of a RagFile, and associated
|
|
3951
|
+
* metadata.
|
|
3952
|
+
*
|
|
2350
3953
|
* @generated from message alis.adk.sessions.v1.RagChunk
|
|
2351
3954
|
*/
|
|
2352
3955
|
export declare type RagChunk = Message<"alis.adk.sessions.v1.RagChunk"> & {
|
|
2353
3956
|
/**
|
|
3957
|
+
* The content of the chunk.
|
|
3958
|
+
*
|
|
2354
3959
|
* @generated from field: string text = 1;
|
|
2355
3960
|
*/
|
|
2356
3961
|
text: string;
|
|
2357
3962
|
|
|
2358
3963
|
/**
|
|
3964
|
+
* Optional. If populated, represents where the chunk starts and ends in the
|
|
3965
|
+
* document.
|
|
3966
|
+
*
|
|
2359
3967
|
* @generated from field: alis.adk.sessions.v1.RagChunk.PageSpan page_span = 2;
|
|
2360
3968
|
*/
|
|
2361
3969
|
pageSpan?: RagChunk_PageSpan | undefined;
|
|
2362
3970
|
};
|
|
2363
3971
|
|
|
2364
3972
|
/**
|
|
3973
|
+
* RagChunk includes the content of a chunk of a RagFile, and associated
|
|
3974
|
+
* metadata.
|
|
3975
|
+
*
|
|
2365
3976
|
* @generated from message alis.adk.sessions.v1.RagChunk
|
|
2366
3977
|
*/
|
|
2367
3978
|
export declare type RagChunkJson = {
|
|
2368
3979
|
/**
|
|
3980
|
+
* The content of the chunk.
|
|
3981
|
+
*
|
|
2369
3982
|
* @generated from field: string text = 1;
|
|
2370
3983
|
*/
|
|
2371
3984
|
text?: string;
|
|
2372
3985
|
|
|
2373
3986
|
/**
|
|
3987
|
+
* Optional. If populated, represents where the chunk starts and ends in the
|
|
3988
|
+
* document.
|
|
3989
|
+
*
|
|
2374
3990
|
* @generated from field: alis.adk.sessions.v1.RagChunk.PageSpan page_span = 2;
|
|
2375
3991
|
*/
|
|
2376
3992
|
pageSpan?: RagChunk_PageSpanJson;
|
|
@@ -2383,30 +3999,42 @@ export declare type RagChunkJson = {
|
|
|
2383
3999
|
export declare const RagChunkSchema: GenMessage<RagChunk, {jsonType: RagChunkJson}>;
|
|
2384
4000
|
|
|
2385
4001
|
/**
|
|
4002
|
+
* PageSpan represents where the chunk starts and ends in the document.
|
|
4003
|
+
*
|
|
2386
4004
|
* @generated from message alis.adk.sessions.v1.RagChunk.PageSpan
|
|
2387
4005
|
*/
|
|
2388
4006
|
export declare type RagChunk_PageSpan = Message<"alis.adk.sessions.v1.RagChunk.PageSpan"> & {
|
|
2389
4007
|
/**
|
|
4008
|
+
* Page where chunk starts in the document. Inclusive. 1-indexed.
|
|
4009
|
+
*
|
|
2390
4010
|
* @generated from field: int32 first_page = 1;
|
|
2391
4011
|
*/
|
|
2392
4012
|
firstPage: number;
|
|
2393
4013
|
|
|
2394
4014
|
/**
|
|
4015
|
+
* Page where chunk ends in the document. Inclusive. 1-indexed.
|
|
4016
|
+
*
|
|
2395
4017
|
* @generated from field: int32 last_page = 2;
|
|
2396
4018
|
*/
|
|
2397
4019
|
lastPage: number;
|
|
2398
4020
|
};
|
|
2399
4021
|
|
|
2400
4022
|
/**
|
|
4023
|
+
* PageSpan represents where the chunk starts and ends in the document.
|
|
4024
|
+
*
|
|
2401
4025
|
* @generated from message alis.adk.sessions.v1.RagChunk.PageSpan
|
|
2402
4026
|
*/
|
|
2403
4027
|
export declare type RagChunk_PageSpanJson = {
|
|
2404
4028
|
/**
|
|
4029
|
+
* Page where chunk starts in the document. Inclusive. 1-indexed.
|
|
4030
|
+
*
|
|
2405
4031
|
* @generated from field: int32 first_page = 1;
|
|
2406
4032
|
*/
|
|
2407
4033
|
firstPage?: number;
|
|
2408
4034
|
|
|
2409
4035
|
/**
|
|
4036
|
+
* Page where chunk ends in the document. Inclusive. 1-indexed.
|
|
4037
|
+
*
|
|
2410
4038
|
* @generated from field: int32 last_page = 2;
|
|
2411
4039
|
*/
|
|
2412
4040
|
lastPage?: number;
|
|
@@ -2419,120 +4047,194 @@ export declare type RagChunk_PageSpanJson = {
|
|
|
2419
4047
|
export declare const RagChunk_PageSpanSchema: GenMessage<RagChunk_PageSpan, {jsonType: RagChunk_PageSpanJson}>;
|
|
2420
4048
|
|
|
2421
4049
|
/**
|
|
4050
|
+
* UsageMetadata contains token accounting details for a model request and
|
|
4051
|
+
* response.
|
|
4052
|
+
*
|
|
2422
4053
|
* @generated from message alis.adk.sessions.v1.UsageMetadata
|
|
2423
4054
|
*/
|
|
2424
4055
|
export declare type UsageMetadata = Message<"alis.adk.sessions.v1.UsageMetadata"> & {
|
|
2425
4056
|
/**
|
|
4057
|
+
* Output only. A detailed breakdown of the token count for each modality in
|
|
4058
|
+
* the cached content.
|
|
4059
|
+
*
|
|
2426
4060
|
* @generated from field: repeated alis.adk.sessions.v1.ModalityTokenCount cache_tokens_details = 1;
|
|
2427
4061
|
*/
|
|
2428
4062
|
cacheTokensDetails: ModalityTokenCount[];
|
|
2429
4063
|
|
|
2430
4064
|
/**
|
|
4065
|
+
* Output only. The number of tokens in the cached content that was used for
|
|
4066
|
+
* this request.
|
|
4067
|
+
*
|
|
2431
4068
|
* @generated from field: int32 cached_content_token_count = 2;
|
|
2432
4069
|
*/
|
|
2433
4070
|
cachedContentTokenCount: number;
|
|
2434
4071
|
|
|
2435
4072
|
/**
|
|
4073
|
+
* The total number of tokens in the generated candidates. This includes all
|
|
4074
|
+
* the generated response candidates.
|
|
4075
|
+
*
|
|
2436
4076
|
* @generated from field: int32 candidates_token_count = 3;
|
|
2437
4077
|
*/
|
|
2438
4078
|
candidatesTokenCount: number;
|
|
2439
4079
|
|
|
2440
4080
|
/**
|
|
4081
|
+
* Output only. A detailed breakdown of the token count for each modality in
|
|
4082
|
+
* the generated candidates.
|
|
4083
|
+
*
|
|
2441
4084
|
* @generated from field: repeated alis.adk.sessions.v1.ModalityTokenCount candidates_tokens_details = 4;
|
|
2442
4085
|
*/
|
|
2443
4086
|
candidatesTokensDetails: ModalityTokenCount[];
|
|
2444
4087
|
|
|
2445
4088
|
/**
|
|
4089
|
+
* Number of tokens in the prompt. When cached_content is set, this is still
|
|
4090
|
+
* the total effective prompt size meaning this includes the number of tokens
|
|
4091
|
+
* in the cached content.
|
|
4092
|
+
*
|
|
2446
4093
|
* @generated from field: int32 prompt_token_count = 5;
|
|
2447
4094
|
*/
|
|
2448
4095
|
promptTokenCount: number;
|
|
2449
4096
|
|
|
2450
4097
|
/**
|
|
4098
|
+
* Output only. A detailed breakdown of the token count for each modality in
|
|
4099
|
+
* the prompt.
|
|
4100
|
+
*
|
|
2451
4101
|
* @generated from field: repeated alis.adk.sessions.v1.ModalityTokenCount prompt_tokens_details = 6;
|
|
2452
4102
|
*/
|
|
2453
4103
|
promptTokensDetails: ModalityTokenCount[];
|
|
2454
4104
|
|
|
2455
4105
|
/**
|
|
4106
|
+
* Output only. The number of tokens that were part of the model's generated
|
|
4107
|
+
* "thoughts" output, if applicable.
|
|
4108
|
+
*
|
|
2456
4109
|
* @generated from field: int32 thoughts_token_count = 7;
|
|
2457
4110
|
*/
|
|
2458
4111
|
thoughtsTokenCount: number;
|
|
2459
4112
|
|
|
2460
4113
|
/**
|
|
4114
|
+
* Output only. The number of tokens in the results from tool executions,
|
|
4115
|
+
* which are provided back to the model as input, if applicable.
|
|
4116
|
+
*
|
|
2461
4117
|
* @generated from field: int32 tool_use_prompt_token_count = 8;
|
|
2462
4118
|
*/
|
|
2463
4119
|
toolUsePromptTokenCount: number;
|
|
2464
4120
|
|
|
2465
4121
|
/**
|
|
4122
|
+
* Output only. A detailed breakdown by modality of the token counts from the
|
|
4123
|
+
* results of tool executions, which are provided back to the model as input.
|
|
4124
|
+
*
|
|
2466
4125
|
* @generated from field: repeated alis.adk.sessions.v1.ModalityTokenCount tool_use_prompt_tokens_details = 9;
|
|
2467
4126
|
*/
|
|
2468
4127
|
toolUsePromptTokensDetails: ModalityTokenCount[];
|
|
2469
4128
|
|
|
2470
4129
|
/**
|
|
4130
|
+
* The total number of tokens for the entire request. This is the sum of
|
|
4131
|
+
* `prompt_token_count`, `candidates_token_count`,
|
|
4132
|
+
* `tool_use_prompt_token_count`, and `thoughts_token_count`.
|
|
4133
|
+
*
|
|
2471
4134
|
* @generated from field: int32 total_token_count = 10;
|
|
2472
4135
|
*/
|
|
2473
4136
|
totalTokenCount: number;
|
|
2474
4137
|
|
|
2475
4138
|
/**
|
|
4139
|
+
* Output only. The traffic type for this request.
|
|
4140
|
+
*
|
|
2476
4141
|
* @generated from field: alis.adk.sessions.v1.TrafficType traffic_type = 11;
|
|
2477
4142
|
*/
|
|
2478
4143
|
trafficType: TrafficType;
|
|
2479
4144
|
};
|
|
2480
4145
|
|
|
2481
4146
|
/**
|
|
4147
|
+
* UsageMetadata contains token accounting details for a model request and
|
|
4148
|
+
* response.
|
|
4149
|
+
*
|
|
2482
4150
|
* @generated from message alis.adk.sessions.v1.UsageMetadata
|
|
2483
4151
|
*/
|
|
2484
4152
|
export declare type UsageMetadataJson = {
|
|
2485
4153
|
/**
|
|
4154
|
+
* Output only. A detailed breakdown of the token count for each modality in
|
|
4155
|
+
* the cached content.
|
|
4156
|
+
*
|
|
2486
4157
|
* @generated from field: repeated alis.adk.sessions.v1.ModalityTokenCount cache_tokens_details = 1;
|
|
2487
4158
|
*/
|
|
2488
4159
|
cacheTokensDetails?: ModalityTokenCountJson[];
|
|
2489
4160
|
|
|
2490
4161
|
/**
|
|
4162
|
+
* Output only. The number of tokens in the cached content that was used for
|
|
4163
|
+
* this request.
|
|
4164
|
+
*
|
|
2491
4165
|
* @generated from field: int32 cached_content_token_count = 2;
|
|
2492
4166
|
*/
|
|
2493
4167
|
cachedContentTokenCount?: number;
|
|
2494
4168
|
|
|
2495
4169
|
/**
|
|
4170
|
+
* The total number of tokens in the generated candidates. This includes all
|
|
4171
|
+
* the generated response candidates.
|
|
4172
|
+
*
|
|
2496
4173
|
* @generated from field: int32 candidates_token_count = 3;
|
|
2497
4174
|
*/
|
|
2498
4175
|
candidatesTokenCount?: number;
|
|
2499
4176
|
|
|
2500
4177
|
/**
|
|
4178
|
+
* Output only. A detailed breakdown of the token count for each modality in
|
|
4179
|
+
* the generated candidates.
|
|
4180
|
+
*
|
|
2501
4181
|
* @generated from field: repeated alis.adk.sessions.v1.ModalityTokenCount candidates_tokens_details = 4;
|
|
2502
4182
|
*/
|
|
2503
4183
|
candidatesTokensDetails?: ModalityTokenCountJson[];
|
|
2504
4184
|
|
|
2505
4185
|
/**
|
|
4186
|
+
* Number of tokens in the prompt. When cached_content is set, this is still
|
|
4187
|
+
* the total effective prompt size meaning this includes the number of tokens
|
|
4188
|
+
* in the cached content.
|
|
4189
|
+
*
|
|
2506
4190
|
* @generated from field: int32 prompt_token_count = 5;
|
|
2507
4191
|
*/
|
|
2508
4192
|
promptTokenCount?: number;
|
|
2509
4193
|
|
|
2510
4194
|
/**
|
|
4195
|
+
* Output only. A detailed breakdown of the token count for each modality in
|
|
4196
|
+
* the prompt.
|
|
4197
|
+
*
|
|
2511
4198
|
* @generated from field: repeated alis.adk.sessions.v1.ModalityTokenCount prompt_tokens_details = 6;
|
|
2512
4199
|
*/
|
|
2513
4200
|
promptTokensDetails?: ModalityTokenCountJson[];
|
|
2514
4201
|
|
|
2515
4202
|
/**
|
|
4203
|
+
* Output only. The number of tokens that were part of the model's generated
|
|
4204
|
+
* "thoughts" output, if applicable.
|
|
4205
|
+
*
|
|
2516
4206
|
* @generated from field: int32 thoughts_token_count = 7;
|
|
2517
4207
|
*/
|
|
2518
4208
|
thoughtsTokenCount?: number;
|
|
2519
4209
|
|
|
2520
4210
|
/**
|
|
4211
|
+
* Output only. The number of tokens in the results from tool executions,
|
|
4212
|
+
* which are provided back to the model as input, if applicable.
|
|
4213
|
+
*
|
|
2521
4214
|
* @generated from field: int32 tool_use_prompt_token_count = 8;
|
|
2522
4215
|
*/
|
|
2523
4216
|
toolUsePromptTokenCount?: number;
|
|
2524
4217
|
|
|
2525
4218
|
/**
|
|
4219
|
+
* Output only. A detailed breakdown by modality of the token counts from the
|
|
4220
|
+
* results of tool executions, which are provided back to the model as input.
|
|
4221
|
+
*
|
|
2526
4222
|
* @generated from field: repeated alis.adk.sessions.v1.ModalityTokenCount tool_use_prompt_tokens_details = 9;
|
|
2527
4223
|
*/
|
|
2528
4224
|
toolUsePromptTokensDetails?: ModalityTokenCountJson[];
|
|
2529
4225
|
|
|
2530
4226
|
/**
|
|
4227
|
+
* The total number of tokens for the entire request. This is the sum of
|
|
4228
|
+
* `prompt_token_count`, `candidates_token_count`,
|
|
4229
|
+
* `tool_use_prompt_token_count`, and `thoughts_token_count`.
|
|
4230
|
+
*
|
|
2531
4231
|
* @generated from field: int32 total_token_count = 10;
|
|
2532
4232
|
*/
|
|
2533
4233
|
totalTokenCount?: number;
|
|
2534
4234
|
|
|
2535
4235
|
/**
|
|
4236
|
+
* Output only. The traffic type for this request.
|
|
4237
|
+
*
|
|
2536
4238
|
* @generated from field: alis.adk.sessions.v1.TrafficType traffic_type = 11;
|
|
2537
4239
|
*/
|
|
2538
4240
|
trafficType?: TrafficTypeJson;
|
|
@@ -2545,30 +4247,42 @@ export declare type UsageMetadataJson = {
|
|
|
2545
4247
|
export declare const UsageMetadataSchema: GenMessage<UsageMetadata, {jsonType: UsageMetadataJson}>;
|
|
2546
4248
|
|
|
2547
4249
|
/**
|
|
4250
|
+
* Represents token counting info for a single modality.
|
|
4251
|
+
*
|
|
2548
4252
|
* @generated from message alis.adk.sessions.v1.ModalityTokenCount
|
|
2549
4253
|
*/
|
|
2550
4254
|
export declare type ModalityTokenCount = Message<"alis.adk.sessions.v1.ModalityTokenCount"> & {
|
|
2551
4255
|
/**
|
|
4256
|
+
* Optional. The modality associated with this token count.
|
|
4257
|
+
*
|
|
2552
4258
|
* @generated from field: alis.adk.sessions.v1.MediaModality modality = 1;
|
|
2553
4259
|
*/
|
|
2554
4260
|
modality: MediaModality;
|
|
2555
4261
|
|
|
2556
4262
|
/**
|
|
4263
|
+
* Number of tokens.
|
|
4264
|
+
*
|
|
2557
4265
|
* @generated from field: int32 token_count = 2;
|
|
2558
4266
|
*/
|
|
2559
4267
|
tokenCount: number;
|
|
2560
4268
|
};
|
|
2561
4269
|
|
|
2562
4270
|
/**
|
|
4271
|
+
* Represents token counting info for a single modality.
|
|
4272
|
+
*
|
|
2563
4273
|
* @generated from message alis.adk.sessions.v1.ModalityTokenCount
|
|
2564
4274
|
*/
|
|
2565
4275
|
export declare type ModalityTokenCountJson = {
|
|
2566
4276
|
/**
|
|
4277
|
+
* Optional. The modality associated with this token count.
|
|
4278
|
+
*
|
|
2567
4279
|
* @generated from field: alis.adk.sessions.v1.MediaModality modality = 1;
|
|
2568
4280
|
*/
|
|
2569
4281
|
modality?: MediaModalityJson;
|
|
2570
4282
|
|
|
2571
4283
|
/**
|
|
4284
|
+
* Number of tokens.
|
|
4285
|
+
*
|
|
2572
4286
|
* @generated from field: int32 token_count = 2;
|
|
2573
4287
|
*/
|
|
2574
4288
|
tokenCount?: number;
|
|
@@ -2581,20 +4295,34 @@ export declare type ModalityTokenCountJson = {
|
|
|
2581
4295
|
export declare const ModalityTokenCountSchema: GenMessage<ModalityTokenCount, {jsonType: ModalityTokenCountJson}>;
|
|
2582
4296
|
|
|
2583
4297
|
/**
|
|
4298
|
+
* CitationMetadata contains citation details for sourced or quoted content in
|
|
4299
|
+
* a model response.
|
|
4300
|
+
*
|
|
2584
4301
|
* @generated from message alis.adk.sessions.v1.CitationMetadata
|
|
2585
4302
|
*/
|
|
2586
4303
|
export declare type CitationMetadata = Message<"alis.adk.sessions.v1.CitationMetadata"> & {
|
|
2587
4304
|
/**
|
|
4305
|
+
* Optional. Contains citation information when the model directly quotes, at
|
|
4306
|
+
* length, from another source. Can include traditional websites and code
|
|
4307
|
+
* repositories.
|
|
4308
|
+
*
|
|
2588
4309
|
* @generated from field: repeated alis.adk.sessions.v1.CitationMetadata.Citation citations = 1;
|
|
2589
4310
|
*/
|
|
2590
4311
|
citations: CitationMetadata_Citation[];
|
|
2591
4312
|
};
|
|
2592
4313
|
|
|
2593
4314
|
/**
|
|
4315
|
+
* CitationMetadata contains citation details for sourced or quoted content in
|
|
4316
|
+
* a model response.
|
|
4317
|
+
*
|
|
2594
4318
|
* @generated from message alis.adk.sessions.v1.CitationMetadata
|
|
2595
4319
|
*/
|
|
2596
4320
|
export declare type CitationMetadataJson = {
|
|
2597
4321
|
/**
|
|
4322
|
+
* Optional. Contains citation information when the model directly quotes, at
|
|
4323
|
+
* length, from another source. Can include traditional websites and code
|
|
4324
|
+
* repositories.
|
|
4325
|
+
*
|
|
2598
4326
|
* @generated from field: repeated alis.adk.sessions.v1.CitationMetadata.Citation citations = 1;
|
|
2599
4327
|
*/
|
|
2600
4328
|
citations?: CitationMetadata_CitationJson[];
|
|
@@ -2607,70 +4335,98 @@ export declare type CitationMetadataJson = {
|
|
|
2607
4335
|
export declare const CitationMetadataSchema: GenMessage<CitationMetadata, {jsonType: CitationMetadataJson}>;
|
|
2608
4336
|
|
|
2609
4337
|
/**
|
|
4338
|
+
* Citation information when the model quotes another source.
|
|
4339
|
+
*
|
|
2610
4340
|
* @generated from message alis.adk.sessions.v1.CitationMetadata.Citation
|
|
2611
4341
|
*/
|
|
2612
4342
|
export declare type CitationMetadata_Citation = Message<"alis.adk.sessions.v1.CitationMetadata.Citation"> & {
|
|
2613
4343
|
/**
|
|
4344
|
+
* Output only. End index into the content.
|
|
4345
|
+
*
|
|
2614
4346
|
* @generated from field: int32 end_index = 1;
|
|
2615
4347
|
*/
|
|
2616
4348
|
endIndex: number;
|
|
2617
4349
|
|
|
2618
4350
|
/**
|
|
4351
|
+
* Output only. License of the attribution.
|
|
4352
|
+
*
|
|
2619
4353
|
* @generated from field: string license = 2;
|
|
2620
4354
|
*/
|
|
2621
4355
|
license: string;
|
|
2622
4356
|
|
|
2623
4357
|
/**
|
|
4358
|
+
* Output only. Publication date of the attribution.
|
|
4359
|
+
*
|
|
2624
4360
|
* @generated from field: google.type.Date publication_date = 3;
|
|
2625
4361
|
*/
|
|
2626
4362
|
publicationDate?: Date | undefined;
|
|
2627
4363
|
|
|
2628
4364
|
/**
|
|
4365
|
+
* Output only. Start index into the content.
|
|
4366
|
+
*
|
|
2629
4367
|
* @generated from field: int32 start_index = 4;
|
|
2630
4368
|
*/
|
|
2631
4369
|
startIndex: number;
|
|
2632
4370
|
|
|
2633
4371
|
/**
|
|
4372
|
+
* Output only. Title of the attribution.
|
|
4373
|
+
*
|
|
2634
4374
|
* @generated from field: string title = 5;
|
|
2635
4375
|
*/
|
|
2636
4376
|
title: string;
|
|
2637
4377
|
|
|
2638
4378
|
/**
|
|
4379
|
+
* Output only. URL reference of the attribution.
|
|
4380
|
+
*
|
|
2639
4381
|
* @generated from field: string uri = 6;
|
|
2640
4382
|
*/
|
|
2641
4383
|
uri: string;
|
|
2642
4384
|
};
|
|
2643
4385
|
|
|
2644
4386
|
/**
|
|
4387
|
+
* Citation information when the model quotes another source.
|
|
4388
|
+
*
|
|
2645
4389
|
* @generated from message alis.adk.sessions.v1.CitationMetadata.Citation
|
|
2646
4390
|
*/
|
|
2647
4391
|
export declare type CitationMetadata_CitationJson = {
|
|
2648
4392
|
/**
|
|
4393
|
+
* Output only. End index into the content.
|
|
4394
|
+
*
|
|
2649
4395
|
* @generated from field: int32 end_index = 1;
|
|
2650
4396
|
*/
|
|
2651
4397
|
endIndex?: number;
|
|
2652
4398
|
|
|
2653
4399
|
/**
|
|
4400
|
+
* Output only. License of the attribution.
|
|
4401
|
+
*
|
|
2654
4402
|
* @generated from field: string license = 2;
|
|
2655
4403
|
*/
|
|
2656
4404
|
license?: string;
|
|
2657
4405
|
|
|
2658
4406
|
/**
|
|
4407
|
+
* Output only. Publication date of the attribution.
|
|
4408
|
+
*
|
|
2659
4409
|
* @generated from field: google.type.Date publication_date = 3;
|
|
2660
4410
|
*/
|
|
2661
4411
|
publicationDate?: DateJson;
|
|
2662
4412
|
|
|
2663
4413
|
/**
|
|
4414
|
+
* Output only. Start index into the content.
|
|
4415
|
+
*
|
|
2664
4416
|
* @generated from field: int32 start_index = 4;
|
|
2665
4417
|
*/
|
|
2666
4418
|
startIndex?: number;
|
|
2667
4419
|
|
|
2668
4420
|
/**
|
|
4421
|
+
* Output only. Title of the attribution.
|
|
4422
|
+
*
|
|
2669
4423
|
* @generated from field: string title = 5;
|
|
2670
4424
|
*/
|
|
2671
4425
|
title?: string;
|
|
2672
4426
|
|
|
2673
4427
|
/**
|
|
4428
|
+
* Output only. URL reference of the attribution.
|
|
4429
|
+
*
|
|
2674
4430
|
* @generated from field: string uri = 6;
|
|
2675
4431
|
*/
|
|
2676
4432
|
uri?: string;
|
|
@@ -2683,40 +4439,66 @@ export declare type CitationMetadata_CitationJson = {
|
|
|
2683
4439
|
export declare const CitationMetadata_CitationSchema: GenMessage<CitationMetadata_Citation, {jsonType: CitationMetadata_CitationJson}>;
|
|
2684
4440
|
|
|
2685
4441
|
/**
|
|
4442
|
+
* ToolConfirmation represents a confirmation request for a tool execution.
|
|
4443
|
+
*
|
|
2686
4444
|
* @generated from message alis.adk.sessions.v1.ToolConfirmation
|
|
2687
4445
|
*/
|
|
2688
4446
|
export declare type ToolConfirmation = Message<"alis.adk.sessions.v1.ToolConfirmation"> & {
|
|
2689
4447
|
/**
|
|
4448
|
+
* Hint is the message provided to the user to explain why the confirmation
|
|
4449
|
+
* is needed and what action is being confirmed.
|
|
4450
|
+
*
|
|
2690
4451
|
* @generated from field: string hint = 1;
|
|
2691
4452
|
*/
|
|
2692
4453
|
hint: string;
|
|
2693
4454
|
|
|
2694
4455
|
/**
|
|
4456
|
+
* Confirmed indicates the user's decision.
|
|
4457
|
+
* true if the user approved the action, false if they denied it.
|
|
4458
|
+
* The state before the user has responded is typically handled outside
|
|
4459
|
+
* this struct (e.g., by the absence of a result or a pending status).
|
|
4460
|
+
*
|
|
2695
4461
|
* @generated from field: bool confirmed = 2;
|
|
2696
4462
|
*/
|
|
2697
4463
|
confirmed: boolean;
|
|
2698
4464
|
|
|
2699
4465
|
/**
|
|
4466
|
+
* Payload contains any additional data or context related to the confirmation
|
|
4467
|
+
* request. The structure of the Payload is application-specific.
|
|
4468
|
+
*
|
|
2700
4469
|
* @generated from field: google.protobuf.Value payload = 3;
|
|
2701
4470
|
*/
|
|
2702
4471
|
payload?: Value | undefined;
|
|
2703
4472
|
};
|
|
2704
4473
|
|
|
2705
4474
|
/**
|
|
4475
|
+
* ToolConfirmation represents a confirmation request for a tool execution.
|
|
4476
|
+
*
|
|
2706
4477
|
* @generated from message alis.adk.sessions.v1.ToolConfirmation
|
|
2707
4478
|
*/
|
|
2708
4479
|
export declare type ToolConfirmationJson = {
|
|
2709
4480
|
/**
|
|
4481
|
+
* Hint is the message provided to the user to explain why the confirmation
|
|
4482
|
+
* is needed and what action is being confirmed.
|
|
4483
|
+
*
|
|
2710
4484
|
* @generated from field: string hint = 1;
|
|
2711
4485
|
*/
|
|
2712
4486
|
hint?: string;
|
|
2713
4487
|
|
|
2714
4488
|
/**
|
|
4489
|
+
* Confirmed indicates the user's decision.
|
|
4490
|
+
* true if the user approved the action, false if they denied it.
|
|
4491
|
+
* The state before the user has responded is typically handled outside
|
|
4492
|
+
* this struct (e.g., by the absence of a result or a pending status).
|
|
4493
|
+
*
|
|
2715
4494
|
* @generated from field: bool confirmed = 2;
|
|
2716
4495
|
*/
|
|
2717
4496
|
confirmed?: boolean;
|
|
2718
4497
|
|
|
2719
4498
|
/**
|
|
4499
|
+
* Payload contains any additional data or context related to the confirmation
|
|
4500
|
+
* request. The structure of the Payload is application-specific.
|
|
4501
|
+
*
|
|
2720
4502
|
* @generated from field: google.protobuf.Value payload = 3;
|
|
2721
4503
|
*/
|
|
2722
4504
|
payload?: ValueJson;
|
|
@@ -2729,40 +4511,56 @@ export declare type ToolConfirmationJson = {
|
|
|
2729
4511
|
export declare const ToolConfirmationSchema: GenMessage<ToolConfirmation, {jsonType: ToolConfirmationJson}>;
|
|
2730
4512
|
|
|
2731
4513
|
/**
|
|
4514
|
+
* LogprobsResultCandidate represents a candidate for a logprobs result.
|
|
4515
|
+
*
|
|
2732
4516
|
* @generated from message alis.adk.sessions.v1.LogprobsResultCandidate
|
|
2733
4517
|
*/
|
|
2734
4518
|
export declare type LogprobsResultCandidate = Message<"alis.adk.sessions.v1.LogprobsResultCandidate"> & {
|
|
2735
4519
|
/**
|
|
4520
|
+
* The candidate's log probability.
|
|
4521
|
+
*
|
|
2736
4522
|
* @generated from field: float log_probability = 1;
|
|
2737
4523
|
*/
|
|
2738
4524
|
logProbability: number;
|
|
2739
4525
|
|
|
2740
4526
|
/**
|
|
4527
|
+
* The candidate's token string value.
|
|
4528
|
+
*
|
|
2741
4529
|
* @generated from field: string token = 2;
|
|
2742
4530
|
*/
|
|
2743
4531
|
token: string;
|
|
2744
4532
|
|
|
2745
4533
|
/**
|
|
4534
|
+
* The candidate's token ID value.
|
|
4535
|
+
*
|
|
2746
4536
|
* @generated from field: int32 token_id = 3;
|
|
2747
4537
|
*/
|
|
2748
4538
|
tokenId: number;
|
|
2749
4539
|
};
|
|
2750
4540
|
|
|
2751
4541
|
/**
|
|
4542
|
+
* LogprobsResultCandidate represents a candidate for a logprobs result.
|
|
4543
|
+
*
|
|
2752
4544
|
* @generated from message alis.adk.sessions.v1.LogprobsResultCandidate
|
|
2753
4545
|
*/
|
|
2754
4546
|
export declare type LogprobsResultCandidateJson = {
|
|
2755
4547
|
/**
|
|
4548
|
+
* The candidate's log probability.
|
|
4549
|
+
*
|
|
2756
4550
|
* @generated from field: float log_probability = 1;
|
|
2757
4551
|
*/
|
|
2758
4552
|
logProbability?: number | "NaN" | "Infinity" | "-Infinity";
|
|
2759
4553
|
|
|
2760
4554
|
/**
|
|
4555
|
+
* The candidate's token string value.
|
|
4556
|
+
*
|
|
2761
4557
|
* @generated from field: string token = 2;
|
|
2762
4558
|
*/
|
|
2763
4559
|
token?: string;
|
|
2764
4560
|
|
|
2765
4561
|
/**
|
|
4562
|
+
* The candidate's token ID value.
|
|
4563
|
+
*
|
|
2766
4564
|
* @generated from field: int32 token_id = 3;
|
|
2767
4565
|
*/
|
|
2768
4566
|
tokenId?: number;
|
|
@@ -2775,20 +4573,28 @@ export declare type LogprobsResultCandidateJson = {
|
|
|
2775
4573
|
export declare const LogprobsResultCandidateSchema: GenMessage<LogprobsResultCandidate, {jsonType: LogprobsResultCandidateJson}>;
|
|
2776
4574
|
|
|
2777
4575
|
/**
|
|
4576
|
+
* LogprobsResultTopCandidates represents the top candidates for a logprobs result.
|
|
4577
|
+
*
|
|
2778
4578
|
* @generated from message alis.adk.sessions.v1.LogprobsResultTopCandidates
|
|
2779
4579
|
*/
|
|
2780
4580
|
export declare type LogprobsResultTopCandidates = Message<"alis.adk.sessions.v1.LogprobsResultTopCandidates"> & {
|
|
2781
4581
|
/**
|
|
4582
|
+
* Sorted by log probability in descending order.
|
|
4583
|
+
*
|
|
2782
4584
|
* @generated from field: repeated alis.adk.sessions.v1.LogprobsResultCandidate candidates = 1;
|
|
2783
4585
|
*/
|
|
2784
4586
|
candidates: LogprobsResultCandidate[];
|
|
2785
4587
|
};
|
|
2786
4588
|
|
|
2787
4589
|
/**
|
|
4590
|
+
* LogprobsResultTopCandidates represents the top candidates for a logprobs result.
|
|
4591
|
+
*
|
|
2788
4592
|
* @generated from message alis.adk.sessions.v1.LogprobsResultTopCandidates
|
|
2789
4593
|
*/
|
|
2790
4594
|
export declare type LogprobsResultTopCandidatesJson = {
|
|
2791
4595
|
/**
|
|
4596
|
+
* Sorted by log probability in descending order.
|
|
4597
|
+
*
|
|
2792
4598
|
* @generated from field: repeated alis.adk.sessions.v1.LogprobsResultCandidate candidates = 1;
|
|
2793
4599
|
*/
|
|
2794
4600
|
candidates?: LogprobsResultCandidateJson[];
|
|
@@ -2801,30 +4607,44 @@ export declare type LogprobsResultTopCandidatesJson = {
|
|
|
2801
4607
|
export declare const LogprobsResultTopCandidatesSchema: GenMessage<LogprobsResultTopCandidates, {jsonType: LogprobsResultTopCandidatesJson}>;
|
|
2802
4608
|
|
|
2803
4609
|
/**
|
|
4610
|
+
* LogprobsResult represents the logprobs result for a model response.
|
|
4611
|
+
*
|
|
2804
4612
|
* @generated from message alis.adk.sessions.v1.LogprobsResult
|
|
2805
4613
|
*/
|
|
2806
4614
|
export declare type LogprobsResult = Message<"alis.adk.sessions.v1.LogprobsResult"> & {
|
|
2807
4615
|
/**
|
|
4616
|
+
* Length = total number of decoding steps. The chosen candidates may or may
|
|
4617
|
+
* not be in top_candidates.
|
|
4618
|
+
*
|
|
2808
4619
|
* @generated from field: repeated alis.adk.sessions.v1.LogprobsResultCandidate chosen_candidates = 1;
|
|
2809
4620
|
*/
|
|
2810
4621
|
chosenCandidates: LogprobsResultCandidate[];
|
|
2811
4622
|
|
|
2812
4623
|
/**
|
|
4624
|
+
* Length = total number of decoding steps.
|
|
4625
|
+
*
|
|
2813
4626
|
* @generated from field: repeated alis.adk.sessions.v1.LogprobsResultTopCandidates top_candidates = 2;
|
|
2814
4627
|
*/
|
|
2815
4628
|
topCandidates: LogprobsResultTopCandidates[];
|
|
2816
4629
|
};
|
|
2817
4630
|
|
|
2818
4631
|
/**
|
|
4632
|
+
* LogprobsResult represents the logprobs result for a model response.
|
|
4633
|
+
*
|
|
2819
4634
|
* @generated from message alis.adk.sessions.v1.LogprobsResult
|
|
2820
4635
|
*/
|
|
2821
4636
|
export declare type LogprobsResultJson = {
|
|
2822
4637
|
/**
|
|
4638
|
+
* Length = total number of decoding steps. The chosen candidates may or may
|
|
4639
|
+
* not be in top_candidates.
|
|
4640
|
+
*
|
|
2823
4641
|
* @generated from field: repeated alis.adk.sessions.v1.LogprobsResultCandidate chosen_candidates = 1;
|
|
2824
4642
|
*/
|
|
2825
4643
|
chosenCandidates?: LogprobsResultCandidateJson[];
|
|
2826
4644
|
|
|
2827
4645
|
/**
|
|
4646
|
+
* Length = total number of decoding steps.
|
|
4647
|
+
*
|
|
2828
4648
|
* @generated from field: repeated alis.adk.sessions.v1.LogprobsResultTopCandidates top_candidates = 2;
|
|
2829
4649
|
*/
|
|
2830
4650
|
topCandidates?: LogprobsResultTopCandidatesJson[];
|
|
@@ -2837,41 +4657,57 @@ export declare type LogprobsResultJson = {
|
|
|
2837
4657
|
export declare const LogprobsResultSchema: GenMessage<LogprobsResult, {jsonType: LogprobsResultJson}>;
|
|
2838
4658
|
|
|
2839
4659
|
/**
|
|
4660
|
+
* Enumeration of possible media modalities.
|
|
4661
|
+
*
|
|
2840
4662
|
* @generated from enum alis.adk.sessions.v1.MediaModality
|
|
2841
4663
|
*/
|
|
2842
4664
|
export enum MediaModality {
|
|
2843
4665
|
/**
|
|
4666
|
+
* The modality is unspecified.
|
|
4667
|
+
*
|
|
2844
4668
|
* @generated from enum value: MEDIA_MODALITY_UNSPECIFIED = 0;
|
|
2845
4669
|
*/
|
|
2846
4670
|
UNSPECIFIED = 0,
|
|
2847
4671
|
|
|
2848
4672
|
/**
|
|
4673
|
+
* Plain text.
|
|
4674
|
+
*
|
|
2849
4675
|
* @generated from enum value: MEDIA_MODALITY_TEXT = 1;
|
|
2850
4676
|
*/
|
|
2851
4677
|
TEXT = 1,
|
|
2852
4678
|
|
|
2853
4679
|
/**
|
|
4680
|
+
* Images.
|
|
4681
|
+
*
|
|
2854
4682
|
* @generated from enum value: MEDIA_MODALITY_IMAGE = 2;
|
|
2855
4683
|
*/
|
|
2856
4684
|
IMAGE = 2,
|
|
2857
4685
|
|
|
2858
4686
|
/**
|
|
4687
|
+
* Video.
|
|
4688
|
+
*
|
|
2859
4689
|
* @generated from enum value: MEDIA_MODALITY_VIDEO = 3;
|
|
2860
4690
|
*/
|
|
2861
4691
|
VIDEO = 3,
|
|
2862
4692
|
|
|
2863
4693
|
/**
|
|
4694
|
+
* Audio.
|
|
4695
|
+
*
|
|
2864
4696
|
* @generated from enum value: MEDIA_MODALITY_AUDIO = 4;
|
|
2865
4697
|
*/
|
|
2866
4698
|
AUDIO = 4,
|
|
2867
4699
|
|
|
2868
4700
|
/**
|
|
4701
|
+
* Document, e.g. PDF.
|
|
4702
|
+
*
|
|
2869
4703
|
* @generated from enum value: MEDIA_MODALITY_DOCUMENT = 5;
|
|
2870
4704
|
*/
|
|
2871
4705
|
DOCUMENT = 5,
|
|
2872
4706
|
}
|
|
2873
4707
|
|
|
2874
4708
|
/**
|
|
4709
|
+
* Enumeration of possible media modalities.
|
|
4710
|
+
*
|
|
2875
4711
|
* @generated from enum alis.adk.sessions.v1.MediaModality
|
|
2876
4712
|
*/
|
|
2877
4713
|
export declare type MediaModalityJson = "MEDIA_MODALITY_UNSPECIFIED" | "MEDIA_MODALITY_TEXT" | "MEDIA_MODALITY_IMAGE" | "MEDIA_MODALITY_VIDEO" | "MEDIA_MODALITY_AUDIO" | "MEDIA_MODALITY_DOCUMENT";
|
|
@@ -2882,26 +4718,36 @@ export declare type MediaModalityJson = "MEDIA_MODALITY_UNSPECIFIED" | "MEDIA_MO
|
|
|
2882
4718
|
export declare const MediaModalitySchema: GenEnum<MediaModality, MediaModalityJson>;
|
|
2883
4719
|
|
|
2884
4720
|
/**
|
|
4721
|
+
* Enumeration of possible traffic types.
|
|
4722
|
+
*
|
|
2885
4723
|
* @generated from enum alis.adk.sessions.v1.TrafficType
|
|
2886
4724
|
*/
|
|
2887
4725
|
export enum TrafficType {
|
|
2888
4726
|
/**
|
|
4727
|
+
* The traffic type is unspecified.
|
|
4728
|
+
*
|
|
2889
4729
|
* @generated from enum value: TRAFFIC_TYPE_UNSPECIFIED = 0;
|
|
2890
4730
|
*/
|
|
2891
4731
|
UNSPECIFIED = 0,
|
|
2892
4732
|
|
|
2893
4733
|
/**
|
|
4734
|
+
* The request was processed using Pay-As-You-Go quota.
|
|
4735
|
+
*
|
|
2894
4736
|
* @generated from enum value: TRAFFIC_TYPE_ON_DEMAND = 1;
|
|
2895
4737
|
*/
|
|
2896
4738
|
ON_DEMAND = 1,
|
|
2897
4739
|
|
|
2898
4740
|
/**
|
|
4741
|
+
* Type for Provisioned Throughput traffic.
|
|
4742
|
+
*
|
|
2899
4743
|
* @generated from enum value: TRAFFIC_TYPE_PROVISIONED_THROUGHPUT = 2;
|
|
2900
4744
|
*/
|
|
2901
4745
|
PROVISIONED_THROUGHPUT = 2,
|
|
2902
4746
|
}
|
|
2903
4747
|
|
|
2904
4748
|
/**
|
|
4749
|
+
* Enumeration of possible traffic types.
|
|
4750
|
+
*
|
|
2905
4751
|
* @generated from enum alis.adk.sessions.v1.TrafficType
|
|
2906
4752
|
*/
|
|
2907
4753
|
export declare type TrafficTypeJson = "TRAFFIC_TYPE_UNSPECIFIED" | "TRAFFIC_TYPE_ON_DEMAND" | "TRAFFIC_TYPE_PROVISIONED_THROUGHPUT";
|
|
@@ -2912,96 +4758,140 @@ export declare type TrafficTypeJson = "TRAFFIC_TYPE_UNSPECIFIED" | "TRAFFIC_TYPE
|
|
|
2912
4758
|
export declare const TrafficTypeSchema: GenEnum<TrafficType, TrafficTypeJson>;
|
|
2913
4759
|
|
|
2914
4760
|
/**
|
|
4761
|
+
* FinishReason describes why the model stopped generating a response.
|
|
4762
|
+
*
|
|
2915
4763
|
* @generated from enum alis.adk.sessions.v1.FinishReason
|
|
2916
4764
|
*/
|
|
2917
4765
|
export enum FinishReason {
|
|
2918
4766
|
/**
|
|
4767
|
+
* The finish reason is unspecified.
|
|
4768
|
+
*
|
|
2919
4769
|
* @generated from enum value: FINISH_REASON_UNSPECIFIED = 0;
|
|
2920
4770
|
*/
|
|
2921
4771
|
UNSPECIFIED = 0,
|
|
2922
4772
|
|
|
2923
4773
|
/**
|
|
4774
|
+
* Token generation reached a natural stopping point or a configured stop
|
|
4775
|
+
* sequence.
|
|
4776
|
+
*
|
|
2924
4777
|
* @generated from enum value: FINISH_REASON_STOP = 1;
|
|
2925
4778
|
*/
|
|
2926
4779
|
STOP = 1,
|
|
2927
4780
|
|
|
2928
4781
|
/**
|
|
4782
|
+
* Token generation reached the configured maximum output tokens.
|
|
4783
|
+
*
|
|
2929
4784
|
* @generated from enum value: FINISH_REASON_MAX_TOKENS = 2;
|
|
2930
4785
|
*/
|
|
2931
4786
|
MAX_TOKENS = 2,
|
|
2932
4787
|
|
|
2933
4788
|
/**
|
|
4789
|
+
* Token generation stopped because the content potentially contains safety
|
|
4790
|
+
* violations. NOTE: When streaming, [content][] is empty if content filters
|
|
4791
|
+
* blocks the output.
|
|
4792
|
+
*
|
|
2934
4793
|
* @generated from enum value: FINISH_REASON_SAFETY = 3;
|
|
2935
4794
|
*/
|
|
2936
4795
|
SAFETY = 3,
|
|
2937
4796
|
|
|
2938
4797
|
/**
|
|
4798
|
+
* The token generation stopped because of potential recitation.
|
|
4799
|
+
*
|
|
2939
4800
|
* @generated from enum value: FINISH_REASON_RECITATION = 4;
|
|
2940
4801
|
*/
|
|
2941
4802
|
RECITATION = 4,
|
|
2942
4803
|
|
|
2943
4804
|
/**
|
|
4805
|
+
* The token generation stopped because of using an unsupported language.
|
|
4806
|
+
*
|
|
2944
4807
|
* @generated from enum value: FINISH_REASON_LANGUAGE = 5;
|
|
2945
4808
|
*/
|
|
2946
4809
|
LANGUAGE = 5,
|
|
2947
4810
|
|
|
2948
4811
|
/**
|
|
4812
|
+
* All other reasons that stopped the token generation.
|
|
4813
|
+
*
|
|
2949
4814
|
* @generated from enum value: FINISH_REASON_OTHER = 6;
|
|
2950
4815
|
*/
|
|
2951
4816
|
OTHER = 6,
|
|
2952
4817
|
|
|
2953
4818
|
/**
|
|
4819
|
+
* Token generation stopped because the content contains forbidden terms.
|
|
4820
|
+
*
|
|
2954
4821
|
* @generated from enum value: FINISH_REASON_BLOCKLIST = 7;
|
|
2955
4822
|
*/
|
|
2956
4823
|
BLOCKLIST = 7,
|
|
2957
4824
|
|
|
2958
4825
|
/**
|
|
4826
|
+
* Token generation stopped for potentially containing prohibited content.
|
|
4827
|
+
*
|
|
2959
4828
|
* @generated from enum value: FINISH_REASON_PROHIBITED_CONTENT = 8;
|
|
2960
4829
|
*/
|
|
2961
4830
|
PROHIBITED_CONTENT = 8,
|
|
2962
4831
|
|
|
2963
4832
|
/**
|
|
4833
|
+
* Token generation stopped because the content potentially contains Sensitive
|
|
4834
|
+
* Personally Identifiable Information (SPII).
|
|
4835
|
+
*
|
|
2964
4836
|
* @generated from enum value: FINISH_REASON_SPII = 9;
|
|
2965
4837
|
*/
|
|
2966
4838
|
SPII = 9,
|
|
2967
4839
|
|
|
2968
4840
|
/**
|
|
4841
|
+
* The function call generated by the model is invalid.
|
|
4842
|
+
*
|
|
2969
4843
|
* @generated from enum value: FINISH_REASON_MALFORMED_FUNCTION_CALL = 10;
|
|
2970
4844
|
*/
|
|
2971
4845
|
MALFORMED_FUNCTION_CALL = 10,
|
|
2972
4846
|
|
|
2973
4847
|
/**
|
|
4848
|
+
* Token generation stopped because generated images have safety violations.
|
|
4849
|
+
*
|
|
2974
4850
|
* @generated from enum value: FINISH_REASON_IMAGE_SAFETY = 11;
|
|
2975
4851
|
*/
|
|
2976
4852
|
IMAGE_SAFETY = 11,
|
|
2977
4853
|
|
|
2978
4854
|
/**
|
|
4855
|
+
* The tool call generated by the model is invalid.
|
|
4856
|
+
*
|
|
2979
4857
|
* @generated from enum value: FINISH_REASON_UNEXPECTED_TOOL_CALL = 12;
|
|
2980
4858
|
*/
|
|
2981
4859
|
UNEXPECTED_TOOL_CALL = 12,
|
|
2982
4860
|
|
|
2983
4861
|
/**
|
|
4862
|
+
* Image generation stopped because the generated images have prohibited
|
|
4863
|
+
* content.
|
|
4864
|
+
*
|
|
2984
4865
|
* @generated from enum value: FINISH_REASON_IMAGE_PROHIBITED_CONTENT = 13;
|
|
2985
4866
|
*/
|
|
2986
4867
|
IMAGE_PROHIBITED_CONTENT = 13,
|
|
2987
4868
|
|
|
2988
4869
|
/**
|
|
4870
|
+
* The model was expected to generate an image, but none was generated.
|
|
4871
|
+
*
|
|
2989
4872
|
* @generated from enum value: FINISH_REASON_NO_IMAGE = 14;
|
|
2990
4873
|
*/
|
|
2991
4874
|
NO_IMAGE = 14,
|
|
2992
4875
|
|
|
2993
4876
|
/**
|
|
4877
|
+
* Image generation stopped because the generated image may be a recitation
|
|
4878
|
+
* from a source.
|
|
4879
|
+
*
|
|
2994
4880
|
* @generated from enum value: FINISH_REASON_IMAGE_RECITATION = 15;
|
|
2995
4881
|
*/
|
|
2996
4882
|
IMAGE_RECITATION = 15,
|
|
2997
4883
|
|
|
2998
4884
|
/**
|
|
4885
|
+
* Image generation stopped for a reason not otherwise specified.
|
|
4886
|
+
*
|
|
2999
4887
|
* @generated from enum value: FINISH_REASON_IMAGE_OTHER = 16;
|
|
3000
4888
|
*/
|
|
3001
4889
|
IMAGE_OTHER = 16,
|
|
3002
4890
|
}
|
|
3003
4891
|
|
|
3004
4892
|
/**
|
|
4893
|
+
* FinishReason describes why the model stopped generating a response.
|
|
4894
|
+
*
|
|
3005
4895
|
* @generated from enum alis.adk.sessions.v1.FinishReason
|
|
3006
4896
|
*/
|
|
3007
4897
|
export declare type FinishReasonJson = "FINISH_REASON_UNSPECIFIED" | "FINISH_REASON_STOP" | "FINISH_REASON_MAX_TOKENS" | "FINISH_REASON_SAFETY" | "FINISH_REASON_RECITATION" | "FINISH_REASON_LANGUAGE" | "FINISH_REASON_OTHER" | "FINISH_REASON_BLOCKLIST" | "FINISH_REASON_PROHIBITED_CONTENT" | "FINISH_REASON_SPII" | "FINISH_REASON_MALFORMED_FUNCTION_CALL" | "FINISH_REASON_IMAGE_SAFETY" | "FINISH_REASON_UNEXPECTED_TOOL_CALL" | "FINISH_REASON_IMAGE_PROHIBITED_CONTENT" | "FINISH_REASON_NO_IMAGE" | "FINISH_REASON_IMAGE_RECITATION" | "FINISH_REASON_IMAGE_OTHER";
|
|
@@ -3012,10 +4902,14 @@ export declare type FinishReasonJson = "FINISH_REASON_UNSPECIFIED" | "FINISH_REA
|
|
|
3012
4902
|
export declare const FinishReasonSchema: GenEnum<FinishReason, FinishReasonJson>;
|
|
3013
4903
|
|
|
3014
4904
|
/**
|
|
4905
|
+
* SessionService manages agent sessions and session events.
|
|
4906
|
+
*
|
|
3015
4907
|
* @generated from service alis.adk.sessions.v1.SessionService
|
|
3016
4908
|
*/
|
|
3017
4909
|
export declare const SessionService: GenService<{
|
|
3018
4910
|
/**
|
|
4911
|
+
* Creates a new session.
|
|
4912
|
+
*
|
|
3019
4913
|
* @generated from rpc alis.adk.sessions.v1.SessionService.CreateSession
|
|
3020
4914
|
*/
|
|
3021
4915
|
createSession: {
|
|
@@ -3024,6 +4918,8 @@ export declare const SessionService: GenService<{
|
|
|
3024
4918
|
output: typeof SessionSchema;
|
|
3025
4919
|
},
|
|
3026
4920
|
/**
|
|
4921
|
+
* Gets details of a specific session.
|
|
4922
|
+
*
|
|
3027
4923
|
* @generated from rpc alis.adk.sessions.v1.SessionService.GetSession
|
|
3028
4924
|
*/
|
|
3029
4925
|
getSession: {
|
|
@@ -3032,6 +4928,8 @@ export declare const SessionService: GenService<{
|
|
|
3032
4928
|
output: typeof SessionSchema;
|
|
3033
4929
|
},
|
|
3034
4930
|
/**
|
|
4931
|
+
* Lists sessions with optional filtering and ordering.
|
|
4932
|
+
*
|
|
3035
4933
|
* @generated from rpc alis.adk.sessions.v1.SessionService.ListSessions
|
|
3036
4934
|
*/
|
|
3037
4935
|
listSessions: {
|
|
@@ -3040,6 +4938,8 @@ export declare const SessionService: GenService<{
|
|
|
3040
4938
|
output: typeof ListSessionsResponseSchema;
|
|
3041
4939
|
},
|
|
3042
4940
|
/**
|
|
4941
|
+
* Updates a specific session.
|
|
4942
|
+
*
|
|
3043
4943
|
* @generated from rpc alis.adk.sessions.v1.SessionService.UpdateSession
|
|
3044
4944
|
*/
|
|
3045
4945
|
updateSession: {
|
|
@@ -3048,6 +4948,8 @@ export declare const SessionService: GenService<{
|
|
|
3048
4948
|
output: typeof SessionSchema;
|
|
3049
4949
|
},
|
|
3050
4950
|
/**
|
|
4951
|
+
* Deletes a specific session.
|
|
4952
|
+
*
|
|
3051
4953
|
* @generated from rpc alis.adk.sessions.v1.SessionService.DeleteSession
|
|
3052
4954
|
*/
|
|
3053
4955
|
deleteSession: {
|
|
@@ -3056,6 +4958,8 @@ export declare const SessionService: GenService<{
|
|
|
3056
4958
|
output: typeof EmptySchema;
|
|
3057
4959
|
},
|
|
3058
4960
|
/**
|
|
4961
|
+
* Gets a specific event from a session.
|
|
4962
|
+
*
|
|
3059
4963
|
* @generated from rpc alis.adk.sessions.v1.SessionService.GetEvent
|
|
3060
4964
|
*/
|
|
3061
4965
|
getEvent: {
|
|
@@ -3064,6 +4968,8 @@ export declare const SessionService: GenService<{
|
|
|
3064
4968
|
output: typeof SessionEventSchema;
|
|
3065
4969
|
},
|
|
3066
4970
|
/**
|
|
4971
|
+
* Lists events in a given session with optional filtering and ordering.
|
|
4972
|
+
*
|
|
3067
4973
|
* @generated from rpc alis.adk.sessions.v1.SessionService.ListEvents
|
|
3068
4974
|
*/
|
|
3069
4975
|
listEvents: {
|
|
@@ -3072,6 +4978,8 @@ export declare const SessionService: GenService<{
|
|
|
3072
4978
|
output: typeof ListEventsResponseSchema;
|
|
3073
4979
|
},
|
|
3074
4980
|
/**
|
|
4981
|
+
* Appends an event to a given session.
|
|
4982
|
+
*
|
|
3075
4983
|
* @generated from rpc alis.adk.sessions.v1.SessionService.AppendEvent
|
|
3076
4984
|
*/
|
|
3077
4985
|
appendEvent: {
|