@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.183",
3
+ "version": "0.1.184",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -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. Inference for
44
- * onboarding chats is routed exclusively to StreamInferenceLLMother
45
- * StreamInference* endpoints are not used while is_onboarding=true. The
46
- * very first turn is initiated by the frontend calling StreamInferenceLLM
47
- * with an empty message on a chat that has no message history; the server
48
- * synthesises an invisible kickoff trigger and the onboarding agent emits
49
- * the opening assistant message + suggested actions itself.
43
+ * Frontend may render the chat with onboarding-specific UI. The same
44
+ * onboarding agent runs on either inference providerStreamInferenceLLM
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
- * Frontend routes onboarding chats (is_onboarding=true) here exclusively;
290
- * other StreamInference* endpoints are reserved for regular chats. For
291
- * the first turn on a fresh onboarding chat the frontend calls this RPC
292
- * with an empty message; the server synthesises a kickoff trigger and
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;