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

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,27 @@ 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"
923
+ },
924
+ "url": {
925
+ "type": "string"
905
926
  }
906
927
  }
907
928
  },
@@ -1084,7 +1105,8 @@ export const data = {
1084
1105
  "STREAM_EVENT_ERROR",
1085
1106
  "STREAM_EVENT_TOOL_USE_RESULT",
1086
1107
  "STREAM_EVENT_TOOL_USE_DELTA",
1087
- "STREAM_EVENT_THINKING_DELTA"
1108
+ "STREAM_EVENT_THINKING_DELTA",
1109
+ "STREAM_EVENT_SUGGESTED_ACTIONS"
1088
1110
  ]
1089
1111
  },
1090
1112
  "pushwoosh.accounts.assistant.v1.ToolInfo": {
@@ -1144,6 +1166,10 @@ export const data = {
1144
1166
  },
1145
1167
  "usage": {
1146
1168
  "type": "pushwoosh.accounts.assistant.v1.UsageInfo"
1169
+ },
1170
+ "actions": {
1171
+ "type": "pushwoosh.accounts.assistant.v1.SuggestedAction",
1172
+ "array": true
1147
1173
  }
1148
1174
  }
1149
1175
  },
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.122",
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,20 @@ 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
+ * Exactly one of prompt or url must be set:
23
+ * - prompt: literal user message dispatched when the button is clicked.
24
+ * - url: external link (e.g. documentation) opened when the button is clicked.
25
+ */
26
+ export type SuggestedAction = {
27
+ id: string;
28
+ label: string;
29
+ prompt: string;
30
+ url: string;
17
31
  };
18
32
  /** Chat represents a conversation with its metadata and messages */
19
33
  export type Chat = {
@@ -97,7 +111,9 @@ export type InferenceRequest = {
97
111
  /** StreamingEvent types */
98
112
  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
113
  /** Chain of Thoughts thinking content */
100
- | 'STREAM_EVENT_THINKING_DELTA';
114
+ | 'STREAM_EVENT_THINKING_DELTA'
115
+ /** Model-proposed follow-up actions for the user */
116
+ | 'STREAM_EVENT_SUGGESTED_ACTIONS';
101
117
  /** Tool information for tool use events */
102
118
  export type ToolInfo = {
103
119
  name: string;
@@ -121,6 +137,8 @@ export type InferenceResponse = {
121
137
  stopSequence: string;
122
138
  error: string;
123
139
  usage: UsageInfo;
140
+ /** Set on STREAM_EVENT_SUGGESTED_ACTIONS */
141
+ actions: SuggestedAction[];
124
142
  };
125
143
  export type GetConsentRequest = {
126
144
  application: string;