@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
@@ -0,0 +1,98 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-ai](./foundation-ai.md) &gt; [MalformedFunctionCallError](./foundation-ai.malformedfunctioncallerror.md)
4
+
5
+ ## MalformedFunctionCallError class
6
+
7
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
8
+ >
9
+
10
+ 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.
11
+
12
+ **Signature:**
13
+
14
+ ```typescript
15
+ export declare class MalformedFunctionCallError extends Error
16
+ ```
17
+ **Extends:** Error
18
+
19
+ ## Constructors
20
+
21
+ <table><thead><tr><th>
22
+
23
+ Constructor
24
+
25
+
26
+ </th><th>
27
+
28
+ Modifiers
29
+
30
+
31
+ </th><th>
32
+
33
+ Description
34
+
35
+
36
+ </th></tr></thead>
37
+ <tbody><tr><td>
38
+
39
+ [(constructor)(finishMessage)](./foundation-ai.malformedfunctioncallerror._constructor_.md)
40
+
41
+
42
+ </td><td>
43
+
44
+
45
+ </td><td>
46
+
47
+ **_(BETA)_** Constructs a new instance of the `MalformedFunctionCallError` class
48
+
49
+
50
+ </td></tr>
51
+ </tbody></table>
52
+
53
+ ## Properties
54
+
55
+ <table><thead><tr><th>
56
+
57
+ Property
58
+
59
+
60
+ </th><th>
61
+
62
+ Modifiers
63
+
64
+
65
+ </th><th>
66
+
67
+ Type
68
+
69
+
70
+ </th><th>
71
+
72
+ Description
73
+
74
+
75
+ </th></tr></thead>
76
+ <tbody><tr><td>
77
+
78
+ [finishMessage?](./foundation-ai.malformedfunctioncallerror.finishmessage.md)
79
+
80
+
81
+ </td><td>
82
+
83
+ `readonly`
84
+
85
+
86
+ </td><td>
87
+
88
+ string
89
+
90
+
91
+ </td><td>
92
+
93
+ **_(BETA)_** _(Optional)_
94
+
95
+
96
+ </td></tr>
97
+ </tbody></table>
98
+
@@ -4,6 +4,56 @@
4
4
 
5
5
  ## foundation-ai package
6
6
 
7
+ ## Classes
8
+
9
+ <table><thead><tr><th>
10
+
11
+ Class
12
+
13
+
14
+ </th><th>
15
+
16
+ Description
17
+
18
+
19
+ </th></tr></thead>
20
+ <tbody><tr><td>
21
+
22
+ [GeminiProvider](./foundation-ai.geminiprovider.md)
23
+
24
+
25
+ </td><td>
26
+
27
+ **_(BETA)_** Gemini AI provider. Uses [GeminiTransport](./foundation-ai.geminitransport.md) to handle requests. Implements criteria interpretation and multi-turn chat.
28
+
29
+
30
+ </td></tr>
31
+ <tr><td>
32
+
33
+ [GeminiTransport](./foundation-ai.geminitransport.md)
34
+
35
+
36
+ </td><td>
37
+
38
+ **_(BETA)_** 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).
39
+
40
+ Implements `AITransport` (structured prompt) and `ChatTransport` (multi-turn chat).
41
+
42
+
43
+ </td></tr>
44
+ <tr><td>
45
+
46
+ [MalformedFunctionCallError](./foundation-ai.malformedfunctioncallerror.md)
47
+
48
+
49
+ </td><td>
50
+
51
+ **_(BETA)_** 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.
52
+
53
+
54
+ </td></tr>
55
+ </tbody></table>
56
+
7
57
  ## Functions
8
58
 
9
59
  <table><thead><tr><th>
@@ -57,7 +107,7 @@ Returns true when AI features (beta) are enabled. Requires ?feature.ai in URL.
57
107
 
58
108
  </td><td>
59
109
 
60
- **_(BETA)_** Speech-to-text using Web Speech API. Gracefully degrades when SpeechRecognition is unavailable.
110
+ **_(BETA)_** Returns true if the Web Speech API is available in the current environment.
61
111
 
62
112
 
63
113
  </td></tr>
@@ -79,6 +129,8 @@ Returns true when AI features (beta) are enabled. Requires ?feature.ai in URL.
79
129
 
80
130
  </td><td>
81
131
 
132
+ **_(BETA)_** Starts continuous speech recognition, calling `onResult` with each transcript update. Returns a stop function, or null if speech recognition is unavailable.
133
+
82
134
 
83
135
  </td></tr>
84
136
  </tbody></table>
@@ -117,6 +169,129 @@ Description
117
169
  **_(BETA)_** AI status for display in the header indicator.
118
170
 
119
171
 
172
+ </td></tr>
173
+ <tr><td>
174
+
175
+ [ChatAnimationsConfig](./foundation-ai.chatanimationsconfig.md)
176
+
177
+
178
+ </td><td>
179
+
180
+ **_(BETA)_** Configuration for the animations feature.
181
+
182
+
183
+ </td></tr>
184
+ <tr><td>
185
+
186
+ [ChatAttachment](./foundation-ai.chatattachment.md)
187
+
188
+
189
+ </td><td>
190
+
191
+ **_(BETA)_** A file attachment included with a user message.
192
+
193
+
194
+ </td></tr>
195
+ <tr><td>
196
+
197
+ [ChatConfig](./foundation-ai.chatconfig.md)
198
+
199
+
200
+ </td><td>
201
+
202
+ **_(BETA)_** Display and behaviour configuration for the chat assistant.
203
+
204
+ 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
205
+
206
+
207
+ </td></tr>
208
+ <tr><td>
209
+
210
+ [ChatInteraction](./foundation-ai.chatinteraction.md)
211
+
212
+
213
+ </td><td>
214
+
215
+ **_(BETA)_** A user interaction component request.
216
+
217
+
218
+ </td></tr>
219
+ <tr><td>
220
+
221
+ [ChatMessage](./foundation-ai.chatmessage.md)
222
+
223
+
224
+ </td><td>
225
+
226
+ **_(BETA)_** A single message in a chat conversation.
227
+
228
+
229
+ </td></tr>
230
+ <tr><td>
231
+
232
+ [ChatRequestOptions](./foundation-ai.chatrequestoptions.md)
233
+
234
+
235
+ </td><td>
236
+
237
+ **_(BETA)_** Options for a chat request.
238
+
239
+
240
+ </td></tr>
241
+ <tr><td>
242
+
243
+ [ChatStreamChunk](./foundation-ai.chatstreamchunk.md)
244
+
245
+
246
+ </td><td>
247
+
248
+ **_(BETA)_** A streaming chunk from a chat response.
249
+
250
+
251
+ </td></tr>
252
+ <tr><td>
253
+
254
+ [ChatToolCall](./foundation-ai.chattoolcall.md)
255
+
256
+
257
+ </td><td>
258
+
259
+ **_(BETA)_** A tool call requested by the assistant.
260
+
261
+
262
+ </td></tr>
263
+ <tr><td>
264
+
265
+ [ChatToolDefinition](./foundation-ai.chattooldefinition.md)
266
+
267
+
268
+ </td><td>
269
+
270
+ **_(BETA)_** JSON Schema-based tool definition for function calling.
271
+
272
+
273
+ </td></tr>
274
+ <tr><td>
275
+
276
+ [ChatToolResult](./foundation-ai.chattoolresult.md)
277
+
278
+
279
+ </td><td>
280
+
281
+ **_(BETA)_** The result of executing a tool call.
282
+
283
+
284
+ </td></tr>
285
+ <tr><td>
286
+
287
+ [ChatTransport](./foundation-ai.chattransport.md)
288
+
289
+
290
+ </td><td>
291
+
292
+ **_(BETA)_** Transport interface for chat-capable AI providers.
293
+
294
+
120
295
  </td></tr>
121
296
  <tr><td>
122
297
 
@@ -147,6 +322,8 @@ Description
147
322
 
148
323
  </td><td>
149
324
 
325
+ **_(BETA)_** A group of criteria clauses combined by a logical operator.
326
+
150
327
 
151
328
  </td></tr>
152
329
  <tr><td>
@@ -156,6 +333,8 @@ Description
156
333
 
157
334
  </td><td>
158
335
 
336
+ **_(BETA)_** Top-level result returned by criteria interpretation.
337
+
159
338
 
160
339
  </td></tr>
161
340
  <tr><td>
@@ -165,6 +344,19 @@ Description
165
344
 
166
345
  </td><td>
167
346
 
347
+ **_(BETA)_** Context passed to criteria interpretation, providing available field metadata.
348
+
349
+
350
+ </td></tr>
351
+ <tr><td>
352
+
353
+ [GeminiAIConfig](./foundation-ai.geminiaiconfig.md)
354
+
355
+
356
+ </td><td>
357
+
358
+ **_(BETA)_** Gemini server-proxy AI configuration (client calls your server; server calls Gemini).
359
+
168
360
 
169
361
  </td></tr>
170
362
  <tr><td>
@@ -174,6 +366,8 @@ Description
174
366
 
175
367
  </td><td>
176
368
 
369
+ **_(BETA)_** Options for [resolveAIConfig()](./foundation-ai.resolveaiconfig.md)<!-- -->.
370
+
177
371
 
178
372
  </td></tr>
179
373
  <tr><td>
@@ -249,6 +443,28 @@ Description
249
443
  **_(BETA)_** All AI provider identifiers (server, client, unconfigured).
250
444
 
251
445
 
446
+ </td></tr>
447
+ <tr><td>
448
+
449
+ [ChatRole](./foundation-ai.chatrole.md)
450
+
451
+
452
+ </td><td>
453
+
454
+ **_(BETA)_** Role of a message in a chat conversation.
455
+
456
+
457
+ </td></tr>
458
+ <tr><td>
459
+
460
+ [ChatToolHandlers](./foundation-ai.chattoolhandlers.md)
461
+
462
+
463
+ </td><td>
464
+
465
+ **_(BETA)_** Map of tool name to async handler function.
466
+
467
+
252
468
  </td></tr>
253
469
  <tr><td>
254
470
 
@@ -268,6 +484,19 @@ Description
268
484
 
269
485
  </td><td>
270
486
 
487
+ **_(BETA)_** A field descriptor accepted by criteria interpretation utilities. Can be a plain string name or an object with common field metadata properties.
488
+
489
+
490
+ </td></tr>
491
+ <tr><td>
492
+
493
+ [InteractionResult](./foundation-ai.interactionresult.md)
494
+
495
+
496
+ </td><td>
497
+
498
+ **_(BETA)_** The result of a user interaction component.
499
+
271
500
 
272
501
  </td></tr>
273
502
  </tbody></table>
@@ -4,6 +4,11 @@
4
4
 
5
5
  ## ResolveAIConfigOptions interface
6
6
 
7
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
8
+ >
9
+
10
+ Options for [resolveAIConfig()](./foundation-ai.resolveaiconfig.md)<!-- -->.
11
+
7
12
  **Signature:**
8
13
 
9
14
  ```typescript
@@ -48,7 +53,7 @@ string
48
53
 
49
54
  </td><td>
50
55
 
51
- _(Optional)_ Model name (e.g. gpt-4o-mini). Default: gpt-4o-mini
56
+ **_(BETA)_** _(Optional)_ Model name (e.g. gpt-4o-mini). Default: gpt-4o-mini
52
57
 
53
58
 
54
59
  </td></tr>
@@ -67,7 +72,7 @@ boolean
67
72
 
68
73
  </td><td>
69
74
 
70
- _(Optional)_ Prefer Chrome built-in AI when available
75
+ **_(BETA)_** _(Optional)_ Prefer Chrome built-in AI when available
71
76
 
72
77
 
73
78
  </td></tr>
@@ -81,12 +86,12 @@ _(Optional)_ Prefer Chrome built-in AI when available
81
86
 
82
87
  </td><td>
83
88
 
84
- 'openai'
89
+ 'openai' \| 'gemini'
85
90
 
86
91
 
87
92
  </td><td>
88
93
 
89
- _(Optional)_ Cloud provider (openai). Default: openai
94
+ **_(BETA)_** _(Optional)_ Cloud provider (openai, gemini). Default: openai
90
95
 
91
96
 
92
97
  </td></tr>
@@ -4,6 +4,9 @@
4
4
 
5
5
  ## ResolveAIConfigOptions.model property
6
6
 
7
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
8
+ >
9
+
7
10
  Model name (e.g. gpt-4o-mini). Default: gpt-4o-mini
8
11
 
9
12
  **Signature:**
@@ -4,6 +4,9 @@
4
4
 
5
5
  ## ResolveAIConfigOptions.preferChrome property
6
6
 
7
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
8
+ >
9
+
7
10
  Prefer Chrome built-in AI when available
8
11
 
9
12
  **Signature:**
@@ -4,10 +4,13 @@
4
4
 
5
5
  ## ResolveAIConfigOptions.provider property
6
6
 
7
- Cloud provider (openai). Default: openai
7
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
8
+ >
9
+
10
+ Cloud provider (openai, gemini). Default: openai
8
11
 
9
12
  **Signature:**
10
13
 
11
14
  ```typescript
12
- provider?: 'openai';
15
+ provider?: 'openai' | 'gemini';
13
16
  ```
@@ -4,6 +4,11 @@
4
4
 
5
5
  ## startSpeechRecognition() function
6
6
 
7
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
8
+ >
9
+
10
+ Starts continuous speech recognition, calling `onResult` with each transcript update. Returns a stop function, or null if speech recognition is unavailable.
11
+
7
12
  **Signature:**
8
13
 
9
14
  ```typescript