@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.183",
3
+ "version": "0.1.185",
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
  /**
@@ -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
- * 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.
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;