@genesislcap/foundation-ai 14.408.0 → 14.409.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 (120) hide show
  1. package/package.json +11 -11
  2. package/docs/api/foundation-ai.ai_feature_flag.md +0 -13
  3. package/docs/api/foundation-ai.aiconfig.md +0 -18
  4. package/docs/api/foundation-ai.aiprovider.chat.md +0 -85
  5. package/docs/api/foundation-ai.aiprovider.getstatus.md +0 -20
  6. package/docs/api/foundation-ai.aiprovider.interpretcriteria.md +0 -67
  7. package/docs/api/foundation-ai.aiprovider.md +0 -91
  8. package/docs/api/foundation-ai.aiprovider.streamchat.md +0 -85
  9. package/docs/api/foundation-ai.aiprovider.triggerdownload.md +0 -20
  10. package/docs/api/foundation-ai.aiprovidertype.md +0 -16
  11. package/docs/api/foundation-ai.aistatus.chromeavailability.md +0 -14
  12. package/docs/api/foundation-ai.aistatus.md +0 -99
  13. package/docs/api/foundation-ai.aistatus.model.md +0 -14
  14. package/docs/api/foundation-ai.aistatus.provider.md +0 -14
  15. package/docs/api/foundation-ai.chatanimationsconfig.enabled.md +0 -16
  16. package/docs/api/foundation-ai.chatanimationsconfig.md +0 -80
  17. package/docs/api/foundation-ai.chatanimationsconfig.userconfigurable.md +0 -16
  18. package/docs/api/foundation-ai.chatattachment.content.md +0 -14
  19. package/docs/api/foundation-ai.chatattachment.md +0 -99
  20. package/docs/api/foundation-ai.chatattachment.mimetype.md +0 -14
  21. package/docs/api/foundation-ai.chatattachment.name.md +0 -14
  22. package/docs/api/foundation-ai.chatconfig.acceptedfiles.md +0 -16
  23. package/docs/api/foundation-ai.chatconfig.allowdebugdownload.md +0 -16
  24. package/docs/api/foundation-ai.chatconfig.animations.md +0 -16
  25. package/docs/api/foundation-ai.chatconfig.loadingdelay.md +0 -16
  26. package/docs/api/foundation-ai.chatconfig.maxtooliterations.md +0 -16
  27. package/docs/api/foundation-ai.chatconfig.md +0 -177
  28. package/docs/api/foundation-ai.chatconfig.showthinkingsteps.md +0 -16
  29. package/docs/api/foundation-ai.chatconfig.showtoolcalls.md +0 -16
  30. package/docs/api/foundation-ai.chatinteraction.componentname.md +0 -14
  31. package/docs/api/foundation-ai.chatinteraction.data.md +0 -14
  32. package/docs/api/foundation-ai.chatinteraction.interactionid.md +0 -14
  33. package/docs/api/foundation-ai.chatinteraction.md +0 -118
  34. package/docs/api/foundation-ai.chatinteraction.resolved.md +0 -16
  35. package/docs/api/foundation-ai.chatmessage.attachments.md +0 -14
  36. package/docs/api/foundation-ai.chatmessage.content.md +0 -14
  37. package/docs/api/foundation-ai.chatmessage.interaction.md +0 -14
  38. package/docs/api/foundation-ai.chatmessage.md +0 -175
  39. package/docs/api/foundation-ai.chatmessage.role.md +0 -14
  40. package/docs/api/foundation-ai.chatmessage.thinking.md +0 -14
  41. package/docs/api/foundation-ai.chatmessage.toolcalls.md +0 -14
  42. package/docs/api/foundation-ai.chatmessage.toolresult.md +0 -14
  43. package/docs/api/foundation-ai.chatrequestoptions.attachments.md +0 -14
  44. package/docs/api/foundation-ai.chatrequestoptions.md +0 -118
  45. package/docs/api/foundation-ai.chatrequestoptions.signal.md +0 -14
  46. package/docs/api/foundation-ai.chatrequestoptions.systemprompt.md +0 -14
  47. package/docs/api/foundation-ai.chatrequestoptions.tools.md +0 -14
  48. package/docs/api/foundation-ai.chatrole.md +0 -16
  49. package/docs/api/foundation-ai.chatstreamchunk.delta.md +0 -14
  50. package/docs/api/foundation-ai.chatstreamchunk.done.md +0 -14
  51. package/docs/api/foundation-ai.chatstreamchunk.md +0 -99
  52. package/docs/api/foundation-ai.chatstreamchunk.toolcalls.md +0 -14
  53. package/docs/api/foundation-ai.chattoolcall.args.md +0 -14
  54. package/docs/api/foundation-ai.chattoolcall.id.md +0 -14
  55. package/docs/api/foundation-ai.chattoolcall.md +0 -99
  56. package/docs/api/foundation-ai.chattoolcall.name.md +0 -14
  57. package/docs/api/foundation-ai.chattooldefinition.description.md +0 -14
  58. package/docs/api/foundation-ai.chattooldefinition.md +0 -99
  59. package/docs/api/foundation-ai.chattooldefinition.name.md +0 -14
  60. package/docs/api/foundation-ai.chattooldefinition.parameters.md +0 -14
  61. package/docs/api/foundation-ai.chattoolhandlers.md +0 -18
  62. package/docs/api/foundation-ai.chattoolresult.content.md +0 -14
  63. package/docs/api/foundation-ai.chattoolresult.md +0 -80
  64. package/docs/api/foundation-ai.chattoolresult.toolcallid.md +0 -14
  65. package/docs/api/foundation-ai.chattransport.md +0 -58
  66. package/docs/api/foundation-ai.chattransport.sendchatmessage.md +0 -83
  67. package/docs/api/foundation-ai.chattransport.streamchatmessage.md +0 -83
  68. package/docs/api/foundation-ai.chromeaiconfig.md +0 -104
  69. package/docs/api/foundation-ai.chromeaiconfig.providertype.md +0 -14
  70. package/docs/api/foundation-ai.chromeaiconfig.temperature.md +0 -14
  71. package/docs/api/foundation-ai.chromeaiconfig.topk.md +0 -14
  72. package/docs/api/foundation-ai.chromeavailability.md +0 -16
  73. package/docs/api/foundation-ai.createaiprovider.md +0 -57
  74. package/docs/api/foundation-ai.criteriaclauseresult.field.md +0 -14
  75. package/docs/api/foundation-ai.criteriaclauseresult.md +0 -99
  76. package/docs/api/foundation-ai.criteriaclauseresult.operator.md +0 -14
  77. package/docs/api/foundation-ai.criteriaclauseresult.value.md +0 -14
  78. package/docs/api/foundation-ai.criteriagroupresult.clauses.md +0 -14
  79. package/docs/api/foundation-ai.criteriagroupresult.logic.md +0 -14
  80. package/docs/api/foundation-ai.criteriagroupresult.md +0 -99
  81. package/docs/api/foundation-ai.criteriagroupresult.negated.md +0 -14
  82. package/docs/api/foundation-ai.criteriainterpretationresult.groups.md +0 -14
  83. package/docs/api/foundation-ai.criteriainterpretationresult.md +0 -61
  84. package/docs/api/foundation-ai.criteriainterpretcontext.fields.md +0 -14
  85. package/docs/api/foundation-ai.criteriainterpretcontext.md +0 -61
  86. package/docs/api/foundation-ai.fieldlike.md +0 -21
  87. package/docs/api/foundation-ai.geminiaiconfig.apikey.md +0 -14
  88. package/docs/api/foundation-ai.geminiaiconfig.md +0 -123
  89. package/docs/api/foundation-ai.geminiaiconfig.model.md +0 -14
  90. package/docs/api/foundation-ai.geminiaiconfig.providertype.md +0 -14
  91. package/docs/api/foundation-ai.geminiaiconfig.serverendpoint.md +0 -14
  92. package/docs/api/foundation-ai.geminiprovider._constructor_.md +0 -65
  93. package/docs/api/foundation-ai.geminiprovider.chat.md +0 -83
  94. package/docs/api/foundation-ai.geminiprovider.getstatus.md +0 -18
  95. package/docs/api/foundation-ai.geminiprovider.interpretcriteria.md +0 -67
  96. package/docs/api/foundation-ai.geminiprovider.md +0 -128
  97. package/docs/api/foundation-ai.geminiprovider.streamchat.md +0 -83
  98. package/docs/api/foundation-ai.geminitransport._constructor_.md +0 -53
  99. package/docs/api/foundation-ai.geminitransport.getconfig.md +0 -21
  100. package/docs/api/foundation-ai.geminitransport.md +0 -116
  101. package/docs/api/foundation-ai.geminitransport.sendchatmessage.md +0 -83
  102. package/docs/api/foundation-ai.geminitransport.sendstructuredprompt.md +0 -53
  103. package/docs/api/foundation-ai.getaiprovider.md +0 -35
  104. package/docs/api/foundation-ai.interactionresult.md +0 -20
  105. package/docs/api/foundation-ai.isaifeatureenabled.md +0 -17
  106. package/docs/api/foundation-ai.isspeechrecognitionavailable.md +0 -20
  107. package/docs/api/foundation-ai.malformedfunctioncallerror._constructor_.md +0 -53
  108. package/docs/api/foundation-ai.malformedfunctioncallerror.finishmessage.md +0 -14
  109. package/docs/api/foundation-ai.malformedfunctioncallerror.md +0 -98
  110. package/docs/api/foundation-ai.md +0 -503
  111. package/docs/api/foundation-ai.resolveaiconfig.md +0 -57
  112. package/docs/api/foundation-ai.resolveaiconfigoptions.md +0 -99
  113. package/docs/api/foundation-ai.resolveaiconfigoptions.model.md +0 -16
  114. package/docs/api/foundation-ai.resolveaiconfigoptions.preferchrome.md +0 -16
  115. package/docs/api/foundation-ai.resolveaiconfigoptions.provider.md +0 -16
  116. package/docs/api/foundation-ai.serveraiconfig.md +0 -66
  117. package/docs/api/foundation-ai.serveraiconfig.provider.md +0 -14
  118. package/docs/api/foundation-ai.startspeechrecognition.md +0 -71
  119. package/docs/api/index.md +0 -30
  120. package/docs/api-report.md.api.md +0 -317
@@ -1,53 +0,0 @@
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; [GeminiTransport](./foundation-ai.geminitransport.md) &gt; [(constructor)](./foundation-ai.geminitransport._constructor_.md)
4
-
5
- ## GeminiTransport.(constructor)
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
- Constructs a new instance of the `GeminiTransport` class
11
-
12
- **Signature:**
13
-
14
- ```typescript
15
- constructor(config?: GeminiTransportConfig);
16
- ```
17
-
18
- ## Parameters
19
-
20
- <table><thead><tr><th>
21
-
22
- Parameter
23
-
24
-
25
- </th><th>
26
-
27
- Type
28
-
29
-
30
- </th><th>
31
-
32
- Description
33
-
34
-
35
- </th></tr></thead>
36
- <tbody><tr><td>
37
-
38
- config
39
-
40
-
41
- </td><td>
42
-
43
- GeminiTransportConfig
44
-
45
-
46
- </td><td>
47
-
48
- _(Optional)_
49
-
50
-
51
- </td></tr>
52
- </tbody></table>
53
-
@@ -1,21 +0,0 @@
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; [GeminiTransport](./foundation-ai.geminitransport.md) &gt; [getConfig](./foundation-ai.geminitransport.getconfig.md)
4
-
5
- ## GeminiTransport.getConfig() method
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
- **Signature:**
11
-
12
- ```typescript
13
- getConfig(): {
14
- provider: 'gemini';
15
- model: string;
16
- };
17
- ```
18
- **Returns:**
19
-
20
- { provider: 'gemini'; model: string; }
21
-
@@ -1,116 +0,0 @@
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; [GeminiTransport](./foundation-ai.geminitransport.md)
4
-
5
- ## GeminiTransport 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
- 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).
11
-
12
- Implements `AITransport` (structured prompt) and `ChatTransport` (multi-turn chat).
13
-
14
- **Signature:**
15
-
16
- ```typescript
17
- export declare class GeminiTransport implements AITransport, ChatTransport
18
- ```
19
- **Implements:** AITransport, [ChatTransport](./foundation-ai.chattransport.md)
20
-
21
- ## Constructors
22
-
23
- <table><thead><tr><th>
24
-
25
- Constructor
26
-
27
-
28
- </th><th>
29
-
30
- Modifiers
31
-
32
-
33
- </th><th>
34
-
35
- Description
36
-
37
-
38
- </th></tr></thead>
39
- <tbody><tr><td>
40
-
41
- [(constructor)(config)](./foundation-ai.geminitransport._constructor_.md)
42
-
43
-
44
- </td><td>
45
-
46
-
47
- </td><td>
48
-
49
- **_(BETA)_** Constructs a new instance of the `GeminiTransport` class
50
-
51
-
52
- </td></tr>
53
- </tbody></table>
54
-
55
- ## Methods
56
-
57
- <table><thead><tr><th>
58
-
59
- Method
60
-
61
-
62
- </th><th>
63
-
64
- Modifiers
65
-
66
-
67
- </th><th>
68
-
69
- Description
70
-
71
-
72
- </th></tr></thead>
73
- <tbody><tr><td>
74
-
75
- [getConfig()](./foundation-ai.geminitransport.getconfig.md)
76
-
77
-
78
- </td><td>
79
-
80
-
81
- </td><td>
82
-
83
- **_(BETA)_**
84
-
85
-
86
- </td></tr>
87
- <tr><td>
88
-
89
- [sendChatMessage(history, userMessage, options)](./foundation-ai.geminitransport.sendchatmessage.md)
90
-
91
-
92
- </td><td>
93
-
94
-
95
- </td><td>
96
-
97
- **_(BETA)_**
98
-
99
-
100
- </td></tr>
101
- <tr><td>
102
-
103
- [sendStructuredPrompt(options)](./foundation-ai.geminitransport.sendstructuredprompt.md)
104
-
105
-
106
- </td><td>
107
-
108
-
109
- </td><td>
110
-
111
- **_(BETA)_**
112
-
113
-
114
- </td></tr>
115
- </tbody></table>
116
-
@@ -1,83 +0,0 @@
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; [GeminiTransport](./foundation-ai.geminitransport.md) &gt; [sendChatMessage](./foundation-ai.geminitransport.sendchatmessage.md)
4
-
5
- ## GeminiTransport.sendChatMessage() method
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
- **Signature:**
11
-
12
- ```typescript
13
- sendChatMessage(history: ChatMessage[], userMessage: string, options?: ChatRequestOptions): Promise<ChatMessage>;
14
- ```
15
-
16
- ## Parameters
17
-
18
- <table><thead><tr><th>
19
-
20
- Parameter
21
-
22
-
23
- </th><th>
24
-
25
- Type
26
-
27
-
28
- </th><th>
29
-
30
- Description
31
-
32
-
33
- </th></tr></thead>
34
- <tbody><tr><td>
35
-
36
- history
37
-
38
-
39
- </td><td>
40
-
41
- [ChatMessage](./foundation-ai.chatmessage.md)<!-- -->\[\]
42
-
43
-
44
- </td><td>
45
-
46
-
47
- </td></tr>
48
- <tr><td>
49
-
50
- userMessage
51
-
52
-
53
- </td><td>
54
-
55
- string
56
-
57
-
58
- </td><td>
59
-
60
-
61
- </td></tr>
62
- <tr><td>
63
-
64
- options
65
-
66
-
67
- </td><td>
68
-
69
- [ChatRequestOptions](./foundation-ai.chatrequestoptions.md)
70
-
71
-
72
- </td><td>
73
-
74
- _(Optional)_
75
-
76
-
77
- </td></tr>
78
- </tbody></table>
79
-
80
- **Returns:**
81
-
82
- Promise&lt;[ChatMessage](./foundation-ai.chatmessage.md)<!-- -->&gt;
83
-
@@ -1,53 +0,0 @@
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; [GeminiTransport](./foundation-ai.geminitransport.md) &gt; [sendStructuredPrompt](./foundation-ai.geminitransport.sendstructuredprompt.md)
4
-
5
- ## GeminiTransport.sendStructuredPrompt() method
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
- **Signature:**
11
-
12
- ```typescript
13
- sendStructuredPrompt(options: StructuredPromptOptions): Promise<string>;
14
- ```
15
-
16
- ## Parameters
17
-
18
- <table><thead><tr><th>
19
-
20
- Parameter
21
-
22
-
23
- </th><th>
24
-
25
- Type
26
-
27
-
28
- </th><th>
29
-
30
- Description
31
-
32
-
33
- </th></tr></thead>
34
- <tbody><tr><td>
35
-
36
- options
37
-
38
-
39
- </td><td>
40
-
41
- StructuredPromptOptions
42
-
43
-
44
- </td><td>
45
-
46
-
47
- </td></tr>
48
- </tbody></table>
49
-
50
- **Returns:**
51
-
52
- Promise&lt;string&gt;
53
-
@@ -1,35 +0,0 @@
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; [getAIProvider](./foundation-ai.getaiprovider.md)
4
-
5
- ## getAIProvider() function
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
- Gets AIProvider from the DI container. When the AI feature flag is disabled (?feature.ai), returns DefaultAIProvider (no-op).
11
-
12
- **Signature:**
13
-
14
- ```typescript
15
- export declare function getAIProvider(): AIProvider;
16
- ```
17
- **Returns:**
18
-
19
- [AIProvider](./foundation-ai.aiprovider.md)
20
-
21
- ## Remarks
22
-
23
- A utility method for host applications that are not using decorators or the DI container.
24
-
25
- ## Example
26
-
27
-
28
- ```ts
29
- import { getAIProvider } from '@genesislcap/foundation-ai';
30
- ...
31
- private aiProvider = getAIProvider();
32
- ...
33
- const result = await this.aiProvider.interpretCriteria?.(input, context);
34
- ```
35
-
@@ -1,20 +0,0 @@
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; [InteractionResult](./foundation-ai.interactionresult.md)
4
-
5
- ## InteractionResult type
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
- The result of a user interaction component.
11
-
12
- **Signature:**
13
-
14
- ```typescript
15
- export type InteractionResult<T = unknown> = {
16
- status: 'approved' | 'rejected';
17
- payload?: T;
18
- message?: string;
19
- };
20
- ```
@@ -1,17 +0,0 @@
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; [isAIFeatureEnabled](./foundation-ai.isaifeatureenabled.md)
4
-
5
- ## isAIFeatureEnabled() function
6
-
7
- Returns true when AI features (beta) are enabled. Requires ?feature.ai in URL.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- isAIFeatureEnabled: () => boolean
13
- ```
14
- **Returns:**
15
-
16
- boolean
17
-
@@ -1,20 +0,0 @@
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; [isSpeechRecognitionAvailable](./foundation-ai.isspeechrecognitionavailable.md)
4
-
5
- ## isSpeechRecognitionAvailable() function
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
- Returns true if the Web Speech API is available in the current environment.
11
-
12
- **Signature:**
13
-
14
- ```typescript
15
- export declare function isSpeechRecognitionAvailable(): boolean;
16
- ```
17
- **Returns:**
18
-
19
- boolean
20
-
@@ -1,53 +0,0 @@
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) &gt; [(constructor)](./foundation-ai.malformedfunctioncallerror._constructor_.md)
4
-
5
- ## MalformedFunctionCallError.(constructor)
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
- Constructs a new instance of the `MalformedFunctionCallError` class
11
-
12
- **Signature:**
13
-
14
- ```typescript
15
- constructor(finishMessage?: string);
16
- ```
17
-
18
- ## Parameters
19
-
20
- <table><thead><tr><th>
21
-
22
- Parameter
23
-
24
-
25
- </th><th>
26
-
27
- Type
28
-
29
-
30
- </th><th>
31
-
32
- Description
33
-
34
-
35
- </th></tr></thead>
36
- <tbody><tr><td>
37
-
38
- finishMessage
39
-
40
-
41
- </td><td>
42
-
43
- string
44
-
45
-
46
- </td><td>
47
-
48
- _(Optional)_
49
-
50
-
51
- </td></tr>
52
- </tbody></table>
53
-
@@ -1,14 +0,0 @@
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) &gt; [finishMessage](./foundation-ai.malformedfunctioncallerror.finishmessage.md)
4
-
5
- ## MalformedFunctionCallError.finishMessage property
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
- **Signature:**
11
-
12
- ```typescript
13
- readonly finishMessage?: string;
14
- ```
@@ -1,98 +0,0 @@
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
-