@pushwoosh/rpc-gateway-ai-assistant 0.1.595 → 0.1.596
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 +20 -0
- package/package.json +1 -1
- package/pushwoosh_accounts_assistant_v1.d.ts +19 -6
package/data.js
CHANGED
|
@@ -3681,6 +3681,17 @@ export const data = {
|
|
|
3681
3681
|
}
|
|
3682
3682
|
}
|
|
3683
3683
|
},
|
|
3684
|
+
"pushwoosh.accounts.assistant.v1.SuggestedActionKind": {
|
|
3685
|
+
"type": "E",
|
|
3686
|
+
"values": [
|
|
3687
|
+
"SUGGESTED_ACTION_KIND_UNSPECIFIED",
|
|
3688
|
+
"SUGGESTED_ACTION_KIND_PROMPT",
|
|
3689
|
+
"SUGGESTED_ACTION_KIND_URL",
|
|
3690
|
+
"SUGGESTED_ACTION_KIND_NAVIGATE",
|
|
3691
|
+
"SUGGESTED_ACTION_KIND_FOCUS_INPUT",
|
|
3692
|
+
"SUGGESTED_ACTION_KIND_SERVER"
|
|
3693
|
+
]
|
|
3694
|
+
},
|
|
3684
3695
|
"pushwoosh.accounts.assistant.v1.SuggestedAction": {
|
|
3685
3696
|
"type": "I",
|
|
3686
3697
|
"fields": {
|
|
@@ -3698,6 +3709,12 @@ export const data = {
|
|
|
3698
3709
|
},
|
|
3699
3710
|
"primary": {
|
|
3700
3711
|
"type": "boolean"
|
|
3712
|
+
},
|
|
3713
|
+
"kind": {
|
|
3714
|
+
"type": "pushwoosh.accounts.assistant.v1.SuggestedActionKind"
|
|
3715
|
+
},
|
|
3716
|
+
"payload": {
|
|
3717
|
+
"type": "string"
|
|
3701
3718
|
}
|
|
3702
3719
|
}
|
|
3703
3720
|
},
|
|
@@ -3919,6 +3936,9 @@ export const data = {
|
|
|
3919
3936
|
},
|
|
3920
3937
|
"customSystemPrompt": {
|
|
3921
3938
|
"type": "string"
|
|
3939
|
+
},
|
|
3940
|
+
"actionId": {
|
|
3941
|
+
"type": "string"
|
|
3922
3942
|
}
|
|
3923
3943
|
}
|
|
3924
3944
|
},
|
package/package.json
CHANGED
|
@@ -23,13 +23,21 @@ export type Message = {
|
|
|
23
23
|
*/
|
|
24
24
|
iterationCapped: boolean;
|
|
25
25
|
};
|
|
26
|
+
/** SuggestedActionKind says what a click does; UNSPECIFIED keeps today's rule: prompt or url. */
|
|
27
|
+
export type SuggestedActionKind = 'SUGGESTED_ACTION_KIND_UNSPECIFIED'
|
|
28
|
+
/** sends prompt as the user message, with action_id */
|
|
29
|
+
| 'SUGGESTED_ACTION_KIND_PROMPT'
|
|
30
|
+
/** opens url in a new tab */
|
|
31
|
+
| 'SUGGESTED_ACTION_KIND_URL'
|
|
32
|
+
/** url is a panel path; SPA navigation, no turn */
|
|
33
|
+
| 'SUGGESTED_ACTION_KIND_NAVIGATE'
|
|
34
|
+
/** "I'll write it myself": focuses the input, no turn */
|
|
35
|
+
| 'SUGGESTED_ACTION_KIND_FOCUS_INPUT'
|
|
36
|
+
/** sends label with action_id; the server acts on its stored payload */
|
|
37
|
+
| 'SUGGESTED_ACTION_KIND_SERVER';
|
|
26
38
|
/**
|
|
27
|
-
* SuggestedAction
|
|
28
|
-
*
|
|
29
|
-
* Exactly one of prompt or url must be set:
|
|
30
|
-
* - prompt: literal user message dispatched when the button is clicked.
|
|
31
|
-
* - url: external link (e.g. documentation) opened when the button is clicked.
|
|
32
|
-
* primary marks the visually emphasised CTA — at most one per actions block.
|
|
39
|
+
* SuggestedAction is a button under an agent message; a model button (kind UNSPECIFIED) has one of prompt or url.
|
|
40
|
+
* primary marks the emphasised CTA — at most one per actions block.
|
|
33
41
|
*/
|
|
34
42
|
export type SuggestedAction = {
|
|
35
43
|
id: string;
|
|
@@ -37,6 +45,9 @@ export type SuggestedAction = {
|
|
|
37
45
|
prompt: string;
|
|
38
46
|
url: string;
|
|
39
47
|
primary: boolean;
|
|
48
|
+
kind: SuggestedActionKind;
|
|
49
|
+
/** Server data the button carries (SERVER: the invite's e-mail); the server reads it back from the stored message. */
|
|
50
|
+
payload: string;
|
|
40
51
|
};
|
|
41
52
|
/** Chat represents a conversation with its metadata and messages */
|
|
42
53
|
export type Chat = {
|
|
@@ -187,6 +198,8 @@ export type InferenceRequest = {
|
|
|
187
198
|
attachments: FileAttachment[];
|
|
188
199
|
/** Optional custom system prompt to add to the inference */
|
|
189
200
|
customSystemPrompt: string;
|
|
201
|
+
/** id of a button from the chat's last agent message; empty for typed text. */
|
|
202
|
+
actionId: string;
|
|
190
203
|
};
|
|
191
204
|
/** StreamingEvent types */
|
|
192
205
|
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'
|