@pushwoosh/rpc-gateway-ai-assistant 0.1.131 → 0.1.133

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
@@ -1432,14 +1432,6 @@ export const data = {
1432
1432
  }
1433
1433
  }
1434
1434
  },
1435
- "pushwoosh.accounts.assistant.v1.OnboardingIntroRequest": {
1436
- "type": "I",
1437
- "fields": {
1438
- "chatId": {
1439
- "type": "number"
1440
- }
1441
- }
1442
- },
1443
1435
  "pushwoosh.accounts.assistant.v1.CompleteOnboardingHandoffRequest": {
1444
1436
  "type": "I",
1445
1437
  "fields": {
@@ -1548,13 +1540,6 @@ export const data = {
1548
1540
  "method": "get",
1549
1541
  "path": "/api/v1/applications/{application}/usage-allowed"
1550
1542
  },
1551
- "StreamOnboardingIntro": {
1552
- "request": "pushwoosh.accounts.assistant.v1.OnboardingIntroRequest",
1553
- "response": "pushwoosh.accounts.assistant.v1.InferenceResponse",
1554
- "method": "post",
1555
- "path": "/api/v1/chats/{chat_id}/onboarding/intro",
1556
- "serverStreaming": true
1557
- },
1558
1543
  "CompleteOnboardingHandoff": {
1559
1544
  "request": "pushwoosh.accounts.assistant.v1.CompleteOnboardingHandoffRequest",
1560
1545
  "response": "pushwoosh.accounts.assistant.v1.CompleteOnboardingHandoffResponse",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.131",
3
+ "version": "0.1.133",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -40,15 +40,18 @@ export type Chat = {
40
40
  updatedAt: Date;
41
41
  /**
42
42
  * is_onboarding flags this chat as the account's onboarding chat.
43
- * Frontend uses it to decide whether to call StreamOnboardingIntro on the
44
- * first turn and may render the chat with onboarding-specific UI. Inference
45
- * for onboarding chats is routed exclusively to StreamInferenceLLM — other
46
- * StreamInference* endpoints are not used while is_onboarding=true.
43
+ * Frontend may render the chat with onboarding-specific UI. Inference for
44
+ * onboarding chats is routed exclusively to StreamInferenceLLM other
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.
47
50
  */
48
51
  isOnboarding: boolean;
49
52
  /**
50
53
  * onboarding_completed_at is set on the onboarding chat the moment the
51
- * agent invokes the complete_onboarding tool. Frontend polls this field
54
+ * agent invokes the complete_onboarding tool. Frontend checks this field
52
55
  * after each StreamInferenceLLM turn (and on chat reload) to detect that
53
56
  * the agent has signalled completion and the handoff to a regular chat
54
57
  * should be triggered via CompleteOnboardingHandoff.
@@ -203,15 +206,6 @@ export type CheckUsageAllowedResponse = {
203
206
  allowed: boolean;
204
207
  reason: string;
205
208
  };
206
- /**
207
- * OnboardingIntroRequest triggers the onboarding chat's first turn —
208
- * 3 assistant messages plus a set of suggested actions — generated from
209
- * the account's onboarding plan. Must reference a chat created with
210
- * is_onboarding=true that has no message history yet.
211
- */
212
- export type OnboardingIntroRequest = {
213
- chatId: number;
214
- };
215
209
  /**
216
210
  * CompleteOnboardingHandoffRequest performs the transition from a completed
217
211
  * onboarding chat to a fresh regular chat. The referenced chat must be the
@@ -267,7 +261,10 @@ export interface AssistantService {
267
261
  /**
268
262
  * StreamInferenceLLM is the self-hosted LLM (Qwen) inference endpoint.
269
263
  * Frontend routes onboarding chats (is_onboarding=true) here exclusively;
270
- * other StreamInference* endpoints are reserved for regular chats.
264
+ * other StreamInference* endpoints are reserved for regular chats. For
265
+ * the first turn on a fresh onboarding chat the frontend calls this RPC
266
+ * with an empty message; the server synthesises a kickoff trigger and
267
+ * the onboarding agent produces the opening assistant message itself.
271
268
  */
272
269
  StreamInferenceLLM(request: InferenceRequest, options?: {
273
270
  signal?: AbortSignal;
@@ -276,16 +273,6 @@ export interface AssistantService {
276
273
  GiveConsent: AssistantService_GiveConsent;
277
274
  CompactifyContext: AssistantService_CompactifyContext;
278
275
  CheckUsageAllowed: AssistantService_CheckUsageAllowed;
279
- /**
280
- * StreamOnboardingIntro generates the onboarding chat's first turn —
281
- * 3 assistant messages and suggested actions — using the self-hosted
282
- * Qwen model. Frontend must call this exactly once after CreateChat
283
- * with is_onboarding=true on a chat that has no message history.
284
- * Subsequent turns go through the regular StreamInference* RPCs.
285
- */
286
- StreamOnboardingIntro(request: OnboardingIntroRequest, options?: {
287
- signal?: AbortSignal;
288
- }): Promise<AsyncIterable<InferenceResponse>>;
289
276
  /**
290
277
  * CompleteOnboardingHandoff atomically creates the regular chat that
291
278
  * succeeds a completed onboarding chat and copies the agent's handoff