@pushwoosh/rpc-gateway-ai-assistant 0.1.430 → 0.1.432
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 +25 -0
- package/package.json +1 -1
- package/pushwoosh_accounts_assistant_v1.d.ts +15 -0
package/data.js
CHANGED
|
@@ -3637,6 +3637,25 @@ export const data = {
|
|
|
3637
3637
|
}
|
|
3638
3638
|
}
|
|
3639
3639
|
},
|
|
3640
|
+
"pushwoosh.accounts.assistant.v1.CancelTurnRequest": {
|
|
3641
|
+
"type": "I",
|
|
3642
|
+
"fields": {
|
|
3643
|
+
"application": {
|
|
3644
|
+
"type": "string"
|
|
3645
|
+
},
|
|
3646
|
+
"chatId": {
|
|
3647
|
+
"type": "number"
|
|
3648
|
+
}
|
|
3649
|
+
}
|
|
3650
|
+
},
|
|
3651
|
+
"pushwoosh.accounts.assistant.v1.CancelTurnResponse": {
|
|
3652
|
+
"type": "I",
|
|
3653
|
+
"fields": {
|
|
3654
|
+
"cancelled": {
|
|
3655
|
+
"type": "boolean"
|
|
3656
|
+
}
|
|
3657
|
+
}
|
|
3658
|
+
},
|
|
3640
3659
|
"pushwoosh.accounts.assistant.v1.FileAttachment": {
|
|
3641
3660
|
"type": "I",
|
|
3642
3661
|
"fields": {
|
|
@@ -4022,6 +4041,12 @@ export const data = {
|
|
|
4022
4041
|
"method": "delete",
|
|
4023
4042
|
"path": "/api/v1/applications/{application}/chats/{id}/messages"
|
|
4024
4043
|
},
|
|
4044
|
+
"CancelTurn": {
|
|
4045
|
+
"request": "pushwoosh.accounts.assistant.v1.CancelTurnRequest",
|
|
4046
|
+
"response": "pushwoosh.accounts.assistant.v1.CancelTurnResponse",
|
|
4047
|
+
"method": "post",
|
|
4048
|
+
"path": "/api/v1/applications/{application}/chats/{chat_id}/turn/cancel"
|
|
4049
|
+
},
|
|
4025
4050
|
"StreamInference": {
|
|
4026
4051
|
"request": "pushwoosh.accounts.assistant.v1.InferenceRequest",
|
|
4027
4052
|
"response": "pushwoosh.accounts.assistant.v1.InferenceResponse",
|
package/package.json
CHANGED
|
@@ -124,6 +124,15 @@ export type ClearChatRequest = {
|
|
|
124
124
|
export type ClearChatResponse = {
|
|
125
125
|
success: boolean;
|
|
126
126
|
};
|
|
127
|
+
/** CancelTurnRequest stops the turn running in a chat, on whichever pod it runs. */
|
|
128
|
+
export type CancelTurnRequest = {
|
|
129
|
+
application: string;
|
|
130
|
+
chatId: number;
|
|
131
|
+
};
|
|
132
|
+
/** CancelTurnResponse.cancelled is false when the chat had no turn running. */
|
|
133
|
+
export type CancelTurnResponse = {
|
|
134
|
+
cancelled: boolean;
|
|
135
|
+
};
|
|
127
136
|
/** FileAttachment represents a file uploaded by the user */
|
|
128
137
|
export type FileAttachment = {
|
|
129
138
|
filename: string;
|
|
@@ -375,6 +384,7 @@ export type AssistantService_GetAllChats = RpcMethod<GetAllChatsRequest, GetAllC
|
|
|
375
384
|
export type AssistantService_UpdateChatTitle = RpcMethod<UpdateChatTitleRequest, UpdateChatTitleResponse>;
|
|
376
385
|
export type AssistantService_DeleteChat = RpcMethod<DeleteChatRequest, DeleteChatResponse>;
|
|
377
386
|
export type AssistantService_ClearChat = RpcMethod<ClearChatRequest, ClearChatResponse>;
|
|
387
|
+
export type AssistantService_CancelTurn = RpcMethod<CancelTurnRequest, CancelTurnResponse>;
|
|
378
388
|
export type AssistantService_GetConsent = RpcMethod<GetConsentRequest, GetConsentResponse>;
|
|
379
389
|
export type AssistantService_GiveConsent = RpcMethod<GiveConsentRequest, GiveConsentResponse>;
|
|
380
390
|
export type AssistantService_CompactifyContext = RpcMethod<CompactifyContextRequest, CompactifyContextResponse>;
|
|
@@ -397,6 +407,11 @@ export interface AssistantService {
|
|
|
397
407
|
DeleteChat: AssistantService_DeleteChat;
|
|
398
408
|
/** Clear all messages from a chat */
|
|
399
409
|
ClearChat: AssistantService_ClearChat;
|
|
410
|
+
/**
|
|
411
|
+
* Stop the turn running in a chat. A turn outlives its stream for accounts on the
|
|
412
|
+
* detached-turns flag, so closing the stream no longer stops it.
|
|
413
|
+
*/
|
|
414
|
+
CancelTurn: AssistantService_CancelTurn;
|
|
400
415
|
/** Stream AI inference responses */
|
|
401
416
|
StreamInference(request: InferenceRequest, options?: {
|
|
402
417
|
signal?: AbortSignal;
|