@genesislcap/ai-assistant 14.409.0-FUI-2495.2 → 14.409.0-FUI-2495.3

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.
Files changed (32) hide show
  1. package/dist/ai-assistant.api.json +528 -0
  2. package/dist/ai-assistant.d.ts +46 -0
  3. package/dist/dts/channel/ai-activity-channel.d.ts +1 -0
  4. package/dist/dts/channel/ai-activity-channel.d.ts.map +1 -1
  5. package/dist/dts/components/ai-driver/ai-driver.d.ts +11 -1
  6. package/dist/dts/components/ai-driver/ai-driver.d.ts.map +1 -1
  7. package/dist/dts/components/chat-driver/chat-driver.d.ts +12 -1
  8. package/dist/dts/components/chat-driver/chat-driver.d.ts.map +1 -1
  9. package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts +2 -1
  10. package/dist/dts/components/orchestrating-driver/orchestrating-driver.d.ts.map +1 -1
  11. package/dist/dts/main/main.d.ts +6 -1
  12. package/dist/dts/main/main.d.ts.map +1 -1
  13. package/dist/dts/main/main.template.d.ts.map +1 -1
  14. package/dist/dts/main/main.types.d.ts +16 -0
  15. package/dist/dts/main/main.types.d.ts.map +1 -1
  16. package/dist/dts/suggestions/chat-suggestions.d.ts +7 -0
  17. package/dist/dts/suggestions/chat-suggestions.d.ts.map +1 -0
  18. package/dist/esm/components/chat-driver/chat-driver.js +156 -32
  19. package/dist/esm/components/orchestrating-driver/orchestrating-driver.js +24 -9
  20. package/dist/esm/main/main.js +60 -2
  21. package/dist/esm/main/main.template.js +7 -0
  22. package/dist/esm/suggestions/chat-suggestions.js +147 -0
  23. package/dist/tsconfig.tsbuildinfo +1 -1
  24. package/package.json +15 -15
  25. package/src/channel/ai-activity-channel.ts +1 -0
  26. package/src/components/ai-driver/ai-driver.ts +23 -1
  27. package/src/components/chat-driver/chat-driver.ts +180 -42
  28. package/src/components/orchestrating-driver/orchestrating-driver.ts +30 -11
  29. package/src/main/main.template.ts +11 -0
  30. package/src/main/main.ts +67 -2
  31. package/src/main/main.types.ts +11 -0
  32. package/src/suggestions/chat-suggestions.ts +158 -0
@@ -1049,6 +1049,33 @@
1049
1049
  "startIndex": 1,
1050
1050
  "endIndex": 2
1051
1051
  }
1052
+ },
1053
+ {
1054
+ "kind": "PropertySignature",
1055
+ "canonicalReference": "@genesislcap/ai-assistant!AiAssistantSerializedState#suggestions:member",
1056
+ "docComment": "",
1057
+ "excerptTokens": [
1058
+ {
1059
+ "kind": "Content",
1060
+ "text": "suggestions?: "
1061
+ },
1062
+ {
1063
+ "kind": "Content",
1064
+ "text": "string[]"
1065
+ },
1066
+ {
1067
+ "kind": "Content",
1068
+ "text": ";"
1069
+ }
1070
+ ],
1071
+ "isReadonly": false,
1072
+ "isOptional": true,
1073
+ "releaseTag": "Beta",
1074
+ "name": "suggestions",
1075
+ "propertyTypeTokenRange": {
1076
+ "startIndex": 1,
1077
+ "endIndex": 2
1078
+ }
1052
1079
  }
1053
1080
  ],
1054
1081
  "extendsTokenRanges": []
@@ -1427,6 +1454,114 @@
1427
1454
  "parameters": [],
1428
1455
  "name": "getRawHistory"
1429
1456
  },
1457
+ {
1458
+ "kind": "MethodSignature",
1459
+ "canonicalReference": "@genesislcap/ai-assistant!AiDriver#getSuggestions:member(1)",
1460
+ "docComment": "/**\n * Get query suggestions from the AI.\n */\n",
1461
+ "excerptTokens": [
1462
+ {
1463
+ "kind": "Content",
1464
+ "text": "getSuggestions(history: "
1465
+ },
1466
+ {
1467
+ "kind": "Reference",
1468
+ "text": "ChatMessage",
1469
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
1470
+ },
1471
+ {
1472
+ "kind": "Content",
1473
+ "text": "[]"
1474
+ },
1475
+ {
1476
+ "kind": "Content",
1477
+ "text": ", prompt: "
1478
+ },
1479
+ {
1480
+ "kind": "Content",
1481
+ "text": "string"
1482
+ },
1483
+ {
1484
+ "kind": "Content",
1485
+ "text": ", count: "
1486
+ },
1487
+ {
1488
+ "kind": "Content",
1489
+ "text": "number"
1490
+ },
1491
+ {
1492
+ "kind": "Content",
1493
+ "text": ", allAgentInfo?: "
1494
+ },
1495
+ {
1496
+ "kind": "Reference",
1497
+ "text": "AllAgentSummary",
1498
+ "canonicalReference": "@genesislcap/ai-assistant!~AllAgentSummary:interface"
1499
+ },
1500
+ {
1501
+ "kind": "Content",
1502
+ "text": "[]"
1503
+ },
1504
+ {
1505
+ "kind": "Content",
1506
+ "text": "): "
1507
+ },
1508
+ {
1509
+ "kind": "Reference",
1510
+ "text": "Promise",
1511
+ "canonicalReference": "!Promise:interface"
1512
+ },
1513
+ {
1514
+ "kind": "Content",
1515
+ "text": "<string[]>"
1516
+ },
1517
+ {
1518
+ "kind": "Content",
1519
+ "text": ";"
1520
+ }
1521
+ ],
1522
+ "isOptional": false,
1523
+ "returnTypeTokenRange": {
1524
+ "startIndex": 11,
1525
+ "endIndex": 13
1526
+ },
1527
+ "releaseTag": "Beta",
1528
+ "overloadIndex": 1,
1529
+ "parameters": [
1530
+ {
1531
+ "parameterName": "history",
1532
+ "parameterTypeTokenRange": {
1533
+ "startIndex": 1,
1534
+ "endIndex": 3
1535
+ },
1536
+ "isOptional": false
1537
+ },
1538
+ {
1539
+ "parameterName": "prompt",
1540
+ "parameterTypeTokenRange": {
1541
+ "startIndex": 4,
1542
+ "endIndex": 5
1543
+ },
1544
+ "isOptional": false
1545
+ },
1546
+ {
1547
+ "parameterName": "count",
1548
+ "parameterTypeTokenRange": {
1549
+ "startIndex": 6,
1550
+ "endIndex": 7
1551
+ },
1552
+ "isOptional": false
1553
+ },
1554
+ {
1555
+ "parameterName": "allAgentInfo",
1556
+ "parameterTypeTokenRange": {
1557
+ "startIndex": 8,
1558
+ "endIndex": 10
1559
+ },
1560
+ "isOptional": true
1561
+ }
1562
+ ],
1563
+ "name": "getSuggestions"
1564
+ },
1430
1565
  {
1431
1566
  "kind": "MethodSignature",
1432
1567
  "canonicalReference": "@genesislcap/ai-assistant!AiDriver#loadHistory:member(1)",
@@ -2008,6 +2143,117 @@
2008
2143
  "isAbstract": false,
2009
2144
  "name": "getRawHistory"
2010
2145
  },
2146
+ {
2147
+ "kind": "Method",
2148
+ "canonicalReference": "@genesislcap/ai-assistant!ChatDriver#getSuggestions:member(1)",
2149
+ "docComment": "",
2150
+ "excerptTokens": [
2151
+ {
2152
+ "kind": "Content",
2153
+ "text": "getSuggestions(history: "
2154
+ },
2155
+ {
2156
+ "kind": "Reference",
2157
+ "text": "ChatMessage",
2158
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
2159
+ },
2160
+ {
2161
+ "kind": "Content",
2162
+ "text": "[]"
2163
+ },
2164
+ {
2165
+ "kind": "Content",
2166
+ "text": ", prompt: "
2167
+ },
2168
+ {
2169
+ "kind": "Content",
2170
+ "text": "string"
2171
+ },
2172
+ {
2173
+ "kind": "Content",
2174
+ "text": ", count: "
2175
+ },
2176
+ {
2177
+ "kind": "Content",
2178
+ "text": "number"
2179
+ },
2180
+ {
2181
+ "kind": "Content",
2182
+ "text": ", allAgentInfo?: "
2183
+ },
2184
+ {
2185
+ "kind": "Reference",
2186
+ "text": "AllAgentSummary",
2187
+ "canonicalReference": "@genesislcap/ai-assistant!~AllAgentSummary:interface"
2188
+ },
2189
+ {
2190
+ "kind": "Content",
2191
+ "text": "[]"
2192
+ },
2193
+ {
2194
+ "kind": "Content",
2195
+ "text": "): "
2196
+ },
2197
+ {
2198
+ "kind": "Reference",
2199
+ "text": "Promise",
2200
+ "canonicalReference": "!Promise:interface"
2201
+ },
2202
+ {
2203
+ "kind": "Content",
2204
+ "text": "<string[]>"
2205
+ },
2206
+ {
2207
+ "kind": "Content",
2208
+ "text": ";"
2209
+ }
2210
+ ],
2211
+ "isStatic": false,
2212
+ "returnTypeTokenRange": {
2213
+ "startIndex": 11,
2214
+ "endIndex": 13
2215
+ },
2216
+ "releaseTag": "Beta",
2217
+ "isProtected": false,
2218
+ "overloadIndex": 1,
2219
+ "parameters": [
2220
+ {
2221
+ "parameterName": "history",
2222
+ "parameterTypeTokenRange": {
2223
+ "startIndex": 1,
2224
+ "endIndex": 3
2225
+ },
2226
+ "isOptional": false
2227
+ },
2228
+ {
2229
+ "parameterName": "prompt",
2230
+ "parameterTypeTokenRange": {
2231
+ "startIndex": 4,
2232
+ "endIndex": 5
2233
+ },
2234
+ "isOptional": false
2235
+ },
2236
+ {
2237
+ "parameterName": "count",
2238
+ "parameterTypeTokenRange": {
2239
+ "startIndex": 6,
2240
+ "endIndex": 7
2241
+ },
2242
+ "isOptional": false
2243
+ },
2244
+ {
2245
+ "parameterName": "allAgentInfo",
2246
+ "parameterTypeTokenRange": {
2247
+ "startIndex": 8,
2248
+ "endIndex": 10
2249
+ },
2250
+ "isOptional": true
2251
+ }
2252
+ ],
2253
+ "isOptional": false,
2254
+ "isAbstract": false,
2255
+ "name": "getSuggestions"
2256
+ },
2011
2257
  {
2012
2258
  "kind": "Method",
2013
2259
  "canonicalReference": "@genesislcap/ai-assistant!ChatDriver#isBusy:member(1)",
@@ -2320,6 +2566,72 @@
2320
2566
  "isOptional": false,
2321
2567
  "isAbstract": false,
2322
2568
  "name": "sendMessage"
2569
+ },
2570
+ {
2571
+ "kind": "Method",
2572
+ "canonicalReference": "@genesislcap/ai-assistant!ChatDriver#setProviderHistoryTransform:member(1)",
2573
+ "docComment": "/**\n * Optional transform applied to conversation history immediately before each LLM request. Cleared when `undefined`. Does not alter stored history.\n */\n",
2574
+ "excerptTokens": [
2575
+ {
2576
+ "kind": "Content",
2577
+ "text": "setProviderHistoryTransform(transform?: "
2578
+ },
2579
+ {
2580
+ "kind": "Content",
2581
+ "text": "(history: "
2582
+ },
2583
+ {
2584
+ "kind": "Reference",
2585
+ "text": "ChatMessage",
2586
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
2587
+ },
2588
+ {
2589
+ "kind": "Content",
2590
+ "text": "[]) => "
2591
+ },
2592
+ {
2593
+ "kind": "Reference",
2594
+ "text": "ChatMessage",
2595
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
2596
+ },
2597
+ {
2598
+ "kind": "Content",
2599
+ "text": "[]"
2600
+ },
2601
+ {
2602
+ "kind": "Content",
2603
+ "text": "): "
2604
+ },
2605
+ {
2606
+ "kind": "Content",
2607
+ "text": "void"
2608
+ },
2609
+ {
2610
+ "kind": "Content",
2611
+ "text": ";"
2612
+ }
2613
+ ],
2614
+ "isStatic": false,
2615
+ "returnTypeTokenRange": {
2616
+ "startIndex": 7,
2617
+ "endIndex": 8
2618
+ },
2619
+ "releaseTag": "Beta",
2620
+ "isProtected": false,
2621
+ "overloadIndex": 1,
2622
+ "parameters": [
2623
+ {
2624
+ "parameterName": "transform",
2625
+ "parameterTypeTokenRange": {
2626
+ "startIndex": 1,
2627
+ "endIndex": 6
2628
+ },
2629
+ "isOptional": true
2630
+ }
2631
+ ],
2632
+ "isOptional": false,
2633
+ "isAbstract": false,
2634
+ "name": "setProviderHistoryTransform"
2323
2635
  }
2324
2636
  ],
2325
2637
  "extendsTokenRange": {
@@ -3141,6 +3453,54 @@
3141
3453
  "isAbstract": false,
3142
3454
  "name": "handleSendClick"
3143
3455
  },
3456
+ {
3457
+ "kind": "Method",
3458
+ "canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#handleSuggestionClick:member(1)",
3459
+ "docComment": "",
3460
+ "excerptTokens": [
3461
+ {
3462
+ "kind": "Content",
3463
+ "text": "handleSuggestionClick(suggestion: "
3464
+ },
3465
+ {
3466
+ "kind": "Content",
3467
+ "text": "string"
3468
+ },
3469
+ {
3470
+ "kind": "Content",
3471
+ "text": "): "
3472
+ },
3473
+ {
3474
+ "kind": "Content",
3475
+ "text": "void"
3476
+ },
3477
+ {
3478
+ "kind": "Content",
3479
+ "text": ";"
3480
+ }
3481
+ ],
3482
+ "isStatic": false,
3483
+ "returnTypeTokenRange": {
3484
+ "startIndex": 3,
3485
+ "endIndex": 4
3486
+ },
3487
+ "releaseTag": "Beta",
3488
+ "isProtected": false,
3489
+ "overloadIndex": 1,
3490
+ "parameters": [
3491
+ {
3492
+ "parameterName": "suggestion",
3493
+ "parameterTypeTokenRange": {
3494
+ "startIndex": 1,
3495
+ "endIndex": 2
3496
+ },
3497
+ "isOptional": false
3498
+ }
3499
+ ],
3500
+ "isOptional": false,
3501
+ "isAbstract": false,
3502
+ "name": "handleSuggestionClick"
3503
+ },
3144
3504
  {
3145
3505
  "kind": "Property",
3146
3506
  "canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#hasActivePendingInteraction:member",
@@ -3891,6 +4251,37 @@
3891
4251
  "isAbstract": false,
3892
4252
  "name": "stateChanged"
3893
4253
  },
4254
+ {
4255
+ "kind": "Property",
4256
+ "canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#suggestionsState:member",
4257
+ "docComment": "",
4258
+ "excerptTokens": [
4259
+ {
4260
+ "kind": "Content",
4261
+ "text": "suggestionsState: "
4262
+ },
4263
+ {
4264
+ "kind": "Reference",
4265
+ "text": "SuggestionsState",
4266
+ "canonicalReference": "@genesislcap/ai-assistant!SuggestionsState:type"
4267
+ },
4268
+ {
4269
+ "kind": "Content",
4270
+ "text": ";"
4271
+ }
4272
+ ],
4273
+ "isReadonly": false,
4274
+ "isOptional": false,
4275
+ "releaseTag": "Beta",
4276
+ "name": "suggestionsState",
4277
+ "propertyTypeTokenRange": {
4278
+ "startIndex": 1,
4279
+ "endIndex": 2
4280
+ },
4281
+ "isStatic": false,
4282
+ "isProtected": false,
4283
+ "isAbstract": false
4284
+ },
3894
4285
  {
3895
4286
  "kind": "Method",
3896
4287
  "canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#toggleSettings:member(1)",
@@ -4658,6 +5049,117 @@
4658
5049
  "isAbstract": false,
4659
5050
  "name": "getRawHistory"
4660
5051
  },
5052
+ {
5053
+ "kind": "Method",
5054
+ "canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#getSuggestions:member(1)",
5055
+ "docComment": "",
5056
+ "excerptTokens": [
5057
+ {
5058
+ "kind": "Content",
5059
+ "text": "getSuggestions(history: "
5060
+ },
5061
+ {
5062
+ "kind": "Reference",
5063
+ "text": "ChatMessage",
5064
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
5065
+ },
5066
+ {
5067
+ "kind": "Content",
5068
+ "text": "[]"
5069
+ },
5070
+ {
5071
+ "kind": "Content",
5072
+ "text": ", prompt: "
5073
+ },
5074
+ {
5075
+ "kind": "Content",
5076
+ "text": "string"
5077
+ },
5078
+ {
5079
+ "kind": "Content",
5080
+ "text": ", count: "
5081
+ },
5082
+ {
5083
+ "kind": "Content",
5084
+ "text": "number"
5085
+ },
5086
+ {
5087
+ "kind": "Content",
5088
+ "text": ", allAgentInfo?: "
5089
+ },
5090
+ {
5091
+ "kind": "Reference",
5092
+ "text": "AllAgentSummary",
5093
+ "canonicalReference": "@genesislcap/ai-assistant!~AllAgentSummary:interface"
5094
+ },
5095
+ {
5096
+ "kind": "Content",
5097
+ "text": "[]"
5098
+ },
5099
+ {
5100
+ "kind": "Content",
5101
+ "text": "): "
5102
+ },
5103
+ {
5104
+ "kind": "Reference",
5105
+ "text": "Promise",
5106
+ "canonicalReference": "!Promise:interface"
5107
+ },
5108
+ {
5109
+ "kind": "Content",
5110
+ "text": "<string[]>"
5111
+ },
5112
+ {
5113
+ "kind": "Content",
5114
+ "text": ";"
5115
+ }
5116
+ ],
5117
+ "isStatic": false,
5118
+ "returnTypeTokenRange": {
5119
+ "startIndex": 11,
5120
+ "endIndex": 13
5121
+ },
5122
+ "releaseTag": "Beta",
5123
+ "isProtected": false,
5124
+ "overloadIndex": 1,
5125
+ "parameters": [
5126
+ {
5127
+ "parameterName": "history",
5128
+ "parameterTypeTokenRange": {
5129
+ "startIndex": 1,
5130
+ "endIndex": 3
5131
+ },
5132
+ "isOptional": false
5133
+ },
5134
+ {
5135
+ "parameterName": "prompt",
5136
+ "parameterTypeTokenRange": {
5137
+ "startIndex": 4,
5138
+ "endIndex": 5
5139
+ },
5140
+ "isOptional": false
5141
+ },
5142
+ {
5143
+ "parameterName": "count",
5144
+ "parameterTypeTokenRange": {
5145
+ "startIndex": 6,
5146
+ "endIndex": 7
5147
+ },
5148
+ "isOptional": false
5149
+ },
5150
+ {
5151
+ "parameterName": "allAgentInfo",
5152
+ "parameterTypeTokenRange": {
5153
+ "startIndex": 8,
5154
+ "endIndex": 10
5155
+ },
5156
+ "isOptional": true
5157
+ }
5158
+ ],
5159
+ "isOptional": false,
5160
+ "isAbstract": false,
5161
+ "name": "getSuggestions"
5162
+ },
4661
5163
  {
4662
5164
  "kind": "Method",
4663
5165
  "canonicalReference": "@genesislcap/ai-assistant!OrchestratingDriver#loadHistory:member(1)",
@@ -5032,6 +5534,32 @@
5032
5534
  "startIndex": 1,
5033
5535
  "endIndex": 2
5034
5536
  }
5537
+ },
5538
+ {
5539
+ "kind": "TypeAlias",
5540
+ "canonicalReference": "@genesislcap/ai-assistant!SuggestionsState:type",
5541
+ "docComment": "/**\n * State of the chat suggestions feature.\n *\n * @beta\n */\n",
5542
+ "excerptTokens": [
5543
+ {
5544
+ "kind": "Content",
5545
+ "text": "export type SuggestionsState = "
5546
+ },
5547
+ {
5548
+ "kind": "Content",
5549
+ "text": "{\n status: 'idle';\n} | {\n status: 'loading';\n} | {\n status: 'loaded';\n suggestions: string[];\n} | {\n status: 'error';\n message: string;\n}"
5550
+ },
5551
+ {
5552
+ "kind": "Content",
5553
+ "text": ";"
5554
+ }
5555
+ ],
5556
+ "fileUrlPath": "src/main/main.types.ts",
5557
+ "releaseTag": "Beta",
5558
+ "name": "SuggestionsState",
5559
+ "typeTokenRange": {
5560
+ "startIndex": 1,
5561
+ "endIndex": 2
5562
+ }
5035
5563
  }
5036
5564
  ]
5037
5565
  }
@@ -158,6 +158,7 @@ export declare interface AiAssistantSerializedState {
158
158
  showThinkingSteps: boolean;
159
159
  showAgentSwitchIndicator: boolean;
160
160
  enabledAnimations: AiAssistantAnimation[];
161
+ suggestions?: string[];
161
162
  }
162
163
 
163
164
  /**
@@ -238,6 +239,10 @@ export declare interface AiDriver extends EventTarget {
238
239
  * Return the full, unredacted conversation history.
239
240
  */
240
241
  getRawHistory?(): readonly ChatMessage[];
242
+ /**
243
+ * Get query suggestions from the AI.
244
+ */
245
+ getSuggestions(history: ChatMessage[], prompt: string, count: number, allAgentInfo?: AllAgentSummary[]): Promise<string[]>;
241
246
  }
242
247
 
243
248
  /**
@@ -247,6 +252,13 @@ export declare interface AiDriver extends EventTarget {
247
252
  */
248
253
  export declare const ALL_ANIMATIONS: AiAssistantAnimation[];
249
254
 
255
+ /** @internal */
256
+ declare interface AllAgentSummary {
257
+ name: string;
258
+ description: string;
259
+ tools: ChatToolDefinition[];
260
+ }
261
+
250
262
  /**
251
263
  * Registry of all available animations with their display metadata.
252
264
  * Adding an entry here automatically extends the {@link AiAssistantAnimation} type.
@@ -307,14 +319,25 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
307
319
  private toolHandlers;
308
320
  private primerHistory?;
309
321
  private activeAgentName?;
322
+ /**
323
+ * When set (e.g. by OrchestratingDriver), applied only to the conversation slice
324
+ * sent to the model — stored `history` stays unchanged for UI and logging.
325
+ */
326
+ private providerHistoryTransform?;
310
327
  constructor(aiProvider: AIProvider, toolHandlers?: ChatToolHandlers, toolDefinitions?: ChatToolDefinition[], systemPrompt?: string, primerHistory?: ChatMessage[], maxToolIterations?: number);
311
328
  /**
312
329
  * Swap in a new agent's configuration. Called by OrchestratingDriver before
313
330
  * each specialist turn so the shared driver runs with the right tools and prompt.
314
331
  */
315
332
  applyAgent(config: AgentConfig): void;
333
+ /**
334
+ * Optional transform applied to conversation history immediately before each LLM request.
335
+ * Cleared when `undefined`. Does not alter stored history.
336
+ */
337
+ setProviderHistoryTransform(transform?: (history: ChatMessage[]) => ChatMessage[]): void;
316
338
  getHistory(): ReadonlyArray<ChatMessage>;
317
339
  getRawHistory(): readonly ChatMessage[];
340
+ getSuggestions(history: ChatMessage[], prompt: string, count: number, allAgentInfo?: AllAgentSummary[]): Promise<string[]>;
318
341
  isBusy(): boolean;
319
342
  /**
320
343
  * Request a custom UI interaction. Emits a new message with the interaction.
@@ -405,6 +428,8 @@ export declare class FoundationAiAssistant extends GenesisElement {
405
428
  attachments: ChatAttachment[];
406
429
  attachmentErrors: string[];
407
430
  activeAgent?: AgentConfig;
431
+ suggestionsState: SuggestionsState;
432
+ private _suggestionsGeneration;
408
433
  /** Current user-facing toggle state for tool call visibility. */
409
434
  showToolCalls: boolean;
410
435
  /** Current user-facing toggle state for thinking step visibility. */
@@ -440,6 +465,7 @@ export declare class FoundationAiAssistant extends GenesisElement {
440
465
  showLoadingIndicatorChanged(): void;
441
466
  private scrollToBottom;
442
467
  private static readonly DEFAULT_LOADING_DELAY_S;
468
+ private static readonly DEFAULT_SUGGESTION_COUNT;
443
469
  private static readonly MS_PER_SECOND;
444
470
  private startLoadingTimer;
445
471
  private clearLoadingTimer;
@@ -471,6 +497,8 @@ export declare class FoundationAiAssistant extends GenesisElement {
471
497
  private readFileAsText;
472
498
  private loadSelectedFiles;
473
499
  handleSendClick(): void;
500
+ handleSuggestionClick(suggestion: string): void;
501
+ private fetchSuggestions;
474
502
  private send;
475
503
  private restoreFocusIfAppropriate;
476
504
  onChatHeaderMouseDown(e: MouseEvent): void;
@@ -567,6 +595,7 @@ export declare class OrchestratingDriver extends EventTarget implements AiDriver
567
595
  resolveInteraction(interactionId: string, result: unknown): void;
568
596
  loadHistory(messages: ChatMessage[]): void;
569
597
  getRawHistory(): readonly ChatMessage[];
598
+ getSuggestions(history: ChatMessage[], prompt: string, count: number, allAgentInfo?: AllAgentSummary[]): Promise<string[]>;
570
599
  sendMessage(input: string, attachments?: ChatAttachment[]): Promise<ChatDriverResult>;
571
600
  continueFromHistory(transientPrimer?: ChatMessage[]): Promise<ChatDriverResult>;
572
601
  private applyAgent;
@@ -613,4 +642,21 @@ export declare interface SpecialistAgentConfig extends BaseAgentConfig {
613
642
  */
614
643
  export declare const strictFallbackAgent: FallbackAgentConfig;
615
644
 
645
+ /**
646
+ * State of the chat suggestions feature.
647
+ *
648
+ * @beta
649
+ */
650
+ export declare type SuggestionsState = {
651
+ status: 'idle';
652
+ } | {
653
+ status: 'loading';
654
+ } | {
655
+ status: 'loaded';
656
+ suggestions: string[];
657
+ } | {
658
+ status: 'error';
659
+ message: string;
660
+ };
661
+
616
662
  export { }