@pushwoosh/rpc-gateway-ai-assistant 0.1.183 → 0.1.185
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 +4 -1
- package/package.json +1 -1
- package/pushwoosh_accounts_assistant_v1.d.ts +14 -13
package/data.js
CHANGED
|
@@ -1703,6 +1703,9 @@ export const data = {
|
|
|
1703
1703
|
"fields": {
|
|
1704
1704
|
"chatId": {
|
|
1705
1705
|
"type": "number"
|
|
1706
|
+
},
|
|
1707
|
+
"application": {
|
|
1708
|
+
"type": "string"
|
|
1706
1709
|
}
|
|
1707
1710
|
}
|
|
1708
1711
|
},
|
|
@@ -1816,7 +1819,7 @@ export const data = {
|
|
|
1816
1819
|
"request": "pushwoosh.accounts.assistant.v1.CompleteOnboardingHandoffRequest",
|
|
1817
1820
|
"response": "pushwoosh.accounts.assistant.v1.CompleteOnboardingHandoffResponse",
|
|
1818
1821
|
"method": "post",
|
|
1819
|
-
"path": "/api/v1/chats/{chat_id}/onboarding/handoff"
|
|
1822
|
+
"path": "/api/v1/applications/{application}/chats/{chat_id}/onboarding/handoff"
|
|
1820
1823
|
}
|
|
1821
1824
|
}
|
|
1822
1825
|
},
|
package/package.json
CHANGED
|
@@ -40,13 +40,14 @@ export type Chat = {
|
|
|
40
40
|
updatedAt: Date;
|
|
41
41
|
/**
|
|
42
42
|
* is_onboarding flags this chat as the account's onboarding chat.
|
|
43
|
-
* Frontend may render the chat with onboarding-specific UI.
|
|
44
|
-
* onboarding
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
43
|
+
* Frontend may render the chat with onboarding-specific UI. The same
|
|
44
|
+
* onboarding agent runs on either inference provider — StreamInferenceLLM
|
|
45
|
+
* (self-hosted Qwen) or StreamInference (Claude); the frontend picks by
|
|
46
|
+
* which endpoint it calls for the chat. The opening turn is an ordinary
|
|
47
|
+
* turn: the frontend sends a real first user message (e.g. a "Get started"
|
|
48
|
+
* button prompt) and the onboarding agent replies with the greeting +
|
|
49
|
+
* suggested actions. An empty message is rejected (InvalidArgument) — there
|
|
50
|
+
* is no server-synthesised kickoff.
|
|
50
51
|
*/
|
|
51
52
|
isOnboarding: boolean;
|
|
52
53
|
/**
|
|
@@ -240,6 +241,7 @@ export type GetOnboardingStatusResponse = {
|
|
|
240
241
|
*/
|
|
241
242
|
export type CompleteOnboardingHandoffRequest = {
|
|
242
243
|
chatId: number;
|
|
244
|
+
application: string;
|
|
243
245
|
};
|
|
244
246
|
/**
|
|
245
247
|
* CompleteOnboardingHandoffResponse returns the regular chat that should
|
|
@@ -285,12 +287,11 @@ export interface AssistantService {
|
|
|
285
287
|
signal?: AbortSignal;
|
|
286
288
|
}): Promise<AsyncIterable<InferenceResponse>>;
|
|
287
289
|
/**
|
|
288
|
-
* StreamInferenceLLM is the self-hosted LLM (Qwen) inference endpoint.
|
|
289
|
-
*
|
|
290
|
-
*
|
|
291
|
-
*
|
|
292
|
-
*
|
|
293
|
-
* the onboarding agent produces the opening assistant message itself.
|
|
290
|
+
* StreamInferenceLLM is the self-hosted LLM (Qwen) inference endpoint. It is
|
|
291
|
+
* one of two providers that can run the onboarding agent — the frontend
|
|
292
|
+
* routes an onboarding chat (is_onboarding=true) here or to StreamInference
|
|
293
|
+
* (Claude) by choosing the endpoint. Every turn, including the opening one,
|
|
294
|
+
* carries a real user message; an empty message is rejected. See is_onboarding.
|
|
294
295
|
*/
|
|
295
296
|
StreamInferenceLLM(request: InferenceRequest, options?: {
|
|
296
297
|
signal?: AbortSignal;
|