@genesislcap/foundation-ai 14.407.0-workspaces.4 → 14.408.0

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 (128) hide show
  1. package/dist/dts/ai-provider.d.ts +18 -2
  2. package/dist/dts/ai-provider.d.ts.map +1 -1
  3. package/dist/dts/index.d.ts +5 -1
  4. package/dist/dts/index.d.ts.map +1 -1
  5. package/dist/dts/interactions/criteria-interpretation.d.ts +11 -0
  6. package/dist/dts/interactions/criteria-interpretation.d.ts.map +1 -1
  7. package/dist/dts/providers/gemini-provider.d.ts +25 -0
  8. package/dist/dts/providers/gemini-provider.d.ts.map +1 -0
  9. package/dist/dts/transports/gemini-transport.d.ts +66 -0
  10. package/dist/dts/transports/gemini-transport.d.ts.map +1 -0
  11. package/dist/dts/types/chat-transport.types.d.ts +16 -0
  12. package/dist/dts/types/chat-transport.types.d.ts.map +1 -0
  13. package/dist/dts/types/chat.types.d.ts +157 -0
  14. package/dist/dts/types/chat.types.d.ts.map +1 -0
  15. package/dist/dts/types/config.types.d.ts +16 -2
  16. package/dist/dts/types/config.types.d.ts.map +1 -1
  17. package/dist/dts/types/criteria-types.d.ts +10 -0
  18. package/dist/dts/types/criteria-types.d.ts.map +1 -1
  19. package/dist/dts/types/index.d.ts +2 -0
  20. package/dist/dts/types/index.d.ts.map +1 -1
  21. package/dist/dts/utils/speech-to-text.d.ts +11 -0
  22. package/dist/dts/utils/speech-to-text.d.ts.map +1 -1
  23. package/dist/esm/ai-provider.js +18 -0
  24. package/dist/esm/index.js +2 -0
  25. package/dist/esm/providers/gemini-provider.js +59 -0
  26. package/dist/esm/transports/gemini-transport.js +249 -0
  27. package/dist/esm/types/chat-transport.types.js +1 -0
  28. package/dist/esm/types/chat.types.js +1 -0
  29. package/dist/esm/types/index.js +2 -0
  30. package/dist/esm/utils/speech-to-text.js +11 -0
  31. package/dist/foundation-ai.api.json +2937 -240
  32. package/dist/foundation-ai.d.ts +357 -4
  33. package/docs/api/foundation-ai.aiconfig.md +2 -2
  34. package/docs/api/foundation-ai.aiprovider.chat.md +85 -0
  35. package/docs/api/foundation-ai.aiprovider.md +22 -0
  36. package/docs/api/foundation-ai.aiprovider.streamchat.md +85 -0
  37. package/docs/api/foundation-ai.aiprovidertype.md +1 -1
  38. package/docs/api/foundation-ai.chatanimationsconfig.enabled.md +16 -0
  39. package/docs/api/foundation-ai.chatanimationsconfig.md +80 -0
  40. package/docs/api/foundation-ai.chatanimationsconfig.userconfigurable.md +16 -0
  41. package/docs/api/foundation-ai.chatattachment.content.md +14 -0
  42. package/docs/api/foundation-ai.chatattachment.md +99 -0
  43. package/docs/api/foundation-ai.chatattachment.mimetype.md +14 -0
  44. package/docs/api/foundation-ai.chatattachment.name.md +14 -0
  45. package/docs/api/foundation-ai.chatconfig.acceptedfiles.md +16 -0
  46. package/docs/api/foundation-ai.chatconfig.allowdebugdownload.md +16 -0
  47. package/docs/api/foundation-ai.chatconfig.animations.md +16 -0
  48. package/docs/api/foundation-ai.chatconfig.loadingdelay.md +16 -0
  49. package/docs/api/foundation-ai.chatconfig.maxtooliterations.md +16 -0
  50. package/docs/api/foundation-ai.chatconfig.md +177 -0
  51. package/docs/api/foundation-ai.chatconfig.showthinkingsteps.md +16 -0
  52. package/docs/api/foundation-ai.chatconfig.showtoolcalls.md +16 -0
  53. package/docs/api/foundation-ai.chatinteraction.componentname.md +14 -0
  54. package/docs/api/foundation-ai.chatinteraction.data.md +14 -0
  55. package/docs/api/foundation-ai.chatinteraction.interactionid.md +14 -0
  56. package/docs/api/foundation-ai.chatinteraction.md +118 -0
  57. package/docs/api/foundation-ai.chatinteraction.resolved.md +16 -0
  58. package/docs/api/foundation-ai.chatmessage.attachments.md +14 -0
  59. package/docs/api/foundation-ai.chatmessage.content.md +14 -0
  60. package/docs/api/foundation-ai.chatmessage.interaction.md +14 -0
  61. package/docs/api/foundation-ai.chatmessage.md +175 -0
  62. package/docs/api/foundation-ai.chatmessage.role.md +14 -0
  63. package/docs/api/foundation-ai.chatmessage.thinking.md +14 -0
  64. package/docs/api/foundation-ai.chatmessage.toolcalls.md +14 -0
  65. package/docs/api/foundation-ai.chatmessage.toolresult.md +14 -0
  66. package/docs/api/foundation-ai.chatrequestoptions.attachments.md +14 -0
  67. package/docs/api/foundation-ai.chatrequestoptions.md +118 -0
  68. package/docs/api/foundation-ai.chatrequestoptions.signal.md +14 -0
  69. package/docs/api/foundation-ai.chatrequestoptions.systemprompt.md +14 -0
  70. package/docs/api/foundation-ai.chatrequestoptions.tools.md +14 -0
  71. package/docs/api/foundation-ai.chatrole.md +16 -0
  72. package/docs/api/foundation-ai.chatstreamchunk.delta.md +14 -0
  73. package/docs/api/foundation-ai.chatstreamchunk.done.md +14 -0
  74. package/docs/api/foundation-ai.chatstreamchunk.md +99 -0
  75. package/docs/api/foundation-ai.chatstreamchunk.toolcalls.md +14 -0
  76. package/docs/api/foundation-ai.chattoolcall.args.md +14 -0
  77. package/docs/api/foundation-ai.chattoolcall.id.md +14 -0
  78. package/docs/api/foundation-ai.chattoolcall.md +99 -0
  79. package/docs/api/foundation-ai.chattoolcall.name.md +14 -0
  80. package/docs/api/foundation-ai.chattooldefinition.description.md +14 -0
  81. package/docs/api/foundation-ai.chattooldefinition.md +99 -0
  82. package/docs/api/foundation-ai.chattooldefinition.name.md +14 -0
  83. package/docs/api/foundation-ai.chattooldefinition.parameters.md +14 -0
  84. package/docs/api/foundation-ai.chattoolhandlers.md +18 -0
  85. package/docs/api/foundation-ai.chattoolresult.content.md +14 -0
  86. package/docs/api/foundation-ai.chattoolresult.md +80 -0
  87. package/docs/api/foundation-ai.chattoolresult.toolcallid.md +14 -0
  88. package/docs/api/foundation-ai.chattransport.md +58 -0
  89. package/docs/api/foundation-ai.chattransport.sendchatmessage.md +83 -0
  90. package/docs/api/foundation-ai.chattransport.streamchatmessage.md +83 -0
  91. package/docs/api/foundation-ai.criteriagroupresult.clauses.md +3 -0
  92. package/docs/api/foundation-ai.criteriagroupresult.logic.md +3 -0
  93. package/docs/api/foundation-ai.criteriagroupresult.md +10 -1
  94. package/docs/api/foundation-ai.criteriagroupresult.negated.md +3 -0
  95. package/docs/api/foundation-ai.criteriainterpretationresult.groups.md +3 -0
  96. package/docs/api/foundation-ai.criteriainterpretationresult.md +7 -0
  97. package/docs/api/foundation-ai.criteriainterpretcontext.fields.md +3 -0
  98. package/docs/api/foundation-ai.criteriainterpretcontext.md +6 -1
  99. package/docs/api/foundation-ai.fieldlike.md +5 -0
  100. package/docs/api/foundation-ai.geminiaiconfig.apikey.md +14 -0
  101. package/docs/api/foundation-ai.geminiaiconfig.md +123 -0
  102. package/docs/api/foundation-ai.geminiaiconfig.model.md +14 -0
  103. package/docs/api/foundation-ai.geminiaiconfig.providertype.md +14 -0
  104. package/docs/api/foundation-ai.geminiaiconfig.serverendpoint.md +14 -0
  105. package/docs/api/foundation-ai.geminiprovider._constructor_.md +65 -0
  106. package/docs/api/foundation-ai.geminiprovider.chat.md +83 -0
  107. package/docs/api/foundation-ai.geminiprovider.getstatus.md +18 -0
  108. package/docs/api/foundation-ai.geminiprovider.interpretcriteria.md +67 -0
  109. package/docs/api/foundation-ai.geminiprovider.md +128 -0
  110. package/docs/api/foundation-ai.geminiprovider.streamchat.md +83 -0
  111. package/docs/api/foundation-ai.geminitransport._constructor_.md +53 -0
  112. package/docs/api/foundation-ai.geminitransport.getconfig.md +21 -0
  113. package/docs/api/foundation-ai.geminitransport.md +116 -0
  114. package/docs/api/foundation-ai.geminitransport.sendchatmessage.md +83 -0
  115. package/docs/api/foundation-ai.geminitransport.sendstructuredprompt.md +53 -0
  116. package/docs/api/foundation-ai.interactionresult.md +20 -0
  117. package/docs/api/foundation-ai.isspeechrecognitionavailable.md +1 -1
  118. package/docs/api/foundation-ai.malformedfunctioncallerror._constructor_.md +53 -0
  119. package/docs/api/foundation-ai.malformedfunctioncallerror.finishmessage.md +14 -0
  120. package/docs/api/foundation-ai.malformedfunctioncallerror.md +98 -0
  121. package/docs/api/foundation-ai.md +230 -1
  122. package/docs/api/foundation-ai.resolveaiconfigoptions.md +9 -4
  123. package/docs/api/foundation-ai.resolveaiconfigoptions.model.md +3 -0
  124. package/docs/api/foundation-ai.resolveaiconfigoptions.preferchrome.md +3 -0
  125. package/docs/api/foundation-ai.resolveaiconfigoptions.provider.md +5 -2
  126. package/docs/api/foundation-ai.startspeechrecognition.md +5 -0
  127. package/docs/api-report.md.api.md +192 -11
  128. package/package.json +11 -11
@@ -222,6 +222,15 @@
222
222
  "text": "ChromeAIConfig",
223
223
  "canonicalReference": "@genesislcap/foundation-ai!ChromeAIConfig:interface"
224
224
  },
225
+ {
226
+ "kind": "Content",
227
+ "text": " | "
228
+ },
229
+ {
230
+ "kind": "Reference",
231
+ "text": "GeminiAIConfig",
232
+ "canonicalReference": "@genesislcap/foundation-ai!GeminiAIConfig:interface"
233
+ },
225
234
  {
226
235
  "kind": "Content",
227
236
  "text": ";"
@@ -232,7 +241,7 @@
232
241
  "name": "AIConfig",
233
242
  "typeTokenRange": {
234
243
  "startIndex": 1,
235
- "endIndex": 4
244
+ "endIndex": 6
236
245
  }
237
246
  },
238
247
  {
@@ -250,6 +259,103 @@
250
259
  "name": "AIProvider",
251
260
  "preserveMemberOrder": false,
252
261
  "members": [
262
+ {
263
+ "kind": "MethodSignature",
264
+ "canonicalReference": "@genesislcap/foundation-ai!AIProvider#chat:member(1)",
265
+ "docComment": "/**\n * Multi-turn chat (non-streaming). Returns the assistant's response message. Providers that support chat (Gemini, OpenAI) implement this.\n */\n",
266
+ "excerptTokens": [
267
+ {
268
+ "kind": "Content",
269
+ "text": "chat?(history: "
270
+ },
271
+ {
272
+ "kind": "Reference",
273
+ "text": "ChatMessage",
274
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
275
+ },
276
+ {
277
+ "kind": "Content",
278
+ "text": "[]"
279
+ },
280
+ {
281
+ "kind": "Content",
282
+ "text": ", userMessage: "
283
+ },
284
+ {
285
+ "kind": "Content",
286
+ "text": "string"
287
+ },
288
+ {
289
+ "kind": "Content",
290
+ "text": ", options?: "
291
+ },
292
+ {
293
+ "kind": "Reference",
294
+ "text": "ChatRequestOptions",
295
+ "canonicalReference": "@genesislcap/foundation-ai!ChatRequestOptions:interface"
296
+ },
297
+ {
298
+ "kind": "Content",
299
+ "text": "): "
300
+ },
301
+ {
302
+ "kind": "Reference",
303
+ "text": "Promise",
304
+ "canonicalReference": "!Promise:interface"
305
+ },
306
+ {
307
+ "kind": "Content",
308
+ "text": "<"
309
+ },
310
+ {
311
+ "kind": "Reference",
312
+ "text": "ChatMessage",
313
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
314
+ },
315
+ {
316
+ "kind": "Content",
317
+ "text": ">"
318
+ },
319
+ {
320
+ "kind": "Content",
321
+ "text": ";"
322
+ }
323
+ ],
324
+ "isOptional": true,
325
+ "returnTypeTokenRange": {
326
+ "startIndex": 8,
327
+ "endIndex": 12
328
+ },
329
+ "releaseTag": "Beta",
330
+ "overloadIndex": 1,
331
+ "parameters": [
332
+ {
333
+ "parameterName": "history",
334
+ "parameterTypeTokenRange": {
335
+ "startIndex": 1,
336
+ "endIndex": 3
337
+ },
338
+ "isOptional": false
339
+ },
340
+ {
341
+ "parameterName": "userMessage",
342
+ "parameterTypeTokenRange": {
343
+ "startIndex": 4,
344
+ "endIndex": 5
345
+ },
346
+ "isOptional": false
347
+ },
348
+ {
349
+ "parameterName": "options",
350
+ "parameterTypeTokenRange": {
351
+ "startIndex": 6,
352
+ "endIndex": 7
353
+ },
354
+ "isOptional": true
355
+ }
356
+ ],
357
+ "name": "chat"
358
+ },
253
359
  {
254
360
  "kind": "MethodSignature",
255
361
  "canonicalReference": "@genesislcap/foundation-ai!AIProvider#getStatus:member(1)",
@@ -368,6 +474,103 @@
368
474
  ],
369
475
  "name": "interpretCriteria"
370
476
  },
477
+ {
478
+ "kind": "MethodSignature",
479
+ "canonicalReference": "@genesislcap/foundation-ai!AIProvider#streamChat:member(1)",
480
+ "docComment": "/**\n * Multi-turn chat (streaming). Yields chunks as they arrive. Providers that support streaming implement this.\n */\n",
481
+ "excerptTokens": [
482
+ {
483
+ "kind": "Content",
484
+ "text": "streamChat?(history: "
485
+ },
486
+ {
487
+ "kind": "Reference",
488
+ "text": "ChatMessage",
489
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
490
+ },
491
+ {
492
+ "kind": "Content",
493
+ "text": "[]"
494
+ },
495
+ {
496
+ "kind": "Content",
497
+ "text": ", userMessage: "
498
+ },
499
+ {
500
+ "kind": "Content",
501
+ "text": "string"
502
+ },
503
+ {
504
+ "kind": "Content",
505
+ "text": ", options?: "
506
+ },
507
+ {
508
+ "kind": "Reference",
509
+ "text": "ChatRequestOptions",
510
+ "canonicalReference": "@genesislcap/foundation-ai!ChatRequestOptions:interface"
511
+ },
512
+ {
513
+ "kind": "Content",
514
+ "text": "): "
515
+ },
516
+ {
517
+ "kind": "Reference",
518
+ "text": "AsyncIterable",
519
+ "canonicalReference": "!AsyncIterable:interface"
520
+ },
521
+ {
522
+ "kind": "Content",
523
+ "text": "<"
524
+ },
525
+ {
526
+ "kind": "Reference",
527
+ "text": "ChatStreamChunk",
528
+ "canonicalReference": "@genesislcap/foundation-ai!ChatStreamChunk:interface"
529
+ },
530
+ {
531
+ "kind": "Content",
532
+ "text": ">"
533
+ },
534
+ {
535
+ "kind": "Content",
536
+ "text": ";"
537
+ }
538
+ ],
539
+ "isOptional": true,
540
+ "returnTypeTokenRange": {
541
+ "startIndex": 8,
542
+ "endIndex": 12
543
+ },
544
+ "releaseTag": "Beta",
545
+ "overloadIndex": 1,
546
+ "parameters": [
547
+ {
548
+ "parameterName": "history",
549
+ "parameterTypeTokenRange": {
550
+ "startIndex": 1,
551
+ "endIndex": 3
552
+ },
553
+ "isOptional": false
554
+ },
555
+ {
556
+ "parameterName": "userMessage",
557
+ "parameterTypeTokenRange": {
558
+ "startIndex": 4,
559
+ "endIndex": 5
560
+ },
561
+ "isOptional": false
562
+ },
563
+ {
564
+ "parameterName": "options",
565
+ "parameterTypeTokenRange": {
566
+ "startIndex": 6,
567
+ "endIndex": 7
568
+ },
569
+ "isOptional": true
570
+ }
571
+ ],
572
+ "name": "streamChat"
573
+ },
371
574
  {
372
575
  "kind": "MethodSignature",
373
576
  "canonicalReference": "@genesislcap/foundation-ai!AIProvider#triggerDownload:member(1)",
@@ -415,7 +618,7 @@
415
618
  },
416
619
  {
417
620
  "kind": "Content",
418
- "text": "'openai' | 'chrome' | 'none'"
621
+ "text": "'openai' | 'chrome' | 'gemini' | 'none'"
419
622
  },
420
623
  {
421
624
  "kind": "Content",
@@ -533,40 +736,103 @@
533
736
  },
534
737
  {
535
738
  "kind": "Interface",
536
- "canonicalReference": "@genesislcap/foundation-ai!ChromeAIConfig:interface",
537
- "docComment": "/**\n * Chrome built-in AI (Prompt API / Gemini Nano) configuration.\n *\n * @remarks\n *\n * No apiKey required. Uses on-device model. Optional temperature/topK for extensions.\n *\n * @beta\n */\n",
739
+ "canonicalReference": "@genesislcap/foundation-ai!ChatAnimationsConfig:interface",
740
+ "docComment": "/**\n * Configuration for the animations feature.\n *\n * @beta\n */\n",
538
741
  "excerptTokens": [
539
742
  {
540
743
  "kind": "Content",
541
- "text": "export interface ChromeAIConfig extends "
542
- },
744
+ "text": "export interface ChatAnimationsConfig "
745
+ }
746
+ ],
747
+ "fileUrlPath": "src/types/chat.types.ts",
748
+ "releaseTag": "Beta",
749
+ "name": "ChatAnimationsConfig",
750
+ "preserveMemberOrder": false,
751
+ "members": [
543
752
  {
544
- "kind": "Reference",
545
- "text": "AIProviderConfig",
546
- "canonicalReference": "@genesislcap/foundation-ai!~AIProviderConfig:interface"
753
+ "kind": "PropertySignature",
754
+ "canonicalReference": "@genesislcap/foundation-ai!ChatAnimationsConfig#enabled:member",
755
+ "docComment": "/**\n * Initially enabled animations. When omitted all animations are enabled by default.\n */\n",
756
+ "excerptTokens": [
757
+ {
758
+ "kind": "Content",
759
+ "text": "enabled?: "
760
+ },
761
+ {
762
+ "kind": "Content",
763
+ "text": "string[]"
764
+ },
765
+ {
766
+ "kind": "Content",
767
+ "text": ";"
768
+ }
769
+ ],
770
+ "isReadonly": false,
771
+ "isOptional": true,
772
+ "releaseTag": "Beta",
773
+ "name": "enabled",
774
+ "propertyTypeTokenRange": {
775
+ "startIndex": 1,
776
+ "endIndex": 2
777
+ }
547
778
  },
779
+ {
780
+ "kind": "PropertySignature",
781
+ "canonicalReference": "@genesislcap/foundation-ai!ChatAnimationsConfig#userConfigurable:member",
782
+ "docComment": "/**\n * When true, a multiselect control is shown in the settings panel so the user can toggle individual animations on or off.\n */\n",
783
+ "excerptTokens": [
784
+ {
785
+ "kind": "Content",
786
+ "text": "userConfigurable: "
787
+ },
788
+ {
789
+ "kind": "Content",
790
+ "text": "boolean"
791
+ },
792
+ {
793
+ "kind": "Content",
794
+ "text": ";"
795
+ }
796
+ ],
797
+ "isReadonly": false,
798
+ "isOptional": false,
799
+ "releaseTag": "Beta",
800
+ "name": "userConfigurable",
801
+ "propertyTypeTokenRange": {
802
+ "startIndex": 1,
803
+ "endIndex": 2
804
+ }
805
+ }
806
+ ],
807
+ "extendsTokenRanges": []
808
+ },
809
+ {
810
+ "kind": "Interface",
811
+ "canonicalReference": "@genesislcap/foundation-ai!ChatAttachment:interface",
812
+ "docComment": "/**\n * A file attachment included with a user message.\n *\n * @beta\n */\n",
813
+ "excerptTokens": [
548
814
  {
549
815
  "kind": "Content",
550
- "text": " "
816
+ "text": "export interface ChatAttachment "
551
817
  }
552
818
  ],
553
- "fileUrlPath": "src/types/config.types.ts",
819
+ "fileUrlPath": "src/types/chat.types.ts",
554
820
  "releaseTag": "Beta",
555
- "name": "ChromeAIConfig",
821
+ "name": "ChatAttachment",
556
822
  "preserveMemberOrder": false,
557
823
  "members": [
558
824
  {
559
825
  "kind": "PropertySignature",
560
- "canonicalReference": "@genesislcap/foundation-ai!ChromeAIConfig#providerType:member",
826
+ "canonicalReference": "@genesislcap/foundation-ai!ChatAttachment#content:member",
561
827
  "docComment": "",
562
828
  "excerptTokens": [
563
829
  {
564
830
  "kind": "Content",
565
- "text": "providerType?: "
831
+ "text": "content: "
566
832
  },
567
833
  {
568
834
  "kind": "Content",
569
- "text": "'chrome'"
835
+ "text": "string"
570
836
  },
571
837
  {
572
838
  "kind": "Content",
@@ -574,9 +840,9 @@
574
840
  }
575
841
  ],
576
842
  "isReadonly": false,
577
- "isOptional": true,
843
+ "isOptional": false,
578
844
  "releaseTag": "Beta",
579
- "name": "providerType",
845
+ "name": "content",
580
846
  "propertyTypeTokenRange": {
581
847
  "startIndex": 1,
582
848
  "endIndex": 2
@@ -584,16 +850,16 @@
584
850
  },
585
851
  {
586
852
  "kind": "PropertySignature",
587
- "canonicalReference": "@genesislcap/foundation-ai!ChromeAIConfig#temperature:member",
853
+ "canonicalReference": "@genesislcap/foundation-ai!ChatAttachment#mimeType:member",
588
854
  "docComment": "",
589
855
  "excerptTokens": [
590
856
  {
591
857
  "kind": "Content",
592
- "text": "temperature?: "
858
+ "text": "mimeType: "
593
859
  },
594
860
  {
595
861
  "kind": "Content",
596
- "text": "number"
862
+ "text": "string"
597
863
  },
598
864
  {
599
865
  "kind": "Content",
@@ -601,9 +867,9 @@
601
867
  }
602
868
  ],
603
869
  "isReadonly": false,
604
- "isOptional": true,
870
+ "isOptional": false,
605
871
  "releaseTag": "Beta",
606
- "name": "temperature",
872
+ "name": "mimeType",
607
873
  "propertyTypeTokenRange": {
608
874
  "startIndex": 1,
609
875
  "endIndex": 2
@@ -611,16 +877,16 @@
611
877
  },
612
878
  {
613
879
  "kind": "PropertySignature",
614
- "canonicalReference": "@genesislcap/foundation-ai!ChromeAIConfig#topK:member",
880
+ "canonicalReference": "@genesislcap/foundation-ai!ChatAttachment#name:member",
615
881
  "docComment": "",
616
882
  "excerptTokens": [
617
883
  {
618
884
  "kind": "Content",
619
- "text": "topK?: "
885
+ "text": "name: "
620
886
  },
621
887
  {
622
888
  "kind": "Content",
623
- "text": "number"
889
+ "text": "string"
624
890
  },
625
891
  {
626
892
  "kind": "Content",
@@ -628,126 +894,153 @@
628
894
  }
629
895
  ],
630
896
  "isReadonly": false,
631
- "isOptional": true,
897
+ "isOptional": false,
632
898
  "releaseTag": "Beta",
633
- "name": "topK",
899
+ "name": "name",
634
900
  "propertyTypeTokenRange": {
635
901
  "startIndex": 1,
636
902
  "endIndex": 2
637
903
  }
638
904
  }
639
905
  ],
640
- "extendsTokenRanges": [
641
- {
642
- "startIndex": 1,
643
- "endIndex": 2
644
- }
645
- ]
906
+ "extendsTokenRanges": []
646
907
  },
647
908
  {
648
- "kind": "TypeAlias",
649
- "canonicalReference": "@genesislcap/foundation-ai!ChromeAvailability:type",
650
- "docComment": "/**\n * Chrome Prompt API availability states.\n *\n * @beta\n */\n",
909
+ "kind": "Interface",
910
+ "canonicalReference": "@genesislcap/foundation-ai!ChatConfig:interface",
911
+ "docComment": "/**\n * Display and behaviour configuration for the chat assistant.\n *\n * For toggle flags (`showToolCalls`, `showThinkingSteps`): - `true` — default on, user can toggle off - `false` — default off, user can toggle on - `null` / `undefined` — completely disabled, no UI control shown\n *\n * @beta\n */\n",
651
912
  "excerptTokens": [
652
913
  {
653
914
  "kind": "Content",
654
- "text": "export type ChromeAvailability = "
655
- },
915
+ "text": "export interface ChatConfig "
916
+ }
917
+ ],
918
+ "fileUrlPath": "src/types/chat.types.ts",
919
+ "releaseTag": "Beta",
920
+ "name": "ChatConfig",
921
+ "preserveMemberOrder": false,
922
+ "members": [
656
923
  {
657
- "kind": "Content",
658
- "text": "'available' | 'downloading' | 'downloadable' | 'unavailable'"
659
- },
660
- {
661
- "kind": "Content",
662
- "text": ";"
663
- }
664
- ],
665
- "fileUrlPath": "src/types/status.types.ts",
666
- "releaseTag": "Beta",
667
- "name": "ChromeAvailability",
668
- "typeTokenRange": {
669
- "startIndex": 1,
670
- "endIndex": 2
671
- }
672
- },
673
- {
674
- "kind": "Function",
675
- "canonicalReference": "@genesislcap/foundation-ai!createAIProvider:function(1)",
676
- "docComment": "/**\n * Creates an AIProvider from config. Uses ChromeProvider when providerType is 'chrome'. Uses OpenAIProvider with ServerOpenAITransport when provider is set (server-only). Otherwise returns DefaultAIProvider. When the AI feature flag is disabled (?feature.ai), always returns DefaultAIProvider.\n *\n * @beta\n */\n",
677
- "excerptTokens": [
678
- {
679
- "kind": "Content",
680
- "text": "export declare function createAIProvider(config?: "
681
- },
682
- {
683
- "kind": "Reference",
684
- "text": "AIConfig",
685
- "canonicalReference": "@genesislcap/foundation-ai!AIConfig:type"
686
- },
687
- {
688
- "kind": "Content",
689
- "text": " | null"
924
+ "kind": "PropertySignature",
925
+ "canonicalReference": "@genesislcap/foundation-ai!ChatConfig#acceptedFiles:member",
926
+ "docComment": "/**\n * Comma-separated list of accepted file extensions for upload, e.g., \".txt,.md,.csv\". If undefined or empty, file uploads are disabled.\n */\n",
927
+ "excerptTokens": [
928
+ {
929
+ "kind": "Content",
930
+ "text": "acceptedFiles?: "
931
+ },
932
+ {
933
+ "kind": "Content",
934
+ "text": "string"
935
+ },
936
+ {
937
+ "kind": "Content",
938
+ "text": ";"
939
+ }
940
+ ],
941
+ "isReadonly": false,
942
+ "isOptional": true,
943
+ "releaseTag": "Beta",
944
+ "name": "acceptedFiles",
945
+ "propertyTypeTokenRange": {
946
+ "startIndex": 1,
947
+ "endIndex": 2
948
+ }
690
949
  },
691
950
  {
692
- "kind": "Content",
693
- "text": "): "
951
+ "kind": "PropertySignature",
952
+ "canonicalReference": "@genesislcap/foundation-ai!ChatConfig#allowDebugDownload:member",
953
+ "docComment": "/**\n * Show a button to download the full chat history as JSON.\n */\n",
954
+ "excerptTokens": [
955
+ {
956
+ "kind": "Content",
957
+ "text": "allowDebugDownload?: "
958
+ },
959
+ {
960
+ "kind": "Content",
961
+ "text": "boolean"
962
+ },
963
+ {
964
+ "kind": "Content",
965
+ "text": ";"
966
+ }
967
+ ],
968
+ "isReadonly": false,
969
+ "isOptional": true,
970
+ "releaseTag": "Beta",
971
+ "name": "allowDebugDownload",
972
+ "propertyTypeTokenRange": {
973
+ "startIndex": 1,
974
+ "endIndex": 2
975
+ }
694
976
  },
695
977
  {
696
- "kind": "Reference",
697
- "text": "AIProvider",
698
- "canonicalReference": "@genesislcap/foundation-ai!AIProvider:interface"
978
+ "kind": "PropertySignature",
979
+ "canonicalReference": "@genesislcap/foundation-ai!ChatConfig#animations:member",
980
+ "docComment": "/**\n * Animations feature configuration.\n */\n",
981
+ "excerptTokens": [
982
+ {
983
+ "kind": "Content",
984
+ "text": "animations?: "
985
+ },
986
+ {
987
+ "kind": "Reference",
988
+ "text": "ChatAnimationsConfig",
989
+ "canonicalReference": "@genesislcap/foundation-ai!ChatAnimationsConfig:interface"
990
+ },
991
+ {
992
+ "kind": "Content",
993
+ "text": ";"
994
+ }
995
+ ],
996
+ "isReadonly": false,
997
+ "isOptional": true,
998
+ "releaseTag": "Beta",
999
+ "name": "animations",
1000
+ "propertyTypeTokenRange": {
1001
+ "startIndex": 1,
1002
+ "endIndex": 2
1003
+ }
699
1004
  },
700
1005
  {
701
- "kind": "Content",
702
- "text": ";"
703
- }
704
- ],
705
- "fileUrlPath": "src/ai-provider.ts",
706
- "returnTypeTokenRange": {
707
- "startIndex": 4,
708
- "endIndex": 5
709
- },
710
- "releaseTag": "Beta",
711
- "overloadIndex": 1,
712
- "parameters": [
713
- {
714
- "parameterName": "config",
715
- "parameterTypeTokenRange": {
1006
+ "kind": "PropertySignature",
1007
+ "canonicalReference": "@genesislcap/foundation-ai!ChatConfig#loadingDelay:member",
1008
+ "docComment": "/**\n * Seconds to wait before showing the loading spinner. Default: 5. Set to 0 to show the spinner immediately when a request is in flight.\n */\n",
1009
+ "excerptTokens": [
1010
+ {
1011
+ "kind": "Content",
1012
+ "text": "loadingDelay?: "
1013
+ },
1014
+ {
1015
+ "kind": "Content",
1016
+ "text": "number"
1017
+ },
1018
+ {
1019
+ "kind": "Content",
1020
+ "text": ";"
1021
+ }
1022
+ ],
1023
+ "isReadonly": false,
1024
+ "isOptional": true,
1025
+ "releaseTag": "Beta",
1026
+ "name": "loadingDelay",
1027
+ "propertyTypeTokenRange": {
716
1028
  "startIndex": 1,
717
- "endIndex": 3
718
- },
719
- "isOptional": true
720
- }
721
- ],
722
- "name": "createAIProvider"
723
- },
724
- {
725
- "kind": "Interface",
726
- "canonicalReference": "@genesislcap/foundation-ai!CriteriaClauseResult:interface",
727
- "docComment": "/**\n * Minimal types for AI criteria interpretation results. Providers return these; consumers (e.g. ai-criteria-search) validate and cast.\n *\n * @beta\n */\n",
728
- "excerptTokens": [
729
- {
730
- "kind": "Content",
731
- "text": "export interface CriteriaClauseResult "
732
- }
733
- ],
734
- "fileUrlPath": "src/types/criteria-types.ts",
735
- "releaseTag": "Beta",
736
- "name": "CriteriaClauseResult",
737
- "preserveMemberOrder": false,
738
- "members": [
1029
+ "endIndex": 2
1030
+ }
1031
+ },
739
1032
  {
740
1033
  "kind": "PropertySignature",
741
- "canonicalReference": "@genesislcap/foundation-ai!CriteriaClauseResult#field:member",
742
- "docComment": "",
1034
+ "canonicalReference": "@genesislcap/foundation-ai!ChatConfig#maxToolIterations:member",
1035
+ "docComment": "/**\n * Maximum number of tool call iterations per turn. Default: 50.\n */\n",
743
1036
  "excerptTokens": [
744
1037
  {
745
1038
  "kind": "Content",
746
- "text": "field: "
1039
+ "text": "maxToolIterations?: "
747
1040
  },
748
1041
  {
749
1042
  "kind": "Content",
750
- "text": "string"
1043
+ "text": "number"
751
1044
  },
752
1045
  {
753
1046
  "kind": "Content",
@@ -755,9 +1048,9 @@
755
1048
  }
756
1049
  ],
757
1050
  "isReadonly": false,
758
- "isOptional": false,
1051
+ "isOptional": true,
759
1052
  "releaseTag": "Beta",
760
- "name": "field",
1053
+ "name": "maxToolIterations",
761
1054
  "propertyTypeTokenRange": {
762
1055
  "startIndex": 1,
763
1056
  "endIndex": 2
@@ -765,16 +1058,16 @@
765
1058
  },
766
1059
  {
767
1060
  "kind": "PropertySignature",
768
- "canonicalReference": "@genesislcap/foundation-ai!CriteriaClauseResult#operator:member",
769
- "docComment": "",
1061
+ "canonicalReference": "@genesislcap/foundation-ai!ChatConfig#showThinkingSteps:member",
1062
+ "docComment": "/**\n * Show model thinking/reasoning steps.\n */\n",
770
1063
  "excerptTokens": [
771
1064
  {
772
1065
  "kind": "Content",
773
- "text": "operator: "
1066
+ "text": "showThinkingSteps?: "
774
1067
  },
775
1068
  {
776
1069
  "kind": "Content",
777
- "text": "string"
1070
+ "text": "boolean | null"
778
1071
  },
779
1072
  {
780
1073
  "kind": "Content",
@@ -782,9 +1075,9 @@
782
1075
  }
783
1076
  ],
784
1077
  "isReadonly": false,
785
- "isOptional": false,
1078
+ "isOptional": true,
786
1079
  "releaseTag": "Beta",
787
- "name": "operator",
1080
+ "name": "showThinkingSteps",
788
1081
  "propertyTypeTokenRange": {
789
1082
  "startIndex": 1,
790
1083
  "endIndex": 2
@@ -792,16 +1085,16 @@
792
1085
  },
793
1086
  {
794
1087
  "kind": "PropertySignature",
795
- "canonicalReference": "@genesislcap/foundation-ai!CriteriaClauseResult#value:member",
796
- "docComment": "",
1088
+ "canonicalReference": "@genesislcap/foundation-ai!ChatConfig#showToolCalls:member",
1089
+ "docComment": "/**\n * Show tool call details in the chat UI.\n */\n",
797
1090
  "excerptTokens": [
798
1091
  {
799
1092
  "kind": "Content",
800
- "text": "value: "
1093
+ "text": "showToolCalls?: "
801
1094
  },
802
1095
  {
803
1096
  "kind": "Content",
804
- "text": "string | number | boolean | null"
1097
+ "text": "boolean | null"
805
1098
  },
806
1099
  {
807
1100
  "kind": "Content",
@@ -809,9 +1102,9 @@
809
1102
  }
810
1103
  ],
811
1104
  "isReadonly": false,
812
- "isOptional": false,
1105
+ "isOptional": true,
813
1106
  "releaseTag": "Beta",
814
- "name": "value",
1107
+ "name": "showToolCalls",
815
1108
  "propertyTypeTokenRange": {
816
1109
  "startIndex": 1,
817
1110
  "endIndex": 2
@@ -822,36 +1115,58 @@
822
1115
  },
823
1116
  {
824
1117
  "kind": "Interface",
825
- "canonicalReference": "@genesislcap/foundation-ai!CriteriaGroupResult:interface",
826
- "docComment": "",
1118
+ "canonicalReference": "@genesislcap/foundation-ai!ChatInteraction:interface",
1119
+ "docComment": "/**\n * A user interaction component request.\n *\n * @beta\n */\n",
827
1120
  "excerptTokens": [
828
1121
  {
829
1122
  "kind": "Content",
830
- "text": "export interface CriteriaGroupResult "
1123
+ "text": "export interface ChatInteraction "
831
1124
  }
832
1125
  ],
833
- "fileUrlPath": "src/types/criteria-types.ts",
834
- "releaseTag": "Public",
835
- "name": "CriteriaGroupResult",
1126
+ "fileUrlPath": "src/types/chat.types.ts",
1127
+ "releaseTag": "Beta",
1128
+ "name": "ChatInteraction",
836
1129
  "preserveMemberOrder": false,
837
1130
  "members": [
838
1131
  {
839
1132
  "kind": "PropertySignature",
840
- "canonicalReference": "@genesislcap/foundation-ai!CriteriaGroupResult#clauses:member",
1133
+ "canonicalReference": "@genesislcap/foundation-ai!ChatInteraction#componentName:member",
841
1134
  "docComment": "",
842
1135
  "excerptTokens": [
843
1136
  {
844
1137
  "kind": "Content",
845
- "text": "clauses: "
1138
+ "text": "componentName: "
846
1139
  },
847
1140
  {
848
- "kind": "Reference",
849
- "text": "CriteriaClauseResult",
850
- "canonicalReference": "@genesislcap/foundation-ai!CriteriaClauseResult:interface"
1141
+ "kind": "Content",
1142
+ "text": "string"
851
1143
  },
852
1144
  {
853
1145
  "kind": "Content",
854
- "text": "[]"
1146
+ "text": ";"
1147
+ }
1148
+ ],
1149
+ "isReadonly": false,
1150
+ "isOptional": false,
1151
+ "releaseTag": "Beta",
1152
+ "name": "componentName",
1153
+ "propertyTypeTokenRange": {
1154
+ "startIndex": 1,
1155
+ "endIndex": 2
1156
+ }
1157
+ },
1158
+ {
1159
+ "kind": "PropertySignature",
1160
+ "canonicalReference": "@genesislcap/foundation-ai!ChatInteraction#data:member",
1161
+ "docComment": "",
1162
+ "excerptTokens": [
1163
+ {
1164
+ "kind": "Content",
1165
+ "text": "data: "
1166
+ },
1167
+ {
1168
+ "kind": "Content",
1169
+ "text": "any"
855
1170
  },
856
1171
  {
857
1172
  "kind": "Content",
@@ -860,25 +1175,25 @@
860
1175
  ],
861
1176
  "isReadonly": false,
862
1177
  "isOptional": false,
863
- "releaseTag": "Public",
864
- "name": "clauses",
1178
+ "releaseTag": "Beta",
1179
+ "name": "data",
865
1180
  "propertyTypeTokenRange": {
866
1181
  "startIndex": 1,
867
- "endIndex": 3
1182
+ "endIndex": 2
868
1183
  }
869
1184
  },
870
1185
  {
871
1186
  "kind": "PropertySignature",
872
- "canonicalReference": "@genesislcap/foundation-ai!CriteriaGroupResult#logic:member",
1187
+ "canonicalReference": "@genesislcap/foundation-ai!ChatInteraction#interactionId:member",
873
1188
  "docComment": "",
874
1189
  "excerptTokens": [
875
1190
  {
876
1191
  "kind": "Content",
877
- "text": "logic: "
1192
+ "text": "interactionId: "
878
1193
  },
879
1194
  {
880
1195
  "kind": "Content",
881
- "text": "'and' | 'or'"
1196
+ "text": "string"
882
1197
  },
883
1198
  {
884
1199
  "kind": "Content",
@@ -887,8 +1202,8 @@
887
1202
  ],
888
1203
  "isReadonly": false,
889
1204
  "isOptional": false,
890
- "releaseTag": "Public",
891
- "name": "logic",
1205
+ "releaseTag": "Beta",
1206
+ "name": "interactionId",
892
1207
  "propertyTypeTokenRange": {
893
1208
  "startIndex": 1,
894
1209
  "endIndex": 2
@@ -896,12 +1211,12 @@
896
1211
  },
897
1212
  {
898
1213
  "kind": "PropertySignature",
899
- "canonicalReference": "@genesislcap/foundation-ai!CriteriaGroupResult#negated:member",
900
- "docComment": "",
1214
+ "canonicalReference": "@genesislcap/foundation-ai!ChatInteraction#resolved:member",
1215
+ "docComment": "/**\n * Set to true once the interaction has been resolved. Used to render a read-only state on re-render.\n */\n",
901
1216
  "excerptTokens": [
902
1217
  {
903
1218
  "kind": "Content",
904
- "text": "negated?: "
1219
+ "text": "resolved?: "
905
1220
  },
906
1221
  {
907
1222
  "kind": "Content",
@@ -914,8 +1229,8 @@
914
1229
  ],
915
1230
  "isReadonly": false,
916
1231
  "isOptional": true,
917
- "releaseTag": "Public",
918
- "name": "negated",
1232
+ "releaseTag": "Beta",
1233
+ "name": "resolved",
919
1234
  "propertyTypeTokenRange": {
920
1235
  "startIndex": 1,
921
1236
  "endIndex": 2
@@ -926,129 +1241,2370 @@
926
1241
  },
927
1242
  {
928
1243
  "kind": "Interface",
929
- "canonicalReference": "@genesislcap/foundation-ai!CriteriaInterpretationResult:interface",
930
- "docComment": "",
1244
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface",
1245
+ "docComment": "/**\n * A single message in a chat conversation.\n *\n * @beta\n */\n",
931
1246
  "excerptTokens": [
932
1247
  {
933
1248
  "kind": "Content",
934
- "text": "export interface CriteriaInterpretationResult "
1249
+ "text": "export interface ChatMessage "
935
1250
  }
936
1251
  ],
937
- "fileUrlPath": "src/types/criteria-types.ts",
938
- "releaseTag": "Public",
939
- "name": "CriteriaInterpretationResult",
1252
+ "fileUrlPath": "src/types/chat.types.ts",
1253
+ "releaseTag": "Beta",
1254
+ "name": "ChatMessage",
940
1255
  "preserveMemberOrder": false,
941
1256
  "members": [
942
1257
  {
943
- "kind": "PropertySignature",
944
- "canonicalReference": "@genesislcap/foundation-ai!CriteriaInterpretationResult#groups:member",
1258
+ "kind": "PropertySignature",
1259
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage#attachments:member",
1260
+ "docComment": "",
1261
+ "excerptTokens": [
1262
+ {
1263
+ "kind": "Content",
1264
+ "text": "attachments?: "
1265
+ },
1266
+ {
1267
+ "kind": "Reference",
1268
+ "text": "ChatAttachment",
1269
+ "canonicalReference": "@genesislcap/foundation-ai!ChatAttachment:interface"
1270
+ },
1271
+ {
1272
+ "kind": "Content",
1273
+ "text": "[]"
1274
+ },
1275
+ {
1276
+ "kind": "Content",
1277
+ "text": ";"
1278
+ }
1279
+ ],
1280
+ "isReadonly": false,
1281
+ "isOptional": true,
1282
+ "releaseTag": "Beta",
1283
+ "name": "attachments",
1284
+ "propertyTypeTokenRange": {
1285
+ "startIndex": 1,
1286
+ "endIndex": 3
1287
+ }
1288
+ },
1289
+ {
1290
+ "kind": "PropertySignature",
1291
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage#content:member",
1292
+ "docComment": "",
1293
+ "excerptTokens": [
1294
+ {
1295
+ "kind": "Content",
1296
+ "text": "content: "
1297
+ },
1298
+ {
1299
+ "kind": "Content",
1300
+ "text": "string"
1301
+ },
1302
+ {
1303
+ "kind": "Content",
1304
+ "text": ";"
1305
+ }
1306
+ ],
1307
+ "isReadonly": false,
1308
+ "isOptional": false,
1309
+ "releaseTag": "Beta",
1310
+ "name": "content",
1311
+ "propertyTypeTokenRange": {
1312
+ "startIndex": 1,
1313
+ "endIndex": 2
1314
+ }
1315
+ },
1316
+ {
1317
+ "kind": "PropertySignature",
1318
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage#interaction:member",
1319
+ "docComment": "",
1320
+ "excerptTokens": [
1321
+ {
1322
+ "kind": "Content",
1323
+ "text": "interaction?: "
1324
+ },
1325
+ {
1326
+ "kind": "Reference",
1327
+ "text": "ChatInteraction",
1328
+ "canonicalReference": "@genesislcap/foundation-ai!ChatInteraction:interface"
1329
+ },
1330
+ {
1331
+ "kind": "Content",
1332
+ "text": ";"
1333
+ }
1334
+ ],
1335
+ "isReadonly": false,
1336
+ "isOptional": true,
1337
+ "releaseTag": "Beta",
1338
+ "name": "interaction",
1339
+ "propertyTypeTokenRange": {
1340
+ "startIndex": 1,
1341
+ "endIndex": 2
1342
+ }
1343
+ },
1344
+ {
1345
+ "kind": "PropertySignature",
1346
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage#role:member",
1347
+ "docComment": "",
1348
+ "excerptTokens": [
1349
+ {
1350
+ "kind": "Content",
1351
+ "text": "role: "
1352
+ },
1353
+ {
1354
+ "kind": "Reference",
1355
+ "text": "ChatRole",
1356
+ "canonicalReference": "@genesislcap/foundation-ai!ChatRole:type"
1357
+ },
1358
+ {
1359
+ "kind": "Content",
1360
+ "text": ";"
1361
+ }
1362
+ ],
1363
+ "isReadonly": false,
1364
+ "isOptional": false,
1365
+ "releaseTag": "Beta",
1366
+ "name": "role",
1367
+ "propertyTypeTokenRange": {
1368
+ "startIndex": 1,
1369
+ "endIndex": 2
1370
+ }
1371
+ },
1372
+ {
1373
+ "kind": "PropertySignature",
1374
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage#thinking:member",
1375
+ "docComment": "",
1376
+ "excerptTokens": [
1377
+ {
1378
+ "kind": "Content",
1379
+ "text": "thinking?: "
1380
+ },
1381
+ {
1382
+ "kind": "Content",
1383
+ "text": "boolean"
1384
+ },
1385
+ {
1386
+ "kind": "Content",
1387
+ "text": ";"
1388
+ }
1389
+ ],
1390
+ "isReadonly": false,
1391
+ "isOptional": true,
1392
+ "releaseTag": "Beta",
1393
+ "name": "thinking",
1394
+ "propertyTypeTokenRange": {
1395
+ "startIndex": 1,
1396
+ "endIndex": 2
1397
+ }
1398
+ },
1399
+ {
1400
+ "kind": "PropertySignature",
1401
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage#toolCalls:member",
1402
+ "docComment": "",
1403
+ "excerptTokens": [
1404
+ {
1405
+ "kind": "Content",
1406
+ "text": "toolCalls?: "
1407
+ },
1408
+ {
1409
+ "kind": "Reference",
1410
+ "text": "ChatToolCall",
1411
+ "canonicalReference": "@genesislcap/foundation-ai!ChatToolCall:interface"
1412
+ },
1413
+ {
1414
+ "kind": "Content",
1415
+ "text": "[]"
1416
+ },
1417
+ {
1418
+ "kind": "Content",
1419
+ "text": ";"
1420
+ }
1421
+ ],
1422
+ "isReadonly": false,
1423
+ "isOptional": true,
1424
+ "releaseTag": "Beta",
1425
+ "name": "toolCalls",
1426
+ "propertyTypeTokenRange": {
1427
+ "startIndex": 1,
1428
+ "endIndex": 3
1429
+ }
1430
+ },
1431
+ {
1432
+ "kind": "PropertySignature",
1433
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage#toolResult:member",
1434
+ "docComment": "",
1435
+ "excerptTokens": [
1436
+ {
1437
+ "kind": "Content",
1438
+ "text": "toolResult?: "
1439
+ },
1440
+ {
1441
+ "kind": "Reference",
1442
+ "text": "ChatToolResult",
1443
+ "canonicalReference": "@genesislcap/foundation-ai!ChatToolResult:interface"
1444
+ },
1445
+ {
1446
+ "kind": "Content",
1447
+ "text": ";"
1448
+ }
1449
+ ],
1450
+ "isReadonly": false,
1451
+ "isOptional": true,
1452
+ "releaseTag": "Beta",
1453
+ "name": "toolResult",
1454
+ "propertyTypeTokenRange": {
1455
+ "startIndex": 1,
1456
+ "endIndex": 2
1457
+ }
1458
+ }
1459
+ ],
1460
+ "extendsTokenRanges": []
1461
+ },
1462
+ {
1463
+ "kind": "Interface",
1464
+ "canonicalReference": "@genesislcap/foundation-ai!ChatRequestOptions:interface",
1465
+ "docComment": "/**\n * Options for a chat request.\n *\n * @beta\n */\n",
1466
+ "excerptTokens": [
1467
+ {
1468
+ "kind": "Content",
1469
+ "text": "export interface ChatRequestOptions "
1470
+ }
1471
+ ],
1472
+ "fileUrlPath": "src/types/chat.types.ts",
1473
+ "releaseTag": "Beta",
1474
+ "name": "ChatRequestOptions",
1475
+ "preserveMemberOrder": false,
1476
+ "members": [
1477
+ {
1478
+ "kind": "PropertySignature",
1479
+ "canonicalReference": "@genesislcap/foundation-ai!ChatRequestOptions#attachments:member",
1480
+ "docComment": "",
1481
+ "excerptTokens": [
1482
+ {
1483
+ "kind": "Content",
1484
+ "text": "attachments?: "
1485
+ },
1486
+ {
1487
+ "kind": "Reference",
1488
+ "text": "ChatAttachment",
1489
+ "canonicalReference": "@genesislcap/foundation-ai!ChatAttachment:interface"
1490
+ },
1491
+ {
1492
+ "kind": "Content",
1493
+ "text": "[]"
1494
+ },
1495
+ {
1496
+ "kind": "Content",
1497
+ "text": ";"
1498
+ }
1499
+ ],
1500
+ "isReadonly": false,
1501
+ "isOptional": true,
1502
+ "releaseTag": "Beta",
1503
+ "name": "attachments",
1504
+ "propertyTypeTokenRange": {
1505
+ "startIndex": 1,
1506
+ "endIndex": 3
1507
+ }
1508
+ },
1509
+ {
1510
+ "kind": "PropertySignature",
1511
+ "canonicalReference": "@genesislcap/foundation-ai!ChatRequestOptions#signal:member",
1512
+ "docComment": "",
1513
+ "excerptTokens": [
1514
+ {
1515
+ "kind": "Content",
1516
+ "text": "signal?: "
1517
+ },
1518
+ {
1519
+ "kind": "Reference",
1520
+ "text": "AbortSignal",
1521
+ "canonicalReference": "!AbortSignal:interface"
1522
+ },
1523
+ {
1524
+ "kind": "Content",
1525
+ "text": ";"
1526
+ }
1527
+ ],
1528
+ "isReadonly": false,
1529
+ "isOptional": true,
1530
+ "releaseTag": "Beta",
1531
+ "name": "signal",
1532
+ "propertyTypeTokenRange": {
1533
+ "startIndex": 1,
1534
+ "endIndex": 2
1535
+ }
1536
+ },
1537
+ {
1538
+ "kind": "PropertySignature",
1539
+ "canonicalReference": "@genesislcap/foundation-ai!ChatRequestOptions#systemPrompt:member",
1540
+ "docComment": "",
1541
+ "excerptTokens": [
1542
+ {
1543
+ "kind": "Content",
1544
+ "text": "systemPrompt?: "
1545
+ },
1546
+ {
1547
+ "kind": "Content",
1548
+ "text": "string"
1549
+ },
1550
+ {
1551
+ "kind": "Content",
1552
+ "text": ";"
1553
+ }
1554
+ ],
1555
+ "isReadonly": false,
1556
+ "isOptional": true,
1557
+ "releaseTag": "Beta",
1558
+ "name": "systemPrompt",
1559
+ "propertyTypeTokenRange": {
1560
+ "startIndex": 1,
1561
+ "endIndex": 2
1562
+ }
1563
+ },
1564
+ {
1565
+ "kind": "PropertySignature",
1566
+ "canonicalReference": "@genesislcap/foundation-ai!ChatRequestOptions#tools:member",
1567
+ "docComment": "",
1568
+ "excerptTokens": [
1569
+ {
1570
+ "kind": "Content",
1571
+ "text": "tools?: "
1572
+ },
1573
+ {
1574
+ "kind": "Reference",
1575
+ "text": "ChatToolDefinition",
1576
+ "canonicalReference": "@genesislcap/foundation-ai!ChatToolDefinition:interface"
1577
+ },
1578
+ {
1579
+ "kind": "Content",
1580
+ "text": "[]"
1581
+ },
1582
+ {
1583
+ "kind": "Content",
1584
+ "text": ";"
1585
+ }
1586
+ ],
1587
+ "isReadonly": false,
1588
+ "isOptional": true,
1589
+ "releaseTag": "Beta",
1590
+ "name": "tools",
1591
+ "propertyTypeTokenRange": {
1592
+ "startIndex": 1,
1593
+ "endIndex": 3
1594
+ }
1595
+ }
1596
+ ],
1597
+ "extendsTokenRanges": []
1598
+ },
1599
+ {
1600
+ "kind": "TypeAlias",
1601
+ "canonicalReference": "@genesislcap/foundation-ai!ChatRole:type",
1602
+ "docComment": "/**\n * Role of a message in a chat conversation.\n *\n * @beta\n */\n",
1603
+ "excerptTokens": [
1604
+ {
1605
+ "kind": "Content",
1606
+ "text": "export type ChatRole = "
1607
+ },
1608
+ {
1609
+ "kind": "Content",
1610
+ "text": "'user' | 'assistant' | 'system' | 'tool'"
1611
+ },
1612
+ {
1613
+ "kind": "Content",
1614
+ "text": ";"
1615
+ }
1616
+ ],
1617
+ "fileUrlPath": "src/types/chat.types.ts",
1618
+ "releaseTag": "Beta",
1619
+ "name": "ChatRole",
1620
+ "typeTokenRange": {
1621
+ "startIndex": 1,
1622
+ "endIndex": 2
1623
+ }
1624
+ },
1625
+ {
1626
+ "kind": "Interface",
1627
+ "canonicalReference": "@genesislcap/foundation-ai!ChatStreamChunk:interface",
1628
+ "docComment": "/**\n * A streaming chunk from a chat response.\n *\n * @beta\n */\n",
1629
+ "excerptTokens": [
1630
+ {
1631
+ "kind": "Content",
1632
+ "text": "export interface ChatStreamChunk "
1633
+ }
1634
+ ],
1635
+ "fileUrlPath": "src/types/chat.types.ts",
1636
+ "releaseTag": "Beta",
1637
+ "name": "ChatStreamChunk",
1638
+ "preserveMemberOrder": false,
1639
+ "members": [
1640
+ {
1641
+ "kind": "PropertySignature",
1642
+ "canonicalReference": "@genesislcap/foundation-ai!ChatStreamChunk#delta:member",
1643
+ "docComment": "",
1644
+ "excerptTokens": [
1645
+ {
1646
+ "kind": "Content",
1647
+ "text": "delta: "
1648
+ },
1649
+ {
1650
+ "kind": "Content",
1651
+ "text": "string"
1652
+ },
1653
+ {
1654
+ "kind": "Content",
1655
+ "text": ";"
1656
+ }
1657
+ ],
1658
+ "isReadonly": false,
1659
+ "isOptional": false,
1660
+ "releaseTag": "Beta",
1661
+ "name": "delta",
1662
+ "propertyTypeTokenRange": {
1663
+ "startIndex": 1,
1664
+ "endIndex": 2
1665
+ }
1666
+ },
1667
+ {
1668
+ "kind": "PropertySignature",
1669
+ "canonicalReference": "@genesislcap/foundation-ai!ChatStreamChunk#done:member",
1670
+ "docComment": "",
1671
+ "excerptTokens": [
1672
+ {
1673
+ "kind": "Content",
1674
+ "text": "done: "
1675
+ },
1676
+ {
1677
+ "kind": "Content",
1678
+ "text": "boolean"
1679
+ },
1680
+ {
1681
+ "kind": "Content",
1682
+ "text": ";"
1683
+ }
1684
+ ],
1685
+ "isReadonly": false,
1686
+ "isOptional": false,
1687
+ "releaseTag": "Beta",
1688
+ "name": "done",
1689
+ "propertyTypeTokenRange": {
1690
+ "startIndex": 1,
1691
+ "endIndex": 2
1692
+ }
1693
+ },
1694
+ {
1695
+ "kind": "PropertySignature",
1696
+ "canonicalReference": "@genesislcap/foundation-ai!ChatStreamChunk#toolCalls:member",
1697
+ "docComment": "",
1698
+ "excerptTokens": [
1699
+ {
1700
+ "kind": "Content",
1701
+ "text": "toolCalls?: "
1702
+ },
1703
+ {
1704
+ "kind": "Reference",
1705
+ "text": "ChatToolCall",
1706
+ "canonicalReference": "@genesislcap/foundation-ai!ChatToolCall:interface"
1707
+ },
1708
+ {
1709
+ "kind": "Content",
1710
+ "text": "[]"
1711
+ },
1712
+ {
1713
+ "kind": "Content",
1714
+ "text": ";"
1715
+ }
1716
+ ],
1717
+ "isReadonly": false,
1718
+ "isOptional": true,
1719
+ "releaseTag": "Beta",
1720
+ "name": "toolCalls",
1721
+ "propertyTypeTokenRange": {
1722
+ "startIndex": 1,
1723
+ "endIndex": 3
1724
+ }
1725
+ }
1726
+ ],
1727
+ "extendsTokenRanges": []
1728
+ },
1729
+ {
1730
+ "kind": "Interface",
1731
+ "canonicalReference": "@genesislcap/foundation-ai!ChatToolCall:interface",
1732
+ "docComment": "/**\n * A tool call requested by the assistant.\n *\n * @beta\n */\n",
1733
+ "excerptTokens": [
1734
+ {
1735
+ "kind": "Content",
1736
+ "text": "export interface ChatToolCall "
1737
+ }
1738
+ ],
1739
+ "fileUrlPath": "src/types/chat.types.ts",
1740
+ "releaseTag": "Beta",
1741
+ "name": "ChatToolCall",
1742
+ "preserveMemberOrder": false,
1743
+ "members": [
1744
+ {
1745
+ "kind": "PropertySignature",
1746
+ "canonicalReference": "@genesislcap/foundation-ai!ChatToolCall#args:member",
1747
+ "docComment": "",
1748
+ "excerptTokens": [
1749
+ {
1750
+ "kind": "Content",
1751
+ "text": "args: "
1752
+ },
1753
+ {
1754
+ "kind": "Reference",
1755
+ "text": "Record",
1756
+ "canonicalReference": "!Record:type"
1757
+ },
1758
+ {
1759
+ "kind": "Content",
1760
+ "text": "<string, unknown>"
1761
+ },
1762
+ {
1763
+ "kind": "Content",
1764
+ "text": ";"
1765
+ }
1766
+ ],
1767
+ "isReadonly": false,
1768
+ "isOptional": false,
1769
+ "releaseTag": "Beta",
1770
+ "name": "args",
1771
+ "propertyTypeTokenRange": {
1772
+ "startIndex": 1,
1773
+ "endIndex": 3
1774
+ }
1775
+ },
1776
+ {
1777
+ "kind": "PropertySignature",
1778
+ "canonicalReference": "@genesislcap/foundation-ai!ChatToolCall#id:member",
1779
+ "docComment": "",
1780
+ "excerptTokens": [
1781
+ {
1782
+ "kind": "Content",
1783
+ "text": "id: "
1784
+ },
1785
+ {
1786
+ "kind": "Content",
1787
+ "text": "string"
1788
+ },
1789
+ {
1790
+ "kind": "Content",
1791
+ "text": ";"
1792
+ }
1793
+ ],
1794
+ "isReadonly": false,
1795
+ "isOptional": false,
1796
+ "releaseTag": "Beta",
1797
+ "name": "id",
1798
+ "propertyTypeTokenRange": {
1799
+ "startIndex": 1,
1800
+ "endIndex": 2
1801
+ }
1802
+ },
1803
+ {
1804
+ "kind": "PropertySignature",
1805
+ "canonicalReference": "@genesislcap/foundation-ai!ChatToolCall#name:member",
1806
+ "docComment": "",
1807
+ "excerptTokens": [
1808
+ {
1809
+ "kind": "Content",
1810
+ "text": "name: "
1811
+ },
1812
+ {
1813
+ "kind": "Content",
1814
+ "text": "string"
1815
+ },
1816
+ {
1817
+ "kind": "Content",
1818
+ "text": ";"
1819
+ }
1820
+ ],
1821
+ "isReadonly": false,
1822
+ "isOptional": false,
1823
+ "releaseTag": "Beta",
1824
+ "name": "name",
1825
+ "propertyTypeTokenRange": {
1826
+ "startIndex": 1,
1827
+ "endIndex": 2
1828
+ }
1829
+ }
1830
+ ],
1831
+ "extendsTokenRanges": []
1832
+ },
1833
+ {
1834
+ "kind": "Interface",
1835
+ "canonicalReference": "@genesislcap/foundation-ai!ChatToolDefinition:interface",
1836
+ "docComment": "/**\n * JSON Schema-based tool definition for function calling.\n *\n * @beta\n */\n",
1837
+ "excerptTokens": [
1838
+ {
1839
+ "kind": "Content",
1840
+ "text": "export interface ChatToolDefinition "
1841
+ }
1842
+ ],
1843
+ "fileUrlPath": "src/types/chat.types.ts",
1844
+ "releaseTag": "Beta",
1845
+ "name": "ChatToolDefinition",
1846
+ "preserveMemberOrder": false,
1847
+ "members": [
1848
+ {
1849
+ "kind": "PropertySignature",
1850
+ "canonicalReference": "@genesislcap/foundation-ai!ChatToolDefinition#description:member",
1851
+ "docComment": "",
1852
+ "excerptTokens": [
1853
+ {
1854
+ "kind": "Content",
1855
+ "text": "description: "
1856
+ },
1857
+ {
1858
+ "kind": "Content",
1859
+ "text": "string"
1860
+ },
1861
+ {
1862
+ "kind": "Content",
1863
+ "text": ";"
1864
+ }
1865
+ ],
1866
+ "isReadonly": false,
1867
+ "isOptional": false,
1868
+ "releaseTag": "Beta",
1869
+ "name": "description",
1870
+ "propertyTypeTokenRange": {
1871
+ "startIndex": 1,
1872
+ "endIndex": 2
1873
+ }
1874
+ },
1875
+ {
1876
+ "kind": "PropertySignature",
1877
+ "canonicalReference": "@genesislcap/foundation-ai!ChatToolDefinition#name:member",
1878
+ "docComment": "",
1879
+ "excerptTokens": [
1880
+ {
1881
+ "kind": "Content",
1882
+ "text": "name: "
1883
+ },
1884
+ {
1885
+ "kind": "Content",
1886
+ "text": "string"
1887
+ },
1888
+ {
1889
+ "kind": "Content",
1890
+ "text": ";"
1891
+ }
1892
+ ],
1893
+ "isReadonly": false,
1894
+ "isOptional": false,
1895
+ "releaseTag": "Beta",
1896
+ "name": "name",
1897
+ "propertyTypeTokenRange": {
1898
+ "startIndex": 1,
1899
+ "endIndex": 2
1900
+ }
1901
+ },
1902
+ {
1903
+ "kind": "PropertySignature",
1904
+ "canonicalReference": "@genesislcap/foundation-ai!ChatToolDefinition#parameters:member",
1905
+ "docComment": "",
1906
+ "excerptTokens": [
1907
+ {
1908
+ "kind": "Content",
1909
+ "text": "parameters: "
1910
+ },
1911
+ {
1912
+ "kind": "Reference",
1913
+ "text": "Record",
1914
+ "canonicalReference": "!Record:type"
1915
+ },
1916
+ {
1917
+ "kind": "Content",
1918
+ "text": "<string, unknown>"
1919
+ },
1920
+ {
1921
+ "kind": "Content",
1922
+ "text": ";"
1923
+ }
1924
+ ],
1925
+ "isReadonly": false,
1926
+ "isOptional": false,
1927
+ "releaseTag": "Beta",
1928
+ "name": "parameters",
1929
+ "propertyTypeTokenRange": {
1930
+ "startIndex": 1,
1931
+ "endIndex": 3
1932
+ }
1933
+ }
1934
+ ],
1935
+ "extendsTokenRanges": []
1936
+ },
1937
+ {
1938
+ "kind": "TypeAlias",
1939
+ "canonicalReference": "@genesislcap/foundation-ai!ChatToolHandlers:type",
1940
+ "docComment": "/**\n * Map of tool name to async handler function.\n *\n * @beta\n */\n",
1941
+ "excerptTokens": [
1942
+ {
1943
+ "kind": "Content",
1944
+ "text": "export type ChatToolHandlers = "
1945
+ },
1946
+ {
1947
+ "kind": "Reference",
1948
+ "text": "Record",
1949
+ "canonicalReference": "!Record:type"
1950
+ },
1951
+ {
1952
+ "kind": "Content",
1953
+ "text": "<string, (args: "
1954
+ },
1955
+ {
1956
+ "kind": "Reference",
1957
+ "text": "Record",
1958
+ "canonicalReference": "!Record:type"
1959
+ },
1960
+ {
1961
+ "kind": "Content",
1962
+ "text": "<string, unknown>, context: {\n requestInteraction: <T = unknown>(componentName: string, data: any) => "
1963
+ },
1964
+ {
1965
+ "kind": "Reference",
1966
+ "text": "Promise",
1967
+ "canonicalReference": "!Promise:interface"
1968
+ },
1969
+ {
1970
+ "kind": "Content",
1971
+ "text": "<T>;\n}) => "
1972
+ },
1973
+ {
1974
+ "kind": "Reference",
1975
+ "text": "Promise",
1976
+ "canonicalReference": "!Promise:interface"
1977
+ },
1978
+ {
1979
+ "kind": "Content",
1980
+ "text": "<unknown>>"
1981
+ },
1982
+ {
1983
+ "kind": "Content",
1984
+ "text": ";"
1985
+ }
1986
+ ],
1987
+ "fileUrlPath": "src/types/chat.types.ts",
1988
+ "releaseTag": "Beta",
1989
+ "name": "ChatToolHandlers",
1990
+ "typeTokenRange": {
1991
+ "startIndex": 1,
1992
+ "endIndex": 9
1993
+ }
1994
+ },
1995
+ {
1996
+ "kind": "Interface",
1997
+ "canonicalReference": "@genesislcap/foundation-ai!ChatToolResult:interface",
1998
+ "docComment": "/**\n * The result of executing a tool call.\n *\n * @beta\n */\n",
1999
+ "excerptTokens": [
2000
+ {
2001
+ "kind": "Content",
2002
+ "text": "export interface ChatToolResult "
2003
+ }
2004
+ ],
2005
+ "fileUrlPath": "src/types/chat.types.ts",
2006
+ "releaseTag": "Beta",
2007
+ "name": "ChatToolResult",
2008
+ "preserveMemberOrder": false,
2009
+ "members": [
2010
+ {
2011
+ "kind": "PropertySignature",
2012
+ "canonicalReference": "@genesislcap/foundation-ai!ChatToolResult#content:member",
2013
+ "docComment": "",
2014
+ "excerptTokens": [
2015
+ {
2016
+ "kind": "Content",
2017
+ "text": "content: "
2018
+ },
2019
+ {
2020
+ "kind": "Content",
2021
+ "text": "string"
2022
+ },
2023
+ {
2024
+ "kind": "Content",
2025
+ "text": ";"
2026
+ }
2027
+ ],
2028
+ "isReadonly": false,
2029
+ "isOptional": false,
2030
+ "releaseTag": "Beta",
2031
+ "name": "content",
2032
+ "propertyTypeTokenRange": {
2033
+ "startIndex": 1,
2034
+ "endIndex": 2
2035
+ }
2036
+ },
2037
+ {
2038
+ "kind": "PropertySignature",
2039
+ "canonicalReference": "@genesislcap/foundation-ai!ChatToolResult#toolCallId:member",
2040
+ "docComment": "",
2041
+ "excerptTokens": [
2042
+ {
2043
+ "kind": "Content",
2044
+ "text": "toolCallId: "
2045
+ },
2046
+ {
2047
+ "kind": "Content",
2048
+ "text": "string"
2049
+ },
2050
+ {
2051
+ "kind": "Content",
2052
+ "text": ";"
2053
+ }
2054
+ ],
2055
+ "isReadonly": false,
2056
+ "isOptional": false,
2057
+ "releaseTag": "Beta",
2058
+ "name": "toolCallId",
2059
+ "propertyTypeTokenRange": {
2060
+ "startIndex": 1,
2061
+ "endIndex": 2
2062
+ }
2063
+ }
2064
+ ],
2065
+ "extendsTokenRanges": []
2066
+ },
2067
+ {
2068
+ "kind": "Interface",
2069
+ "canonicalReference": "@genesislcap/foundation-ai!ChatTransport:interface",
2070
+ "docComment": "/**\n * Transport interface for chat-capable AI providers.\n *\n * @remarks\n *\n * Implement alongside `AITransport` for providers that support multi-turn chat conversations (e.g. Gemini, OpenAI). The `streamChatMessage` method is optional — providers that don't support streaming may omit it.\n *\n * @beta\n */\n",
2071
+ "excerptTokens": [
2072
+ {
2073
+ "kind": "Content",
2074
+ "text": "export interface ChatTransport "
2075
+ }
2076
+ ],
2077
+ "fileUrlPath": "src/types/chat-transport.types.ts",
2078
+ "releaseTag": "Beta",
2079
+ "name": "ChatTransport",
2080
+ "preserveMemberOrder": false,
2081
+ "members": [
2082
+ {
2083
+ "kind": "MethodSignature",
2084
+ "canonicalReference": "@genesislcap/foundation-ai!ChatTransport#sendChatMessage:member(1)",
2085
+ "docComment": "",
2086
+ "excerptTokens": [
2087
+ {
2088
+ "kind": "Content",
2089
+ "text": "sendChatMessage(history: "
2090
+ },
2091
+ {
2092
+ "kind": "Reference",
2093
+ "text": "ChatMessage",
2094
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
2095
+ },
2096
+ {
2097
+ "kind": "Content",
2098
+ "text": "[]"
2099
+ },
2100
+ {
2101
+ "kind": "Content",
2102
+ "text": ", userMessage: "
2103
+ },
2104
+ {
2105
+ "kind": "Content",
2106
+ "text": "string"
2107
+ },
2108
+ {
2109
+ "kind": "Content",
2110
+ "text": ", options?: "
2111
+ },
2112
+ {
2113
+ "kind": "Reference",
2114
+ "text": "ChatRequestOptions",
2115
+ "canonicalReference": "@genesislcap/foundation-ai!ChatRequestOptions:interface"
2116
+ },
2117
+ {
2118
+ "kind": "Content",
2119
+ "text": "): "
2120
+ },
2121
+ {
2122
+ "kind": "Reference",
2123
+ "text": "Promise",
2124
+ "canonicalReference": "!Promise:interface"
2125
+ },
2126
+ {
2127
+ "kind": "Content",
2128
+ "text": "<"
2129
+ },
2130
+ {
2131
+ "kind": "Reference",
2132
+ "text": "ChatMessage",
2133
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
2134
+ },
2135
+ {
2136
+ "kind": "Content",
2137
+ "text": ">"
2138
+ },
2139
+ {
2140
+ "kind": "Content",
2141
+ "text": ";"
2142
+ }
2143
+ ],
2144
+ "isOptional": false,
2145
+ "returnTypeTokenRange": {
2146
+ "startIndex": 8,
2147
+ "endIndex": 12
2148
+ },
2149
+ "releaseTag": "Beta",
2150
+ "overloadIndex": 1,
2151
+ "parameters": [
2152
+ {
2153
+ "parameterName": "history",
2154
+ "parameterTypeTokenRange": {
2155
+ "startIndex": 1,
2156
+ "endIndex": 3
2157
+ },
2158
+ "isOptional": false
2159
+ },
2160
+ {
2161
+ "parameterName": "userMessage",
2162
+ "parameterTypeTokenRange": {
2163
+ "startIndex": 4,
2164
+ "endIndex": 5
2165
+ },
2166
+ "isOptional": false
2167
+ },
2168
+ {
2169
+ "parameterName": "options",
2170
+ "parameterTypeTokenRange": {
2171
+ "startIndex": 6,
2172
+ "endIndex": 7
2173
+ },
2174
+ "isOptional": true
2175
+ }
2176
+ ],
2177
+ "name": "sendChatMessage"
2178
+ },
2179
+ {
2180
+ "kind": "MethodSignature",
2181
+ "canonicalReference": "@genesislcap/foundation-ai!ChatTransport#streamChatMessage:member(1)",
2182
+ "docComment": "",
2183
+ "excerptTokens": [
2184
+ {
2185
+ "kind": "Content",
2186
+ "text": "streamChatMessage?(history: "
2187
+ },
2188
+ {
2189
+ "kind": "Reference",
2190
+ "text": "ChatMessage",
2191
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
2192
+ },
2193
+ {
2194
+ "kind": "Content",
2195
+ "text": "[]"
2196
+ },
2197
+ {
2198
+ "kind": "Content",
2199
+ "text": ", userMessage: "
2200
+ },
2201
+ {
2202
+ "kind": "Content",
2203
+ "text": "string"
2204
+ },
2205
+ {
2206
+ "kind": "Content",
2207
+ "text": ", options?: "
2208
+ },
2209
+ {
2210
+ "kind": "Reference",
2211
+ "text": "ChatRequestOptions",
2212
+ "canonicalReference": "@genesislcap/foundation-ai!ChatRequestOptions:interface"
2213
+ },
2214
+ {
2215
+ "kind": "Content",
2216
+ "text": "): "
2217
+ },
2218
+ {
2219
+ "kind": "Reference",
2220
+ "text": "AsyncIterable",
2221
+ "canonicalReference": "!AsyncIterable:interface"
2222
+ },
2223
+ {
2224
+ "kind": "Content",
2225
+ "text": "<"
2226
+ },
2227
+ {
2228
+ "kind": "Reference",
2229
+ "text": "ChatStreamChunk",
2230
+ "canonicalReference": "@genesislcap/foundation-ai!ChatStreamChunk:interface"
2231
+ },
2232
+ {
2233
+ "kind": "Content",
2234
+ "text": ">"
2235
+ },
2236
+ {
2237
+ "kind": "Content",
2238
+ "text": ";"
2239
+ }
2240
+ ],
2241
+ "isOptional": true,
2242
+ "returnTypeTokenRange": {
2243
+ "startIndex": 8,
2244
+ "endIndex": 12
2245
+ },
2246
+ "releaseTag": "Beta",
2247
+ "overloadIndex": 1,
2248
+ "parameters": [
2249
+ {
2250
+ "parameterName": "history",
2251
+ "parameterTypeTokenRange": {
2252
+ "startIndex": 1,
2253
+ "endIndex": 3
2254
+ },
2255
+ "isOptional": false
2256
+ },
2257
+ {
2258
+ "parameterName": "userMessage",
2259
+ "parameterTypeTokenRange": {
2260
+ "startIndex": 4,
2261
+ "endIndex": 5
2262
+ },
2263
+ "isOptional": false
2264
+ },
2265
+ {
2266
+ "parameterName": "options",
2267
+ "parameterTypeTokenRange": {
2268
+ "startIndex": 6,
2269
+ "endIndex": 7
2270
+ },
2271
+ "isOptional": true
2272
+ }
2273
+ ],
2274
+ "name": "streamChatMessage"
2275
+ }
2276
+ ],
2277
+ "extendsTokenRanges": []
2278
+ },
2279
+ {
2280
+ "kind": "Interface",
2281
+ "canonicalReference": "@genesislcap/foundation-ai!ChromeAIConfig:interface",
2282
+ "docComment": "/**\n * Chrome built-in AI (Prompt API / Gemini Nano) configuration.\n *\n * @remarks\n *\n * No apiKey required. Uses on-device model. Optional temperature/topK for extensions.\n *\n * @beta\n */\n",
2283
+ "excerptTokens": [
2284
+ {
2285
+ "kind": "Content",
2286
+ "text": "export interface ChromeAIConfig extends "
2287
+ },
2288
+ {
2289
+ "kind": "Reference",
2290
+ "text": "AIProviderConfig",
2291
+ "canonicalReference": "@genesislcap/foundation-ai!~AIProviderConfig:interface"
2292
+ },
2293
+ {
2294
+ "kind": "Content",
2295
+ "text": " "
2296
+ }
2297
+ ],
2298
+ "fileUrlPath": "src/types/config.types.ts",
2299
+ "releaseTag": "Beta",
2300
+ "name": "ChromeAIConfig",
2301
+ "preserveMemberOrder": false,
2302
+ "members": [
2303
+ {
2304
+ "kind": "PropertySignature",
2305
+ "canonicalReference": "@genesislcap/foundation-ai!ChromeAIConfig#providerType:member",
2306
+ "docComment": "",
2307
+ "excerptTokens": [
2308
+ {
2309
+ "kind": "Content",
2310
+ "text": "providerType?: "
2311
+ },
2312
+ {
2313
+ "kind": "Content",
2314
+ "text": "'chrome'"
2315
+ },
2316
+ {
2317
+ "kind": "Content",
2318
+ "text": ";"
2319
+ }
2320
+ ],
2321
+ "isReadonly": false,
2322
+ "isOptional": true,
2323
+ "releaseTag": "Beta",
2324
+ "name": "providerType",
2325
+ "propertyTypeTokenRange": {
2326
+ "startIndex": 1,
2327
+ "endIndex": 2
2328
+ }
2329
+ },
2330
+ {
2331
+ "kind": "PropertySignature",
2332
+ "canonicalReference": "@genesislcap/foundation-ai!ChromeAIConfig#temperature:member",
2333
+ "docComment": "",
2334
+ "excerptTokens": [
2335
+ {
2336
+ "kind": "Content",
2337
+ "text": "temperature?: "
2338
+ },
2339
+ {
2340
+ "kind": "Content",
2341
+ "text": "number"
2342
+ },
2343
+ {
2344
+ "kind": "Content",
2345
+ "text": ";"
2346
+ }
2347
+ ],
2348
+ "isReadonly": false,
2349
+ "isOptional": true,
2350
+ "releaseTag": "Beta",
2351
+ "name": "temperature",
2352
+ "propertyTypeTokenRange": {
2353
+ "startIndex": 1,
2354
+ "endIndex": 2
2355
+ }
2356
+ },
2357
+ {
2358
+ "kind": "PropertySignature",
2359
+ "canonicalReference": "@genesislcap/foundation-ai!ChromeAIConfig#topK:member",
2360
+ "docComment": "",
2361
+ "excerptTokens": [
2362
+ {
2363
+ "kind": "Content",
2364
+ "text": "topK?: "
2365
+ },
2366
+ {
2367
+ "kind": "Content",
2368
+ "text": "number"
2369
+ },
2370
+ {
2371
+ "kind": "Content",
2372
+ "text": ";"
2373
+ }
2374
+ ],
2375
+ "isReadonly": false,
2376
+ "isOptional": true,
2377
+ "releaseTag": "Beta",
2378
+ "name": "topK",
2379
+ "propertyTypeTokenRange": {
2380
+ "startIndex": 1,
2381
+ "endIndex": 2
2382
+ }
2383
+ }
2384
+ ],
2385
+ "extendsTokenRanges": [
2386
+ {
2387
+ "startIndex": 1,
2388
+ "endIndex": 2
2389
+ }
2390
+ ]
2391
+ },
2392
+ {
2393
+ "kind": "TypeAlias",
2394
+ "canonicalReference": "@genesislcap/foundation-ai!ChromeAvailability:type",
2395
+ "docComment": "/**\n * Chrome Prompt API availability states.\n *\n * @beta\n */\n",
2396
+ "excerptTokens": [
2397
+ {
2398
+ "kind": "Content",
2399
+ "text": "export type ChromeAvailability = "
2400
+ },
2401
+ {
2402
+ "kind": "Content",
2403
+ "text": "'available' | 'downloading' | 'downloadable' | 'unavailable'"
2404
+ },
2405
+ {
2406
+ "kind": "Content",
2407
+ "text": ";"
2408
+ }
2409
+ ],
2410
+ "fileUrlPath": "src/types/status.types.ts",
2411
+ "releaseTag": "Beta",
2412
+ "name": "ChromeAvailability",
2413
+ "typeTokenRange": {
2414
+ "startIndex": 1,
2415
+ "endIndex": 2
2416
+ }
2417
+ },
2418
+ {
2419
+ "kind": "Function",
2420
+ "canonicalReference": "@genesislcap/foundation-ai!createAIProvider:function(1)",
2421
+ "docComment": "/**\n * Creates an AIProvider from config. Uses ChromeProvider when providerType is 'chrome'. Uses OpenAIProvider with ServerOpenAITransport when provider is set (server-only). Otherwise returns DefaultAIProvider. When the AI feature flag is disabled (?feature.ai), always returns DefaultAIProvider.\n *\n * @beta\n */\n",
2422
+ "excerptTokens": [
2423
+ {
2424
+ "kind": "Content",
2425
+ "text": "export declare function createAIProvider(config?: "
2426
+ },
2427
+ {
2428
+ "kind": "Reference",
2429
+ "text": "AIConfig",
2430
+ "canonicalReference": "@genesislcap/foundation-ai!AIConfig:type"
2431
+ },
2432
+ {
2433
+ "kind": "Content",
2434
+ "text": " | null"
2435
+ },
2436
+ {
2437
+ "kind": "Content",
2438
+ "text": "): "
2439
+ },
2440
+ {
2441
+ "kind": "Reference",
2442
+ "text": "AIProvider",
2443
+ "canonicalReference": "@genesislcap/foundation-ai!AIProvider:interface"
2444
+ },
2445
+ {
2446
+ "kind": "Content",
2447
+ "text": ";"
2448
+ }
2449
+ ],
2450
+ "fileUrlPath": "src/ai-provider.ts",
2451
+ "returnTypeTokenRange": {
2452
+ "startIndex": 4,
2453
+ "endIndex": 5
2454
+ },
2455
+ "releaseTag": "Beta",
2456
+ "overloadIndex": 1,
2457
+ "parameters": [
2458
+ {
2459
+ "parameterName": "config",
2460
+ "parameterTypeTokenRange": {
2461
+ "startIndex": 1,
2462
+ "endIndex": 3
2463
+ },
2464
+ "isOptional": true
2465
+ }
2466
+ ],
2467
+ "name": "createAIProvider"
2468
+ },
2469
+ {
2470
+ "kind": "Interface",
2471
+ "canonicalReference": "@genesislcap/foundation-ai!CriteriaClauseResult:interface",
2472
+ "docComment": "/**\n * Minimal types for AI criteria interpretation results. Providers return these; consumers (e.g. ai-criteria-search) validate and cast.\n *\n * @beta\n */\n",
2473
+ "excerptTokens": [
2474
+ {
2475
+ "kind": "Content",
2476
+ "text": "export interface CriteriaClauseResult "
2477
+ }
2478
+ ],
2479
+ "fileUrlPath": "src/types/criteria-types.ts",
2480
+ "releaseTag": "Beta",
2481
+ "name": "CriteriaClauseResult",
2482
+ "preserveMemberOrder": false,
2483
+ "members": [
2484
+ {
2485
+ "kind": "PropertySignature",
2486
+ "canonicalReference": "@genesislcap/foundation-ai!CriteriaClauseResult#field:member",
2487
+ "docComment": "",
2488
+ "excerptTokens": [
2489
+ {
2490
+ "kind": "Content",
2491
+ "text": "field: "
2492
+ },
2493
+ {
2494
+ "kind": "Content",
2495
+ "text": "string"
2496
+ },
2497
+ {
2498
+ "kind": "Content",
2499
+ "text": ";"
2500
+ }
2501
+ ],
2502
+ "isReadonly": false,
2503
+ "isOptional": false,
2504
+ "releaseTag": "Beta",
2505
+ "name": "field",
2506
+ "propertyTypeTokenRange": {
2507
+ "startIndex": 1,
2508
+ "endIndex": 2
2509
+ }
2510
+ },
2511
+ {
2512
+ "kind": "PropertySignature",
2513
+ "canonicalReference": "@genesislcap/foundation-ai!CriteriaClauseResult#operator:member",
2514
+ "docComment": "",
2515
+ "excerptTokens": [
2516
+ {
2517
+ "kind": "Content",
2518
+ "text": "operator: "
2519
+ },
2520
+ {
2521
+ "kind": "Content",
2522
+ "text": "string"
2523
+ },
2524
+ {
2525
+ "kind": "Content",
2526
+ "text": ";"
2527
+ }
2528
+ ],
2529
+ "isReadonly": false,
2530
+ "isOptional": false,
2531
+ "releaseTag": "Beta",
2532
+ "name": "operator",
2533
+ "propertyTypeTokenRange": {
2534
+ "startIndex": 1,
2535
+ "endIndex": 2
2536
+ }
2537
+ },
2538
+ {
2539
+ "kind": "PropertySignature",
2540
+ "canonicalReference": "@genesislcap/foundation-ai!CriteriaClauseResult#value:member",
2541
+ "docComment": "",
2542
+ "excerptTokens": [
2543
+ {
2544
+ "kind": "Content",
2545
+ "text": "value: "
2546
+ },
2547
+ {
2548
+ "kind": "Content",
2549
+ "text": "string | number | boolean | null"
2550
+ },
2551
+ {
2552
+ "kind": "Content",
2553
+ "text": ";"
2554
+ }
2555
+ ],
2556
+ "isReadonly": false,
2557
+ "isOptional": false,
2558
+ "releaseTag": "Beta",
2559
+ "name": "value",
2560
+ "propertyTypeTokenRange": {
2561
+ "startIndex": 1,
2562
+ "endIndex": 2
2563
+ }
2564
+ }
2565
+ ],
2566
+ "extendsTokenRanges": []
2567
+ },
2568
+ {
2569
+ "kind": "Interface",
2570
+ "canonicalReference": "@genesislcap/foundation-ai!CriteriaGroupResult:interface",
2571
+ "docComment": "/**\n * A group of criteria clauses combined by a logical operator.\n *\n * @beta\n */\n",
2572
+ "excerptTokens": [
2573
+ {
2574
+ "kind": "Content",
2575
+ "text": "export interface CriteriaGroupResult "
2576
+ }
2577
+ ],
2578
+ "fileUrlPath": "src/types/criteria-types.ts",
2579
+ "releaseTag": "Beta",
2580
+ "name": "CriteriaGroupResult",
2581
+ "preserveMemberOrder": false,
2582
+ "members": [
2583
+ {
2584
+ "kind": "PropertySignature",
2585
+ "canonicalReference": "@genesislcap/foundation-ai!CriteriaGroupResult#clauses:member",
2586
+ "docComment": "",
2587
+ "excerptTokens": [
2588
+ {
2589
+ "kind": "Content",
2590
+ "text": "clauses: "
2591
+ },
2592
+ {
2593
+ "kind": "Reference",
2594
+ "text": "CriteriaClauseResult",
2595
+ "canonicalReference": "@genesislcap/foundation-ai!CriteriaClauseResult:interface"
2596
+ },
2597
+ {
2598
+ "kind": "Content",
2599
+ "text": "[]"
2600
+ },
2601
+ {
2602
+ "kind": "Content",
2603
+ "text": ";"
2604
+ }
2605
+ ],
2606
+ "isReadonly": false,
2607
+ "isOptional": false,
2608
+ "releaseTag": "Beta",
2609
+ "name": "clauses",
2610
+ "propertyTypeTokenRange": {
2611
+ "startIndex": 1,
2612
+ "endIndex": 3
2613
+ }
2614
+ },
2615
+ {
2616
+ "kind": "PropertySignature",
2617
+ "canonicalReference": "@genesislcap/foundation-ai!CriteriaGroupResult#logic:member",
2618
+ "docComment": "",
2619
+ "excerptTokens": [
2620
+ {
2621
+ "kind": "Content",
2622
+ "text": "logic: "
2623
+ },
2624
+ {
2625
+ "kind": "Content",
2626
+ "text": "'and' | 'or'"
2627
+ },
2628
+ {
2629
+ "kind": "Content",
2630
+ "text": ";"
2631
+ }
2632
+ ],
2633
+ "isReadonly": false,
2634
+ "isOptional": false,
2635
+ "releaseTag": "Beta",
2636
+ "name": "logic",
2637
+ "propertyTypeTokenRange": {
2638
+ "startIndex": 1,
2639
+ "endIndex": 2
2640
+ }
2641
+ },
2642
+ {
2643
+ "kind": "PropertySignature",
2644
+ "canonicalReference": "@genesislcap/foundation-ai!CriteriaGroupResult#negated:member",
2645
+ "docComment": "",
2646
+ "excerptTokens": [
2647
+ {
2648
+ "kind": "Content",
2649
+ "text": "negated?: "
2650
+ },
2651
+ {
2652
+ "kind": "Content",
2653
+ "text": "boolean"
2654
+ },
2655
+ {
2656
+ "kind": "Content",
2657
+ "text": ";"
2658
+ }
2659
+ ],
2660
+ "isReadonly": false,
2661
+ "isOptional": true,
2662
+ "releaseTag": "Beta",
2663
+ "name": "negated",
2664
+ "propertyTypeTokenRange": {
2665
+ "startIndex": 1,
2666
+ "endIndex": 2
2667
+ }
2668
+ }
2669
+ ],
2670
+ "extendsTokenRanges": []
2671
+ },
2672
+ {
2673
+ "kind": "Interface",
2674
+ "canonicalReference": "@genesislcap/foundation-ai!CriteriaInterpretationResult:interface",
2675
+ "docComment": "/**\n * Top-level result returned by criteria interpretation.\n *\n * @beta\n */\n",
2676
+ "excerptTokens": [
2677
+ {
2678
+ "kind": "Content",
2679
+ "text": "export interface CriteriaInterpretationResult "
2680
+ }
2681
+ ],
2682
+ "fileUrlPath": "src/types/criteria-types.ts",
2683
+ "releaseTag": "Beta",
2684
+ "name": "CriteriaInterpretationResult",
2685
+ "preserveMemberOrder": false,
2686
+ "members": [
2687
+ {
2688
+ "kind": "PropertySignature",
2689
+ "canonicalReference": "@genesislcap/foundation-ai!CriteriaInterpretationResult#groups:member",
2690
+ "docComment": "",
2691
+ "excerptTokens": [
2692
+ {
2693
+ "kind": "Content",
2694
+ "text": "groups: "
2695
+ },
2696
+ {
2697
+ "kind": "Reference",
2698
+ "text": "CriteriaGroupResult",
2699
+ "canonicalReference": "@genesislcap/foundation-ai!CriteriaGroupResult:interface"
2700
+ },
2701
+ {
2702
+ "kind": "Content",
2703
+ "text": "[]"
2704
+ },
2705
+ {
2706
+ "kind": "Content",
2707
+ "text": ";"
2708
+ }
2709
+ ],
2710
+ "isReadonly": false,
2711
+ "isOptional": false,
2712
+ "releaseTag": "Beta",
2713
+ "name": "groups",
2714
+ "propertyTypeTokenRange": {
2715
+ "startIndex": 1,
2716
+ "endIndex": 3
2717
+ }
2718
+ }
2719
+ ],
2720
+ "extendsTokenRanges": []
2721
+ },
2722
+ {
2723
+ "kind": "Interface",
2724
+ "canonicalReference": "@genesislcap/foundation-ai!CriteriaInterpretContext:interface",
2725
+ "docComment": "/**\n * Context passed to criteria interpretation, providing available field metadata.\n *\n * @beta\n */\n",
2726
+ "excerptTokens": [
2727
+ {
2728
+ "kind": "Content",
2729
+ "text": "export interface CriteriaInterpretContext "
2730
+ }
2731
+ ],
2732
+ "fileUrlPath": "src/interactions/criteria-interpretation.ts",
2733
+ "releaseTag": "Beta",
2734
+ "name": "CriteriaInterpretContext",
2735
+ "preserveMemberOrder": false,
2736
+ "members": [
2737
+ {
2738
+ "kind": "PropertySignature",
2739
+ "canonicalReference": "@genesislcap/foundation-ai!CriteriaInterpretContext#fields:member",
2740
+ "docComment": "",
2741
+ "excerptTokens": [
2742
+ {
2743
+ "kind": "Content",
2744
+ "text": "fields?: "
2745
+ },
2746
+ {
2747
+ "kind": "Reference",
2748
+ "text": "FieldLike",
2749
+ "canonicalReference": "@genesislcap/foundation-ai!FieldLike:type"
2750
+ },
2751
+ {
2752
+ "kind": "Content",
2753
+ "text": "[]"
2754
+ },
2755
+ {
2756
+ "kind": "Content",
2757
+ "text": ";"
2758
+ }
2759
+ ],
2760
+ "isReadonly": false,
2761
+ "isOptional": true,
2762
+ "releaseTag": "Beta",
2763
+ "name": "fields",
2764
+ "propertyTypeTokenRange": {
2765
+ "startIndex": 1,
2766
+ "endIndex": 3
2767
+ }
2768
+ }
2769
+ ],
2770
+ "extendsTokenRanges": []
2771
+ },
2772
+ {
2773
+ "kind": "TypeAlias",
2774
+ "canonicalReference": "@genesislcap/foundation-ai!FieldLike:type",
2775
+ "docComment": "/**\n * A field descriptor accepted by criteria interpretation utilities. Can be a plain string name or an object with common field metadata properties.\n *\n * @beta\n */\n",
2776
+ "excerptTokens": [
2777
+ {
2778
+ "kind": "Content",
2779
+ "text": "export type FieldLike = "
2780
+ },
2781
+ {
2782
+ "kind": "Content",
2783
+ "text": "string | {\n name?: string;\n field?: string;\n label?: string;\n NAME?: string;\n}"
2784
+ },
2785
+ {
2786
+ "kind": "Content",
2787
+ "text": ";"
2788
+ }
2789
+ ],
2790
+ "fileUrlPath": "src/interactions/criteria-interpretation.ts",
2791
+ "releaseTag": "Beta",
2792
+ "name": "FieldLike",
2793
+ "typeTokenRange": {
2794
+ "startIndex": 1,
2795
+ "endIndex": 2
2796
+ }
2797
+ },
2798
+ {
2799
+ "kind": "Interface",
2800
+ "canonicalReference": "@genesislcap/foundation-ai!GeminiAIConfig:interface",
2801
+ "docComment": "/**\n * Gemini server-proxy AI configuration (client calls your server; server calls Gemini).\n *\n * @remarks\n *\n * API key stays on the server. URL defaults to /gwf/ai-service/gemini/chat.\n *\n * @beta\n */\n",
2802
+ "excerptTokens": [
2803
+ {
2804
+ "kind": "Content",
2805
+ "text": "export interface GeminiAIConfig extends "
2806
+ },
2807
+ {
2808
+ "kind": "Reference",
2809
+ "text": "AIProviderConfig",
2810
+ "canonicalReference": "@genesislcap/foundation-ai!~AIProviderConfig:interface"
2811
+ },
2812
+ {
2813
+ "kind": "Content",
2814
+ "text": " "
2815
+ }
2816
+ ],
2817
+ "fileUrlPath": "src/types/config.types.ts",
2818
+ "releaseTag": "Beta",
2819
+ "name": "GeminiAIConfig",
2820
+ "preserveMemberOrder": false,
2821
+ "members": [
2822
+ {
2823
+ "kind": "PropertySignature",
2824
+ "canonicalReference": "@genesislcap/foundation-ai!GeminiAIConfig#apiKey:member",
2825
+ "docComment": "",
2826
+ "excerptTokens": [
2827
+ {
2828
+ "kind": "Content",
2829
+ "text": "apiKey?: "
2830
+ },
2831
+ {
2832
+ "kind": "Content",
2833
+ "text": "string"
2834
+ },
2835
+ {
2836
+ "kind": "Content",
2837
+ "text": ";"
2838
+ }
2839
+ ],
2840
+ "isReadonly": false,
2841
+ "isOptional": true,
2842
+ "releaseTag": "Beta",
2843
+ "name": "apiKey",
2844
+ "propertyTypeTokenRange": {
2845
+ "startIndex": 1,
2846
+ "endIndex": 2
2847
+ }
2848
+ },
2849
+ {
2850
+ "kind": "PropertySignature",
2851
+ "canonicalReference": "@genesislcap/foundation-ai!GeminiAIConfig#model:member",
2852
+ "docComment": "",
2853
+ "excerptTokens": [
2854
+ {
2855
+ "kind": "Content",
2856
+ "text": "model?: "
2857
+ },
2858
+ {
2859
+ "kind": "Content",
2860
+ "text": "string"
2861
+ },
2862
+ {
2863
+ "kind": "Content",
2864
+ "text": ";"
2865
+ }
2866
+ ],
2867
+ "isReadonly": false,
2868
+ "isOptional": true,
2869
+ "releaseTag": "Beta",
2870
+ "name": "model",
2871
+ "propertyTypeTokenRange": {
2872
+ "startIndex": 1,
2873
+ "endIndex": 2
2874
+ }
2875
+ },
2876
+ {
2877
+ "kind": "PropertySignature",
2878
+ "canonicalReference": "@genesislcap/foundation-ai!GeminiAIConfig#providerType:member",
2879
+ "docComment": "",
2880
+ "excerptTokens": [
2881
+ {
2882
+ "kind": "Content",
2883
+ "text": "providerType: "
2884
+ },
2885
+ {
2886
+ "kind": "Content",
2887
+ "text": "'gemini'"
2888
+ },
2889
+ {
2890
+ "kind": "Content",
2891
+ "text": ";"
2892
+ }
2893
+ ],
2894
+ "isReadonly": false,
2895
+ "isOptional": false,
2896
+ "releaseTag": "Beta",
2897
+ "name": "providerType",
2898
+ "propertyTypeTokenRange": {
2899
+ "startIndex": 1,
2900
+ "endIndex": 2
2901
+ }
2902
+ },
2903
+ {
2904
+ "kind": "PropertySignature",
2905
+ "canonicalReference": "@genesislcap/foundation-ai!GeminiAIConfig#serverEndpoint:member",
2906
+ "docComment": "",
2907
+ "excerptTokens": [
2908
+ {
2909
+ "kind": "Content",
2910
+ "text": "serverEndpoint?: "
2911
+ },
2912
+ {
2913
+ "kind": "Content",
2914
+ "text": "string"
2915
+ },
2916
+ {
2917
+ "kind": "Content",
2918
+ "text": ";"
2919
+ }
2920
+ ],
2921
+ "isReadonly": false,
2922
+ "isOptional": true,
2923
+ "releaseTag": "Beta",
2924
+ "name": "serverEndpoint",
2925
+ "propertyTypeTokenRange": {
2926
+ "startIndex": 1,
2927
+ "endIndex": 2
2928
+ }
2929
+ }
2930
+ ],
2931
+ "extendsTokenRanges": [
2932
+ {
2933
+ "startIndex": 1,
2934
+ "endIndex": 2
2935
+ }
2936
+ ]
2937
+ },
2938
+ {
2939
+ "kind": "Class",
2940
+ "canonicalReference": "@genesislcap/foundation-ai!GeminiProvider:class",
2941
+ "docComment": "/**\n * Gemini AI provider. Uses {@link GeminiTransport} to handle requests. Implements criteria interpretation and multi-turn chat.\n *\n * @beta\n */\n",
2942
+ "excerptTokens": [
2943
+ {
2944
+ "kind": "Content",
2945
+ "text": "export declare class GeminiProvider implements "
2946
+ },
2947
+ {
2948
+ "kind": "Reference",
2949
+ "text": "AIProvider",
2950
+ "canonicalReference": "@genesislcap/foundation-ai!AIProvider:interface"
2951
+ },
2952
+ {
2953
+ "kind": "Content",
2954
+ "text": " "
2955
+ }
2956
+ ],
2957
+ "fileUrlPath": "src/providers/gemini-provider.ts",
2958
+ "releaseTag": "Beta",
2959
+ "isAbstract": false,
2960
+ "name": "GeminiProvider",
2961
+ "preserveMemberOrder": false,
2962
+ "members": [
2963
+ {
2964
+ "kind": "Constructor",
2965
+ "canonicalReference": "@genesislcap/foundation-ai!GeminiProvider:constructor(1)",
2966
+ "docComment": "/**\n * Constructs a new instance of the `GeminiProvider` class\n */\n",
2967
+ "excerptTokens": [
2968
+ {
2969
+ "kind": "Content",
2970
+ "text": "constructor(config: "
2971
+ },
2972
+ {
2973
+ "kind": "Reference",
2974
+ "text": "GeminiProviderConfig",
2975
+ "canonicalReference": "@genesislcap/foundation-ai!~GeminiProviderConfig:interface"
2976
+ },
2977
+ {
2978
+ "kind": "Content",
2979
+ "text": ", transport: "
2980
+ },
2981
+ {
2982
+ "kind": "Reference",
2983
+ "text": "GeminiTransport",
2984
+ "canonicalReference": "@genesislcap/foundation-ai!GeminiTransport:class"
2985
+ },
2986
+ {
2987
+ "kind": "Content",
2988
+ "text": ");"
2989
+ }
2990
+ ],
2991
+ "releaseTag": "Beta",
2992
+ "isProtected": false,
2993
+ "overloadIndex": 1,
2994
+ "parameters": [
2995
+ {
2996
+ "parameterName": "config",
2997
+ "parameterTypeTokenRange": {
2998
+ "startIndex": 1,
2999
+ "endIndex": 2
3000
+ },
3001
+ "isOptional": false
3002
+ },
3003
+ {
3004
+ "parameterName": "transport",
3005
+ "parameterTypeTokenRange": {
3006
+ "startIndex": 3,
3007
+ "endIndex": 4
3008
+ },
3009
+ "isOptional": false
3010
+ }
3011
+ ]
3012
+ },
3013
+ {
3014
+ "kind": "Method",
3015
+ "canonicalReference": "@genesislcap/foundation-ai!GeminiProvider#chat:member(1)",
3016
+ "docComment": "",
3017
+ "excerptTokens": [
3018
+ {
3019
+ "kind": "Content",
3020
+ "text": "chat(history: "
3021
+ },
3022
+ {
3023
+ "kind": "Reference",
3024
+ "text": "ChatMessage",
3025
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
3026
+ },
3027
+ {
3028
+ "kind": "Content",
3029
+ "text": "[]"
3030
+ },
3031
+ {
3032
+ "kind": "Content",
3033
+ "text": ", userMessage: "
3034
+ },
3035
+ {
3036
+ "kind": "Content",
3037
+ "text": "string"
3038
+ },
3039
+ {
3040
+ "kind": "Content",
3041
+ "text": ", options?: "
3042
+ },
3043
+ {
3044
+ "kind": "Reference",
3045
+ "text": "ChatRequestOptions",
3046
+ "canonicalReference": "@genesislcap/foundation-ai!ChatRequestOptions:interface"
3047
+ },
3048
+ {
3049
+ "kind": "Content",
3050
+ "text": "): "
3051
+ },
3052
+ {
3053
+ "kind": "Reference",
3054
+ "text": "Promise",
3055
+ "canonicalReference": "!Promise:interface"
3056
+ },
3057
+ {
3058
+ "kind": "Content",
3059
+ "text": "<"
3060
+ },
3061
+ {
3062
+ "kind": "Reference",
3063
+ "text": "ChatMessage",
3064
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
3065
+ },
3066
+ {
3067
+ "kind": "Content",
3068
+ "text": ">"
3069
+ },
3070
+ {
3071
+ "kind": "Content",
3072
+ "text": ";"
3073
+ }
3074
+ ],
3075
+ "isStatic": false,
3076
+ "returnTypeTokenRange": {
3077
+ "startIndex": 8,
3078
+ "endIndex": 12
3079
+ },
3080
+ "releaseTag": "Beta",
3081
+ "isProtected": false,
3082
+ "overloadIndex": 1,
3083
+ "parameters": [
3084
+ {
3085
+ "parameterName": "history",
3086
+ "parameterTypeTokenRange": {
3087
+ "startIndex": 1,
3088
+ "endIndex": 3
3089
+ },
3090
+ "isOptional": false
3091
+ },
3092
+ {
3093
+ "parameterName": "userMessage",
3094
+ "parameterTypeTokenRange": {
3095
+ "startIndex": 4,
3096
+ "endIndex": 5
3097
+ },
3098
+ "isOptional": false
3099
+ },
3100
+ {
3101
+ "parameterName": "options",
3102
+ "parameterTypeTokenRange": {
3103
+ "startIndex": 6,
3104
+ "endIndex": 7
3105
+ },
3106
+ "isOptional": true
3107
+ }
3108
+ ],
3109
+ "isOptional": false,
3110
+ "isAbstract": false,
3111
+ "name": "chat"
3112
+ },
3113
+ {
3114
+ "kind": "Method",
3115
+ "canonicalReference": "@genesislcap/foundation-ai!GeminiProvider#getStatus:member(1)",
3116
+ "docComment": "",
3117
+ "excerptTokens": [
3118
+ {
3119
+ "kind": "Content",
3120
+ "text": "getStatus(): "
3121
+ },
3122
+ {
3123
+ "kind": "Reference",
3124
+ "text": "Promise",
3125
+ "canonicalReference": "!Promise:interface"
3126
+ },
3127
+ {
3128
+ "kind": "Content",
3129
+ "text": "<"
3130
+ },
3131
+ {
3132
+ "kind": "Reference",
3133
+ "text": "AIStatus",
3134
+ "canonicalReference": "@genesislcap/foundation-ai!AIStatus:interface"
3135
+ },
3136
+ {
3137
+ "kind": "Content",
3138
+ "text": ">"
3139
+ },
3140
+ {
3141
+ "kind": "Content",
3142
+ "text": ";"
3143
+ }
3144
+ ],
3145
+ "isStatic": false,
3146
+ "returnTypeTokenRange": {
3147
+ "startIndex": 1,
3148
+ "endIndex": 5
3149
+ },
3150
+ "releaseTag": "Beta",
3151
+ "isProtected": false,
3152
+ "overloadIndex": 1,
3153
+ "parameters": [],
3154
+ "isOptional": false,
3155
+ "isAbstract": false,
3156
+ "name": "getStatus"
3157
+ },
3158
+ {
3159
+ "kind": "Method",
3160
+ "canonicalReference": "@genesislcap/foundation-ai!GeminiProvider#interpretCriteria:member(1)",
3161
+ "docComment": "",
3162
+ "excerptTokens": [
3163
+ {
3164
+ "kind": "Content",
3165
+ "text": "interpretCriteria(input: "
3166
+ },
3167
+ {
3168
+ "kind": "Content",
3169
+ "text": "string"
3170
+ },
3171
+ {
3172
+ "kind": "Content",
3173
+ "text": ", context: "
3174
+ },
3175
+ {
3176
+ "kind": "Reference",
3177
+ "text": "CriteriaInterpretContext",
3178
+ "canonicalReference": "@genesislcap/foundation-ai!CriteriaInterpretContext:interface"
3179
+ },
3180
+ {
3181
+ "kind": "Content",
3182
+ "text": "): "
3183
+ },
3184
+ {
3185
+ "kind": "Reference",
3186
+ "text": "Promise",
3187
+ "canonicalReference": "!Promise:interface"
3188
+ },
3189
+ {
3190
+ "kind": "Content",
3191
+ "text": "<"
3192
+ },
3193
+ {
3194
+ "kind": "Reference",
3195
+ "text": "CriteriaInterpretationResult",
3196
+ "canonicalReference": "@genesislcap/foundation-ai!CriteriaInterpretationResult:interface"
3197
+ },
3198
+ {
3199
+ "kind": "Content",
3200
+ "text": " | null>"
3201
+ },
3202
+ {
3203
+ "kind": "Content",
3204
+ "text": ";"
3205
+ }
3206
+ ],
3207
+ "isStatic": false,
3208
+ "returnTypeTokenRange": {
3209
+ "startIndex": 5,
3210
+ "endIndex": 9
3211
+ },
3212
+ "releaseTag": "Beta",
3213
+ "isProtected": false,
3214
+ "overloadIndex": 1,
3215
+ "parameters": [
3216
+ {
3217
+ "parameterName": "input",
3218
+ "parameterTypeTokenRange": {
3219
+ "startIndex": 1,
3220
+ "endIndex": 2
3221
+ },
3222
+ "isOptional": false
3223
+ },
3224
+ {
3225
+ "parameterName": "context",
3226
+ "parameterTypeTokenRange": {
3227
+ "startIndex": 3,
3228
+ "endIndex": 4
3229
+ },
3230
+ "isOptional": false
3231
+ }
3232
+ ],
3233
+ "isOptional": false,
3234
+ "isAbstract": false,
3235
+ "name": "interpretCriteria"
3236
+ },
3237
+ {
3238
+ "kind": "Method",
3239
+ "canonicalReference": "@genesislcap/foundation-ai!GeminiProvider#streamChat:member(1)",
3240
+ "docComment": "",
3241
+ "excerptTokens": [
3242
+ {
3243
+ "kind": "Content",
3244
+ "text": "streamChat(history: "
3245
+ },
3246
+ {
3247
+ "kind": "Reference",
3248
+ "text": "ChatMessage",
3249
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
3250
+ },
3251
+ {
3252
+ "kind": "Content",
3253
+ "text": "[]"
3254
+ },
3255
+ {
3256
+ "kind": "Content",
3257
+ "text": ", userMessage: "
3258
+ },
3259
+ {
3260
+ "kind": "Content",
3261
+ "text": "string"
3262
+ },
3263
+ {
3264
+ "kind": "Content",
3265
+ "text": ", options?: "
3266
+ },
3267
+ {
3268
+ "kind": "Reference",
3269
+ "text": "ChatRequestOptions",
3270
+ "canonicalReference": "@genesislcap/foundation-ai!ChatRequestOptions:interface"
3271
+ },
3272
+ {
3273
+ "kind": "Content",
3274
+ "text": "): "
3275
+ },
3276
+ {
3277
+ "kind": "Reference",
3278
+ "text": "AsyncIterable",
3279
+ "canonicalReference": "!AsyncIterable:interface"
3280
+ },
3281
+ {
3282
+ "kind": "Content",
3283
+ "text": "<"
3284
+ },
3285
+ {
3286
+ "kind": "Reference",
3287
+ "text": "ChatStreamChunk",
3288
+ "canonicalReference": "@genesislcap/foundation-ai!ChatStreamChunk:interface"
3289
+ },
3290
+ {
3291
+ "kind": "Content",
3292
+ "text": ">"
3293
+ },
3294
+ {
3295
+ "kind": "Content",
3296
+ "text": ";"
3297
+ }
3298
+ ],
3299
+ "isStatic": false,
3300
+ "returnTypeTokenRange": {
3301
+ "startIndex": 8,
3302
+ "endIndex": 12
3303
+ },
3304
+ "releaseTag": "Beta",
3305
+ "isProtected": false,
3306
+ "overloadIndex": 1,
3307
+ "parameters": [
3308
+ {
3309
+ "parameterName": "history",
3310
+ "parameterTypeTokenRange": {
3311
+ "startIndex": 1,
3312
+ "endIndex": 3
3313
+ },
3314
+ "isOptional": false
3315
+ },
3316
+ {
3317
+ "parameterName": "userMessage",
3318
+ "parameterTypeTokenRange": {
3319
+ "startIndex": 4,
3320
+ "endIndex": 5
3321
+ },
3322
+ "isOptional": false
3323
+ },
3324
+ {
3325
+ "parameterName": "options",
3326
+ "parameterTypeTokenRange": {
3327
+ "startIndex": 6,
3328
+ "endIndex": 7
3329
+ },
3330
+ "isOptional": true
3331
+ }
3332
+ ],
3333
+ "isOptional": false,
3334
+ "isAbstract": false,
3335
+ "name": "streamChat"
3336
+ }
3337
+ ],
3338
+ "implementsTokenRanges": [
3339
+ {
3340
+ "startIndex": 1,
3341
+ "endIndex": 2
3342
+ }
3343
+ ]
3344
+ },
3345
+ {
3346
+ "kind": "Class",
3347
+ "canonicalReference": "@genesislcap/foundation-ai!GeminiTransport:class",
3348
+ "docComment": "/**\n * Transport for Gemini. Calls the Gemini REST API directly when `apiKey` is provided, otherwise falls back to a server-proxy endpoint (if `serverEndpoint` is configured).\n *\n * Implements `AITransport` (structured prompt) and `ChatTransport` (multi-turn chat).\n *\n * @beta\n */\n",
3349
+ "excerptTokens": [
3350
+ {
3351
+ "kind": "Content",
3352
+ "text": "export declare class GeminiTransport implements "
3353
+ },
3354
+ {
3355
+ "kind": "Reference",
3356
+ "text": "AITransport",
3357
+ "canonicalReference": "@genesislcap/foundation-ai!~AITransport:interface"
3358
+ },
3359
+ {
3360
+ "kind": "Content",
3361
+ "text": ", "
3362
+ },
3363
+ {
3364
+ "kind": "Reference",
3365
+ "text": "ChatTransport",
3366
+ "canonicalReference": "@genesislcap/foundation-ai!ChatTransport:interface"
3367
+ },
3368
+ {
3369
+ "kind": "Content",
3370
+ "text": " "
3371
+ }
3372
+ ],
3373
+ "fileUrlPath": "src/transports/gemini-transport.ts",
3374
+ "releaseTag": "Beta",
3375
+ "isAbstract": false,
3376
+ "name": "GeminiTransport",
3377
+ "preserveMemberOrder": false,
3378
+ "members": [
3379
+ {
3380
+ "kind": "Constructor",
3381
+ "canonicalReference": "@genesislcap/foundation-ai!GeminiTransport:constructor(1)",
3382
+ "docComment": "/**\n * Constructs a new instance of the `GeminiTransport` class\n */\n",
3383
+ "excerptTokens": [
3384
+ {
3385
+ "kind": "Content",
3386
+ "text": "constructor(config?: "
3387
+ },
3388
+ {
3389
+ "kind": "Reference",
3390
+ "text": "GeminiTransportConfig",
3391
+ "canonicalReference": "@genesislcap/foundation-ai!~GeminiTransportConfig:interface"
3392
+ },
3393
+ {
3394
+ "kind": "Content",
3395
+ "text": ");"
3396
+ }
3397
+ ],
3398
+ "releaseTag": "Beta",
3399
+ "isProtected": false,
3400
+ "overloadIndex": 1,
3401
+ "parameters": [
3402
+ {
3403
+ "parameterName": "config",
3404
+ "parameterTypeTokenRange": {
3405
+ "startIndex": 1,
3406
+ "endIndex": 2
3407
+ },
3408
+ "isOptional": true
3409
+ }
3410
+ ]
3411
+ },
3412
+ {
3413
+ "kind": "Method",
3414
+ "canonicalReference": "@genesislcap/foundation-ai!GeminiTransport#getConfig:member(1)",
3415
+ "docComment": "",
3416
+ "excerptTokens": [
3417
+ {
3418
+ "kind": "Content",
3419
+ "text": "getConfig(): "
3420
+ },
3421
+ {
3422
+ "kind": "Content",
3423
+ "text": "{\n provider: 'gemini';\n model: string;\n }"
3424
+ },
3425
+ {
3426
+ "kind": "Content",
3427
+ "text": ";"
3428
+ }
3429
+ ],
3430
+ "isStatic": false,
3431
+ "returnTypeTokenRange": {
3432
+ "startIndex": 1,
3433
+ "endIndex": 2
3434
+ },
3435
+ "releaseTag": "Beta",
3436
+ "isProtected": false,
3437
+ "overloadIndex": 1,
3438
+ "parameters": [],
3439
+ "isOptional": false,
3440
+ "isAbstract": false,
3441
+ "name": "getConfig"
3442
+ },
3443
+ {
3444
+ "kind": "Method",
3445
+ "canonicalReference": "@genesislcap/foundation-ai!GeminiTransport#sendChatMessage:member(1)",
945
3446
  "docComment": "",
946
3447
  "excerptTokens": [
947
3448
  {
948
3449
  "kind": "Content",
949
- "text": "groups: "
3450
+ "text": "sendChatMessage(history: "
950
3451
  },
951
3452
  {
952
3453
  "kind": "Reference",
953
- "text": "CriteriaGroupResult",
954
- "canonicalReference": "@genesislcap/foundation-ai!CriteriaGroupResult:interface"
3454
+ "text": "ChatMessage",
3455
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
955
3456
  },
956
3457
  {
957
3458
  "kind": "Content",
958
3459
  "text": "[]"
959
3460
  },
3461
+ {
3462
+ "kind": "Content",
3463
+ "text": ", userMessage: "
3464
+ },
3465
+ {
3466
+ "kind": "Content",
3467
+ "text": "string"
3468
+ },
3469
+ {
3470
+ "kind": "Content",
3471
+ "text": ", options?: "
3472
+ },
3473
+ {
3474
+ "kind": "Reference",
3475
+ "text": "ChatRequestOptions",
3476
+ "canonicalReference": "@genesislcap/foundation-ai!ChatRequestOptions:interface"
3477
+ },
3478
+ {
3479
+ "kind": "Content",
3480
+ "text": "): "
3481
+ },
3482
+ {
3483
+ "kind": "Reference",
3484
+ "text": "Promise",
3485
+ "canonicalReference": "!Promise:interface"
3486
+ },
3487
+ {
3488
+ "kind": "Content",
3489
+ "text": "<"
3490
+ },
3491
+ {
3492
+ "kind": "Reference",
3493
+ "text": "ChatMessage",
3494
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
3495
+ },
3496
+ {
3497
+ "kind": "Content",
3498
+ "text": ">"
3499
+ },
960
3500
  {
961
3501
  "kind": "Content",
962
3502
  "text": ";"
963
3503
  }
964
3504
  ],
965
- "isReadonly": false,
3505
+ "isStatic": false,
3506
+ "returnTypeTokenRange": {
3507
+ "startIndex": 8,
3508
+ "endIndex": 12
3509
+ },
3510
+ "releaseTag": "Beta",
3511
+ "isProtected": false,
3512
+ "overloadIndex": 1,
3513
+ "parameters": [
3514
+ {
3515
+ "parameterName": "history",
3516
+ "parameterTypeTokenRange": {
3517
+ "startIndex": 1,
3518
+ "endIndex": 3
3519
+ },
3520
+ "isOptional": false
3521
+ },
3522
+ {
3523
+ "parameterName": "userMessage",
3524
+ "parameterTypeTokenRange": {
3525
+ "startIndex": 4,
3526
+ "endIndex": 5
3527
+ },
3528
+ "isOptional": false
3529
+ },
3530
+ {
3531
+ "parameterName": "options",
3532
+ "parameterTypeTokenRange": {
3533
+ "startIndex": 6,
3534
+ "endIndex": 7
3535
+ },
3536
+ "isOptional": true
3537
+ }
3538
+ ],
966
3539
  "isOptional": false,
967
- "releaseTag": "Public",
968
- "name": "groups",
969
- "propertyTypeTokenRange": {
970
- "startIndex": 1,
971
- "endIndex": 3
972
- }
973
- }
974
- ],
975
- "extendsTokenRanges": []
976
- },
977
- {
978
- "kind": "Interface",
979
- "canonicalReference": "@genesislcap/foundation-ai!CriteriaInterpretContext:interface",
980
- "docComment": "",
981
- "excerptTokens": [
982
- {
983
- "kind": "Content",
984
- "text": "export interface CriteriaInterpretContext "
985
- }
986
- ],
987
- "fileUrlPath": "src/interactions/criteria-interpretation.ts",
988
- "releaseTag": "Public",
989
- "name": "CriteriaInterpretContext",
990
- "preserveMemberOrder": false,
991
- "members": [
3540
+ "isAbstract": false,
3541
+ "name": "sendChatMessage"
3542
+ },
992
3543
  {
993
- "kind": "PropertySignature",
994
- "canonicalReference": "@genesislcap/foundation-ai!CriteriaInterpretContext#fields:member",
3544
+ "kind": "Method",
3545
+ "canonicalReference": "@genesislcap/foundation-ai!GeminiTransport#sendStructuredPrompt:member(1)",
995
3546
  "docComment": "",
996
3547
  "excerptTokens": [
997
3548
  {
998
3549
  "kind": "Content",
999
- "text": "fields?: "
3550
+ "text": "sendStructuredPrompt(options: "
1000
3551
  },
1001
3552
  {
1002
3553
  "kind": "Reference",
1003
- "text": "FieldLike",
1004
- "canonicalReference": "@genesislcap/foundation-ai!FieldLike:type"
3554
+ "text": "StructuredPromptOptions",
3555
+ "canonicalReference": "@genesislcap/foundation-ai!~StructuredPromptOptions:interface"
1005
3556
  },
1006
3557
  {
1007
3558
  "kind": "Content",
1008
- "text": "[]"
3559
+ "text": "): "
3560
+ },
3561
+ {
3562
+ "kind": "Reference",
3563
+ "text": "Promise",
3564
+ "canonicalReference": "!Promise:interface"
3565
+ },
3566
+ {
3567
+ "kind": "Content",
3568
+ "text": "<string>"
1009
3569
  },
1010
3570
  {
1011
3571
  "kind": "Content",
1012
3572
  "text": ";"
1013
3573
  }
1014
3574
  ],
1015
- "isReadonly": false,
1016
- "isOptional": true,
1017
- "releaseTag": "Public",
1018
- "name": "fields",
1019
- "propertyTypeTokenRange": {
1020
- "startIndex": 1,
1021
- "endIndex": 3
1022
- }
3575
+ "isStatic": false,
3576
+ "returnTypeTokenRange": {
3577
+ "startIndex": 3,
3578
+ "endIndex": 5
3579
+ },
3580
+ "releaseTag": "Beta",
3581
+ "isProtected": false,
3582
+ "overloadIndex": 1,
3583
+ "parameters": [
3584
+ {
3585
+ "parameterName": "options",
3586
+ "parameterTypeTokenRange": {
3587
+ "startIndex": 1,
3588
+ "endIndex": 2
3589
+ },
3590
+ "isOptional": false
3591
+ }
3592
+ ],
3593
+ "isOptional": false,
3594
+ "isAbstract": false,
3595
+ "name": "sendStructuredPrompt"
1023
3596
  }
1024
3597
  ],
1025
- "extendsTokenRanges": []
1026
- },
1027
- {
1028
- "kind": "TypeAlias",
1029
- "canonicalReference": "@genesislcap/foundation-ai!FieldLike:type",
1030
- "docComment": "",
1031
- "excerptTokens": [
1032
- {
1033
- "kind": "Content",
1034
- "text": "export type FieldLike = "
1035
- },
3598
+ "implementsTokenRanges": [
1036
3599
  {
1037
- "kind": "Content",
1038
- "text": "string | {\n name?: string;\n field?: string;\n label?: string;\n NAME?: string;\n}"
3600
+ "startIndex": 1,
3601
+ "endIndex": 2
1039
3602
  },
1040
3603
  {
1041
- "kind": "Content",
1042
- "text": ";"
3604
+ "startIndex": 3,
3605
+ "endIndex": 4
1043
3606
  }
1044
- ],
1045
- "fileUrlPath": "src/interactions/criteria-interpretation.ts",
1046
- "releaseTag": "Public",
1047
- "name": "FieldLike",
1048
- "typeTokenRange": {
1049
- "startIndex": 1,
1050
- "endIndex": 2
1051
- }
3607
+ ]
1052
3608
  },
1053
3609
  {
1054
3610
  "kind": "Function",
@@ -1079,6 +3635,53 @@
1079
3635
  "parameters": [],
1080
3636
  "name": "getAIProvider"
1081
3637
  },
3638
+ {
3639
+ "kind": "TypeAlias",
3640
+ "canonicalReference": "@genesislcap/foundation-ai!InteractionResult:type",
3641
+ "docComment": "/**\n * The result of a user interaction component.\n *\n * @beta\n */\n",
3642
+ "excerptTokens": [
3643
+ {
3644
+ "kind": "Content",
3645
+ "text": "export type InteractionResult<T = "
3646
+ },
3647
+ {
3648
+ "kind": "Content",
3649
+ "text": "unknown"
3650
+ },
3651
+ {
3652
+ "kind": "Content",
3653
+ "text": "> = "
3654
+ },
3655
+ {
3656
+ "kind": "Content",
3657
+ "text": "{\n status: 'approved' | 'rejected';\n payload?: T;\n message?: string;\n}"
3658
+ },
3659
+ {
3660
+ "kind": "Content",
3661
+ "text": ";"
3662
+ }
3663
+ ],
3664
+ "fileUrlPath": "src/types/chat.types.ts",
3665
+ "releaseTag": "Beta",
3666
+ "name": "InteractionResult",
3667
+ "typeParameters": [
3668
+ {
3669
+ "typeParameterName": "T",
3670
+ "constraintTokenRange": {
3671
+ "startIndex": 0,
3672
+ "endIndex": 0
3673
+ },
3674
+ "defaultTypeTokenRange": {
3675
+ "startIndex": 1,
3676
+ "endIndex": 2
3677
+ }
3678
+ }
3679
+ ],
3680
+ "typeTokenRange": {
3681
+ "startIndex": 3,
3682
+ "endIndex": 4
3683
+ }
3684
+ },
1082
3685
  {
1083
3686
  "kind": "Function",
1084
3687
  "canonicalReference": "@genesislcap/foundation-ai!isAIFeatureEnabled:function(1)",
@@ -1106,7 +3709,7 @@
1106
3709
  {
1107
3710
  "kind": "Function",
1108
3711
  "canonicalReference": "@genesislcap/foundation-ai!isSpeechRecognitionAvailable:function(1)",
1109
- "docComment": "/**\n * Speech-to-text using Web Speech API. Gracefully degrades when SpeechRecognition is unavailable.\n *\n * @beta\n */\n",
3712
+ "docComment": "/**\n * Returns true if the Web Speech API is available in the current environment.\n *\n * @beta\n */\n",
1110
3713
  "excerptTokens": [
1111
3714
  {
1112
3715
  "kind": "Content",
@@ -1131,6 +3734,100 @@
1131
3734
  "parameters": [],
1132
3735
  "name": "isSpeechRecognitionAvailable"
1133
3736
  },
3737
+ {
3738
+ "kind": "Class",
3739
+ "canonicalReference": "@genesislcap/foundation-ai!MalformedFunctionCallError:class",
3740
+ "docComment": "/**\n * Thrown when Gemini returns a `MALFORMED_FUNCTION_CALL` finish reason, typically because the model tried to batch multiple tool calls using Python-style syntax instead of the proper API format.\n *\n * @beta\n */\n",
3741
+ "excerptTokens": [
3742
+ {
3743
+ "kind": "Content",
3744
+ "text": "export declare class MalformedFunctionCallError extends "
3745
+ },
3746
+ {
3747
+ "kind": "Reference",
3748
+ "text": "Error",
3749
+ "canonicalReference": "!Error:interface"
3750
+ },
3751
+ {
3752
+ "kind": "Content",
3753
+ "text": " "
3754
+ }
3755
+ ],
3756
+ "fileUrlPath": "src/transports/gemini-transport.ts",
3757
+ "releaseTag": "Beta",
3758
+ "isAbstract": false,
3759
+ "name": "MalformedFunctionCallError",
3760
+ "preserveMemberOrder": false,
3761
+ "members": [
3762
+ {
3763
+ "kind": "Constructor",
3764
+ "canonicalReference": "@genesislcap/foundation-ai!MalformedFunctionCallError:constructor(1)",
3765
+ "docComment": "/**\n * Constructs a new instance of the `MalformedFunctionCallError` class\n */\n",
3766
+ "excerptTokens": [
3767
+ {
3768
+ "kind": "Content",
3769
+ "text": "constructor(finishMessage?: "
3770
+ },
3771
+ {
3772
+ "kind": "Content",
3773
+ "text": "string"
3774
+ },
3775
+ {
3776
+ "kind": "Content",
3777
+ "text": ");"
3778
+ }
3779
+ ],
3780
+ "releaseTag": "Beta",
3781
+ "isProtected": false,
3782
+ "overloadIndex": 1,
3783
+ "parameters": [
3784
+ {
3785
+ "parameterName": "finishMessage",
3786
+ "parameterTypeTokenRange": {
3787
+ "startIndex": 1,
3788
+ "endIndex": 2
3789
+ },
3790
+ "isOptional": true
3791
+ }
3792
+ ]
3793
+ },
3794
+ {
3795
+ "kind": "Property",
3796
+ "canonicalReference": "@genesislcap/foundation-ai!MalformedFunctionCallError#finishMessage:member",
3797
+ "docComment": "",
3798
+ "excerptTokens": [
3799
+ {
3800
+ "kind": "Content",
3801
+ "text": "readonly finishMessage?: "
3802
+ },
3803
+ {
3804
+ "kind": "Content",
3805
+ "text": "string"
3806
+ },
3807
+ {
3808
+ "kind": "Content",
3809
+ "text": ";"
3810
+ }
3811
+ ],
3812
+ "isReadonly": true,
3813
+ "isOptional": true,
3814
+ "releaseTag": "Beta",
3815
+ "name": "finishMessage",
3816
+ "propertyTypeTokenRange": {
3817
+ "startIndex": 1,
3818
+ "endIndex": 2
3819
+ },
3820
+ "isStatic": false,
3821
+ "isProtected": false,
3822
+ "isAbstract": false
3823
+ }
3824
+ ],
3825
+ "extendsTokenRange": {
3826
+ "startIndex": 1,
3827
+ "endIndex": 2
3828
+ },
3829
+ "implementsTokenRanges": []
3830
+ },
1134
3831
  {
1135
3832
  "kind": "Function",
1136
3833
  "canonicalReference": "@genesislcap/foundation-ai!resolveAIConfig:function(1)",
@@ -1194,7 +3891,7 @@
1194
3891
  {
1195
3892
  "kind": "Interface",
1196
3893
  "canonicalReference": "@genesislcap/foundation-ai!ResolveAIConfigOptions:interface",
1197
- "docComment": "",
3894
+ "docComment": "/**\n * Options for {@link resolveAIConfig}.\n *\n * @beta\n */\n",
1198
3895
  "excerptTokens": [
1199
3896
  {
1200
3897
  "kind": "Content",
@@ -1202,7 +3899,7 @@
1202
3899
  }
1203
3900
  ],
1204
3901
  "fileUrlPath": "src/ai-provider.ts",
1205
- "releaseTag": "Public",
3902
+ "releaseTag": "Beta",
1206
3903
  "name": "ResolveAIConfigOptions",
1207
3904
  "preserveMemberOrder": false,
1208
3905
  "members": [
@@ -1226,7 +3923,7 @@
1226
3923
  ],
1227
3924
  "isReadonly": false,
1228
3925
  "isOptional": true,
1229
- "releaseTag": "Public",
3926
+ "releaseTag": "Beta",
1230
3927
  "name": "model",
1231
3928
  "propertyTypeTokenRange": {
1232
3929
  "startIndex": 1,
@@ -1253,7 +3950,7 @@
1253
3950
  ],
1254
3951
  "isReadonly": false,
1255
3952
  "isOptional": true,
1256
- "releaseTag": "Public",
3953
+ "releaseTag": "Beta",
1257
3954
  "name": "preferChrome",
1258
3955
  "propertyTypeTokenRange": {
1259
3956
  "startIndex": 1,
@@ -1263,7 +3960,7 @@
1263
3960
  {
1264
3961
  "kind": "PropertySignature",
1265
3962
  "canonicalReference": "@genesislcap/foundation-ai!ResolveAIConfigOptions#provider:member",
1266
- "docComment": "/**\n * Cloud provider (openai). Default: openai\n */\n",
3963
+ "docComment": "/**\n * Cloud provider (openai, gemini). Default: openai\n */\n",
1267
3964
  "excerptTokens": [
1268
3965
  {
1269
3966
  "kind": "Content",
@@ -1271,7 +3968,7 @@
1271
3968
  },
1272
3969
  {
1273
3970
  "kind": "Content",
1274
- "text": "'openai'"
3971
+ "text": "'openai' | 'gemini'"
1275
3972
  },
1276
3973
  {
1277
3974
  "kind": "Content",
@@ -1280,7 +3977,7 @@
1280
3977
  ],
1281
3978
  "isReadonly": false,
1282
3979
  "isOptional": true,
1283
- "releaseTag": "Public",
3980
+ "releaseTag": "Beta",
1284
3981
  "name": "provider",
1285
3982
  "propertyTypeTokenRange": {
1286
3983
  "startIndex": 1,
@@ -1353,7 +4050,7 @@
1353
4050
  {
1354
4051
  "kind": "Function",
1355
4052
  "canonicalReference": "@genesislcap/foundation-ai!startSpeechRecognition:function(1)",
1356
- "docComment": "",
4053
+ "docComment": "/**\n * Starts continuous speech recognition, calling `onResult` with each transcript update. Returns a stop function, or null if speech recognition is unavailable.\n *\n * @beta\n */\n",
1357
4054
  "excerptTokens": [
1358
4055
  {
1359
4056
  "kind": "Content",
@@ -1391,7 +4088,7 @@
1391
4088
  "startIndex": 5,
1392
4089
  "endIndex": 6
1393
4090
  },
1394
- "releaseTag": "Public",
4091
+ "releaseTag": "Beta",
1395
4092
  "overloadIndex": 1,
1396
4093
  "parameters": [
1397
4094
  {