@alis-build/alis-adk-sessions-v1 1.24.0 → 1.26.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,7 +1,32 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 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
|
|
|
5
|
+
// Stores agent sessions: conversations between a user and an agent, the
|
|
6
|
+
// ordered events that make them up, and the state carried across them.
|
|
7
|
+
//
|
|
8
|
+
// `SessionService` manages two resources:
|
|
9
|
+
//
|
|
10
|
+
// - `Session` (`sessions/{session}`): one conversation, owned by a `user_id`
|
|
11
|
+
// within an `app_name`, with a key-value `state` and an expiry set through
|
|
12
|
+
// `expire_time` or `ttl`.
|
|
13
|
+
// - `SessionEvent` (`sessions/{session}/events/{event}`): one message from the
|
|
14
|
+
// user or an agent, with its `Content`, model response metadata, and the
|
|
15
|
+
// `EventActions` the agent took (state deltas, artifact updates, agent
|
|
16
|
+
// transfers, tool confirmations, context compaction). Events are added with
|
|
17
|
+
// `AppendEvent`; events that share an `invocation_id` belong to the same
|
|
18
|
+
// agent invocation.
|
|
19
|
+
//
|
|
20
|
+
// `AppState` and `UserState` hold state shared across all sessions of an app,
|
|
21
|
+
// or of one user within an app. Their keys appear with the `app:` and `user:`
|
|
22
|
+
// prefixes in the merged session state view; no RPC in this package takes
|
|
23
|
+
// them directly.
|
|
24
|
+
//
|
|
25
|
+
// `Content` and `Part` carry multi-part message content (text, media, function
|
|
26
|
+
// calls and responses, executable code). The remaining messages describe model
|
|
27
|
+
// output: grounding, citations, token usage, log probabilities, and why
|
|
28
|
+
// generation stopped.
|
|
29
|
+
|
|
5
30
|
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
31
|
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
|
7
32
|
import type { Duration, DurationJson, EmptySchema, FieldMask, FieldMaskJson, StructJson, Timestamp, TimestampJson, Value, ValueJson } from "@bufbuild/protobuf/wkt";
|
|
@@ -1561,11 +1586,11 @@ export declare type EventActions = Message<"alis.adk.sessions.v1.EventActions">
|
|
|
1561
1586
|
escalate: boolean;
|
|
1562
1587
|
|
|
1563
1588
|
/**
|
|
1564
|
-
* Optional. Will only be set by a tool response
|
|
1565
|
-
*
|
|
1589
|
+
* Optional. Will only be set by a tool response requesting that the user
|
|
1590
|
+
* confirm a tool execution.
|
|
1566
1591
|
* Map key is the function call ID since one function call response (from
|
|
1567
1592
|
* model) could correspond to multiple function calls.
|
|
1568
|
-
* Map value is the
|
|
1593
|
+
* Map value is the confirmation request for that function call.
|
|
1569
1594
|
*
|
|
1570
1595
|
* @generated from field: map<string, alis.adk.sessions.v1.ToolConfirmation> requested_tool_confirmations = 7;
|
|
1571
1596
|
*/
|
|
@@ -1627,11 +1652,11 @@ export declare type EventActionsJson = {
|
|
|
1627
1652
|
escalate?: boolean;
|
|
1628
1653
|
|
|
1629
1654
|
/**
|
|
1630
|
-
* Optional. Will only be set by a tool response
|
|
1631
|
-
*
|
|
1655
|
+
* Optional. Will only be set by a tool response requesting that the user
|
|
1656
|
+
* confirm a tool execution.
|
|
1632
1657
|
* Map key is the function call ID since one function call response (from
|
|
1633
1658
|
* model) could correspond to multiple function calls.
|
|
1634
|
-
* Map value is the
|
|
1659
|
+
* Map value is the confirmation request for that function call.
|
|
1635
1660
|
*
|
|
1636
1661
|
* @generated from field: map<string, alis.adk.sessions.v1.ToolConfirmation> requested_tool_confirmations = 7;
|
|
1637
1662
|
*/
|
|
@@ -2047,6 +2072,9 @@ export declare const ContentSchema: GenMessage<Content, {jsonType: ContentJson}>
|
|
|
2047
2072
|
*/
|
|
2048
2073
|
export declare type Part = Message<"alis.adk.sessions.v1.Part"> & {
|
|
2049
2074
|
/**
|
|
2075
|
+
* The data carried by this part: text, inline or URI-based media, a
|
|
2076
|
+
* function call or response, or executable code and its result.
|
|
2077
|
+
*
|
|
2050
2078
|
* @generated from oneof alis.adk.sessions.v1.Part.data
|
|
2051
2079
|
*/
|
|
2052
2080
|
data: {
|
|
@@ -2113,6 +2141,9 @@ export declare type Part = Message<"alis.adk.sessions.v1.Part"> & {
|
|
|
2113
2141
|
} | { case: undefined; value?: undefined };
|
|
2114
2142
|
|
|
2115
2143
|
/**
|
|
2144
|
+
* Metadata describing the media in `data`. `video_metadata` is the only
|
|
2145
|
+
* option.
|
|
2146
|
+
*
|
|
2116
2147
|
* @generated from oneof alis.adk.sessions.v1.Part.metadata
|
|
2117
2148
|
*/
|
|
2118
2149
|
metadata: {
|
|
@@ -2607,6 +2638,8 @@ export declare const FunctionResponseSchema: GenMessage<FunctionResponse, {jsonT
|
|
|
2607
2638
|
*/
|
|
2608
2639
|
export declare type FunctionResponsePart = Message<"alis.adk.sessions.v1.FunctionResponsePart"> & {
|
|
2609
2640
|
/**
|
|
2641
|
+
* The media carried by this part, as inline bytes or a URI reference.
|
|
2642
|
+
*
|
|
2610
2643
|
* @generated from oneof alis.adk.sessions.v1.FunctionResponsePart.data
|
|
2611
2644
|
*/
|
|
2612
2645
|
data: {
|
|
@@ -1,7 +1,32 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 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
|
|
|
5
|
+
// Stores agent sessions: conversations between a user and an agent, the
|
|
6
|
+
// ordered events that make them up, and the state carried across them.
|
|
7
|
+
//
|
|
8
|
+
// `SessionService` manages two resources:
|
|
9
|
+
//
|
|
10
|
+
// - `Session` (`sessions/{session}`): one conversation, owned by a `user_id`
|
|
11
|
+
// within an `app_name`, with a key-value `state` and an expiry set through
|
|
12
|
+
// `expire_time` or `ttl`.
|
|
13
|
+
// - `SessionEvent` (`sessions/{session}/events/{event}`): one message from the
|
|
14
|
+
// user or an agent, with its `Content`, model response metadata, and the
|
|
15
|
+
// `EventActions` the agent took (state deltas, artifact updates, agent
|
|
16
|
+
// transfers, tool confirmations, context compaction). Events are added with
|
|
17
|
+
// `AppendEvent`; events that share an `invocation_id` belong to the same
|
|
18
|
+
// agent invocation.
|
|
19
|
+
//
|
|
20
|
+
// `AppState` and `UserState` hold state shared across all sessions of an app,
|
|
21
|
+
// or of one user within an app. Their keys appear with the `app:` and `user:`
|
|
22
|
+
// prefixes in the merged session state view; no RPC in this package takes
|
|
23
|
+
// them directly.
|
|
24
|
+
//
|
|
25
|
+
// `Content` and `Part` carry multi-part message content (text, media, function
|
|
26
|
+
// calls and responses, executable code). The remaining messages describe model
|
|
27
|
+
// output: grounding, citations, token usage, log probabilities, and why
|
|
28
|
+
// generation stopped.
|
|
29
|
+
|
|
5
30
|
import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
|
|
6
31
|
import { file_google_protobuf_duration, file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
7
32
|
import { file_google_type_date } from "@alis-build/google-type/google/type/date_pb.js";
|
package/package.json
CHANGED