@pushwoosh/rpc-gateway-ai-assistant 0.1.120 → 0.1.121

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.
package/data.js CHANGED
@@ -902,6 +902,24 @@ export const data = {
902
902
  },
903
903
  "usage": {
904
904
  "type": "pushwoosh.accounts.assistant.v1.UsageInfo"
905
+ },
906
+ "actions": {
907
+ "type": "pushwoosh.accounts.assistant.v1.SuggestedAction",
908
+ "array": true
909
+ }
910
+ }
911
+ },
912
+ "pushwoosh.accounts.assistant.v1.SuggestedAction": {
913
+ "type": "I",
914
+ "fields": {
915
+ "id": {
916
+ "type": "string"
917
+ },
918
+ "label": {
919
+ "type": "string"
920
+ },
921
+ "prompt": {
922
+ "type": "string"
905
923
  }
906
924
  }
907
925
  },
@@ -1084,7 +1102,8 @@ export const data = {
1084
1102
  "STREAM_EVENT_ERROR",
1085
1103
  "STREAM_EVENT_TOOL_USE_RESULT",
1086
1104
  "STREAM_EVENT_TOOL_USE_DELTA",
1087
- "STREAM_EVENT_THINKING_DELTA"
1105
+ "STREAM_EVENT_THINKING_DELTA",
1106
+ "STREAM_EVENT_SUGGESTED_ACTIONS"
1088
1107
  ]
1089
1108
  },
1090
1109
  "pushwoosh.accounts.assistant.v1.ToolInfo": {
@@ -1144,6 +1163,10 @@ export const data = {
1144
1163
  },
1145
1164
  "usage": {
1146
1165
  "type": "pushwoosh.accounts.assistant.v1.UsageInfo"
1166
+ },
1167
+ "actions": {
1168
+ "type": "pushwoosh.accounts.assistant.v1.SuggestedAction",
1169
+ "array": true
1147
1170
  }
1148
1171
  }
1149
1172
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.120",
3
+ "version": "0.1.121",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -14,6 +14,17 @@ export type Message = {
14
14
  role: Role;
15
15
  timestamp: Date;
16
16
  usage: UsageInfo;
17
+ actions: SuggestedAction[];
18
+ };
19
+ /**
20
+ * SuggestedAction represents a model-proposed follow-up action shown as a button.
21
+ * id is a stable slug used for analytics; label is the button text;
22
+ * prompt is the literal user message dispatched when the button is clicked.
23
+ */
24
+ export type SuggestedAction = {
25
+ id: string;
26
+ label: string;
27
+ prompt: string;
17
28
  };
18
29
  /** Chat represents a conversation with its metadata and messages */
19
30
  export type Chat = {
@@ -97,7 +108,9 @@ export type InferenceRequest = {
97
108
  /** StreamingEvent types */
98
109
  export type StreamEventType = 'STREAM_EVENT_UNSPECIFIED' | 'STREAM_EVENT_MESSAGE_START' | 'STREAM_EVENT_CONTENT_BLOCK_START' | 'STREAM_EVENT_TEXT_START' | 'STREAM_EVENT_TEXT_DELTA' | 'STREAM_EVENT_TOOL_USE_START' | 'STREAM_EVENT_CONTENT_BLOCK_STOP' | 'STREAM_EVENT_MESSAGE_DELTA' | 'STREAM_EVENT_MESSAGE_STOP' | 'STREAM_EVENT_ERROR' | 'STREAM_EVENT_TOOL_USE_RESULT' | 'STREAM_EVENT_TOOL_USE_DELTA'
99
110
  /** Chain of Thoughts thinking content */
100
- | 'STREAM_EVENT_THINKING_DELTA';
111
+ | 'STREAM_EVENT_THINKING_DELTA'
112
+ /** Model-proposed follow-up actions for the user */
113
+ | 'STREAM_EVENT_SUGGESTED_ACTIONS';
101
114
  /** Tool information for tool use events */
102
115
  export type ToolInfo = {
103
116
  name: string;
@@ -121,6 +134,8 @@ export type InferenceResponse = {
121
134
  stopSequence: string;
122
135
  error: string;
123
136
  usage: UsageInfo;
137
+ /** Set on STREAM_EVENT_SUGGESTED_ACTIONS */
138
+ actions: SuggestedAction[];
124
139
  };
125
140
  export type GetConsentRequest = {
126
141
  application: string;