@pushwoosh/rpc-gateway-ai-assistant 0.1.183 → 0.1.184
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/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
|
/**
|
|
@@ -285,12 +286,11 @@ export interface AssistantService {
|
|
|
285
286
|
signal?: AbortSignal;
|
|
286
287
|
}): Promise<AsyncIterable<InferenceResponse>>;
|
|
287
288
|
/**
|
|
288
|
-
* StreamInferenceLLM is the self-hosted LLM (Qwen) inference endpoint.
|
|
289
|
-
*
|
|
290
|
-
*
|
|
291
|
-
*
|
|
292
|
-
*
|
|
293
|
-
* the onboarding agent produces the opening assistant message itself.
|
|
289
|
+
* StreamInferenceLLM is the self-hosted LLM (Qwen) inference endpoint. It is
|
|
290
|
+
* one of two providers that can run the onboarding agent — the frontend
|
|
291
|
+
* routes an onboarding chat (is_onboarding=true) here or to StreamInference
|
|
292
|
+
* (Claude) by choosing the endpoint. Every turn, including the opening one,
|
|
293
|
+
* carries a real user message; an empty message is rejected. See is_onboarding.
|
|
294
294
|
*/
|
|
295
295
|
StreamInferenceLLM(request: InferenceRequest, options?: {
|
|
296
296
|
signal?: AbortSignal;
|