@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.
- package/dist/dts/ai-provider.d.ts +18 -2
- package/dist/dts/ai-provider.d.ts.map +1 -1
- package/dist/dts/index.d.ts +5 -1
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/interactions/criteria-interpretation.d.ts +11 -0
- package/dist/dts/interactions/criteria-interpretation.d.ts.map +1 -1
- package/dist/dts/providers/gemini-provider.d.ts +25 -0
- package/dist/dts/providers/gemini-provider.d.ts.map +1 -0
- package/dist/dts/transports/gemini-transport.d.ts +66 -0
- package/dist/dts/transports/gemini-transport.d.ts.map +1 -0
- package/dist/dts/types/chat-transport.types.d.ts +16 -0
- package/dist/dts/types/chat-transport.types.d.ts.map +1 -0
- package/dist/dts/types/chat.types.d.ts +157 -0
- package/dist/dts/types/chat.types.d.ts.map +1 -0
- package/dist/dts/types/config.types.d.ts +16 -2
- package/dist/dts/types/config.types.d.ts.map +1 -1
- package/dist/dts/types/criteria-types.d.ts +10 -0
- package/dist/dts/types/criteria-types.d.ts.map +1 -1
- package/dist/dts/types/index.d.ts +2 -0
- package/dist/dts/types/index.d.ts.map +1 -1
- package/dist/dts/utils/speech-to-text.d.ts +11 -0
- package/dist/dts/utils/speech-to-text.d.ts.map +1 -1
- package/dist/esm/ai-provider.js +18 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/providers/gemini-provider.js +59 -0
- package/dist/esm/transports/gemini-transport.js +249 -0
- package/dist/esm/types/chat-transport.types.js +1 -0
- package/dist/esm/types/chat.types.js +1 -0
- package/dist/esm/types/index.js +2 -0
- package/dist/esm/utils/speech-to-text.js +11 -0
- package/dist/foundation-ai.api.json +2937 -240
- package/dist/foundation-ai.d.ts +357 -4
- package/docs/api/foundation-ai.aiconfig.md +2 -2
- package/docs/api/foundation-ai.aiprovider.chat.md +85 -0
- package/docs/api/foundation-ai.aiprovider.md +22 -0
- package/docs/api/foundation-ai.aiprovider.streamchat.md +85 -0
- package/docs/api/foundation-ai.aiprovidertype.md +1 -1
- package/docs/api/foundation-ai.chatanimationsconfig.enabled.md +16 -0
- package/docs/api/foundation-ai.chatanimationsconfig.md +80 -0
- package/docs/api/foundation-ai.chatanimationsconfig.userconfigurable.md +16 -0
- package/docs/api/foundation-ai.chatattachment.content.md +14 -0
- package/docs/api/foundation-ai.chatattachment.md +99 -0
- package/docs/api/foundation-ai.chatattachment.mimetype.md +14 -0
- package/docs/api/foundation-ai.chatattachment.name.md +14 -0
- package/docs/api/foundation-ai.chatconfig.acceptedfiles.md +16 -0
- package/docs/api/foundation-ai.chatconfig.allowdebugdownload.md +16 -0
- package/docs/api/foundation-ai.chatconfig.animations.md +16 -0
- package/docs/api/foundation-ai.chatconfig.loadingdelay.md +16 -0
- package/docs/api/foundation-ai.chatconfig.maxtooliterations.md +16 -0
- package/docs/api/foundation-ai.chatconfig.md +177 -0
- package/docs/api/foundation-ai.chatconfig.showthinkingsteps.md +16 -0
- package/docs/api/foundation-ai.chatconfig.showtoolcalls.md +16 -0
- package/docs/api/foundation-ai.chatinteraction.componentname.md +14 -0
- package/docs/api/foundation-ai.chatinteraction.data.md +14 -0
- package/docs/api/foundation-ai.chatinteraction.interactionid.md +14 -0
- package/docs/api/foundation-ai.chatinteraction.md +118 -0
- package/docs/api/foundation-ai.chatinteraction.resolved.md +16 -0
- package/docs/api/foundation-ai.chatmessage.attachments.md +14 -0
- package/docs/api/foundation-ai.chatmessage.content.md +14 -0
- package/docs/api/foundation-ai.chatmessage.interaction.md +14 -0
- package/docs/api/foundation-ai.chatmessage.md +175 -0
- package/docs/api/foundation-ai.chatmessage.role.md +14 -0
- package/docs/api/foundation-ai.chatmessage.thinking.md +14 -0
- package/docs/api/foundation-ai.chatmessage.toolcalls.md +14 -0
- package/docs/api/foundation-ai.chatmessage.toolresult.md +14 -0
- package/docs/api/foundation-ai.chatrequestoptions.attachments.md +14 -0
- package/docs/api/foundation-ai.chatrequestoptions.md +118 -0
- package/docs/api/foundation-ai.chatrequestoptions.signal.md +14 -0
- package/docs/api/foundation-ai.chatrequestoptions.systemprompt.md +14 -0
- package/docs/api/foundation-ai.chatrequestoptions.tools.md +14 -0
- package/docs/api/foundation-ai.chatrole.md +16 -0
- package/docs/api/foundation-ai.chatstreamchunk.delta.md +14 -0
- package/docs/api/foundation-ai.chatstreamchunk.done.md +14 -0
- package/docs/api/foundation-ai.chatstreamchunk.md +99 -0
- package/docs/api/foundation-ai.chatstreamchunk.toolcalls.md +14 -0
- package/docs/api/foundation-ai.chattoolcall.args.md +14 -0
- package/docs/api/foundation-ai.chattoolcall.id.md +14 -0
- package/docs/api/foundation-ai.chattoolcall.md +99 -0
- package/docs/api/foundation-ai.chattoolcall.name.md +14 -0
- package/docs/api/foundation-ai.chattooldefinition.description.md +14 -0
- package/docs/api/foundation-ai.chattooldefinition.md +99 -0
- package/docs/api/foundation-ai.chattooldefinition.name.md +14 -0
- package/docs/api/foundation-ai.chattooldefinition.parameters.md +14 -0
- package/docs/api/foundation-ai.chattoolhandlers.md +18 -0
- package/docs/api/foundation-ai.chattoolresult.content.md +14 -0
- package/docs/api/foundation-ai.chattoolresult.md +80 -0
- package/docs/api/foundation-ai.chattoolresult.toolcallid.md +14 -0
- package/docs/api/foundation-ai.chattransport.md +58 -0
- package/docs/api/foundation-ai.chattransport.sendchatmessage.md +83 -0
- package/docs/api/foundation-ai.chattransport.streamchatmessage.md +83 -0
- package/docs/api/foundation-ai.criteriagroupresult.clauses.md +3 -0
- package/docs/api/foundation-ai.criteriagroupresult.logic.md +3 -0
- package/docs/api/foundation-ai.criteriagroupresult.md +10 -1
- package/docs/api/foundation-ai.criteriagroupresult.negated.md +3 -0
- package/docs/api/foundation-ai.criteriainterpretationresult.groups.md +3 -0
- package/docs/api/foundation-ai.criteriainterpretationresult.md +7 -0
- package/docs/api/foundation-ai.criteriainterpretcontext.fields.md +3 -0
- package/docs/api/foundation-ai.criteriainterpretcontext.md +6 -1
- package/docs/api/foundation-ai.fieldlike.md +5 -0
- package/docs/api/foundation-ai.geminiaiconfig.apikey.md +14 -0
- package/docs/api/foundation-ai.geminiaiconfig.md +123 -0
- package/docs/api/foundation-ai.geminiaiconfig.model.md +14 -0
- package/docs/api/foundation-ai.geminiaiconfig.providertype.md +14 -0
- package/docs/api/foundation-ai.geminiaiconfig.serverendpoint.md +14 -0
- package/docs/api/foundation-ai.geminiprovider._constructor_.md +65 -0
- package/docs/api/foundation-ai.geminiprovider.chat.md +83 -0
- package/docs/api/foundation-ai.geminiprovider.getstatus.md +18 -0
- package/docs/api/foundation-ai.geminiprovider.interpretcriteria.md +67 -0
- package/docs/api/foundation-ai.geminiprovider.md +128 -0
- package/docs/api/foundation-ai.geminiprovider.streamchat.md +83 -0
- package/docs/api/foundation-ai.geminitransport._constructor_.md +53 -0
- package/docs/api/foundation-ai.geminitransport.getconfig.md +21 -0
- package/docs/api/foundation-ai.geminitransport.md +116 -0
- package/docs/api/foundation-ai.geminitransport.sendchatmessage.md +83 -0
- package/docs/api/foundation-ai.geminitransport.sendstructuredprompt.md +53 -0
- package/docs/api/foundation-ai.interactionresult.md +20 -0
- package/docs/api/foundation-ai.isspeechrecognitionavailable.md +1 -1
- package/docs/api/foundation-ai.malformedfunctioncallerror._constructor_.md +53 -0
- package/docs/api/foundation-ai.malformedfunctioncallerror.finishmessage.md +14 -0
- package/docs/api/foundation-ai.malformedfunctioncallerror.md +98 -0
- package/docs/api/foundation-ai.md +230 -1
- package/docs/api/foundation-ai.resolveaiconfigoptions.md +9 -4
- package/docs/api/foundation-ai.resolveaiconfigoptions.model.md +3 -0
- package/docs/api/foundation-ai.resolveaiconfigoptions.preferchrome.md +3 -0
- package/docs/api/foundation-ai.resolveaiconfigoptions.provider.md +5 -2
- package/docs/api/foundation-ai.startspeechrecognition.md +5 -0
- package/docs/api-report.md.api.md +192 -11
- package/package.json +11 -11
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-ai](./foundation-ai.md) > [ChatStreamChunk](./foundation-ai.chatstreamchunk.md)
|
|
4
|
+
|
|
5
|
+
## ChatStreamChunk interface
|
|
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
|
+
A streaming chunk from a chat response.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export interface ChatStreamChunk
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Properties
|
|
19
|
+
|
|
20
|
+
<table><thead><tr><th>
|
|
21
|
+
|
|
22
|
+
Property
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
</th><th>
|
|
26
|
+
|
|
27
|
+
Modifiers
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
</th><th>
|
|
31
|
+
|
|
32
|
+
Type
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
</th><th>
|
|
36
|
+
|
|
37
|
+
Description
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
</th></tr></thead>
|
|
41
|
+
<tbody><tr><td>
|
|
42
|
+
|
|
43
|
+
[delta](./foundation-ai.chatstreamchunk.delta.md)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td><td>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
</td><td>
|
|
50
|
+
|
|
51
|
+
string
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
</td><td>
|
|
55
|
+
|
|
56
|
+
**_(BETA)_**
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
</td></tr>
|
|
60
|
+
<tr><td>
|
|
61
|
+
|
|
62
|
+
[done](./foundation-ai.chatstreamchunk.done.md)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
</td><td>
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
</td><td>
|
|
69
|
+
|
|
70
|
+
boolean
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
</td><td>
|
|
74
|
+
|
|
75
|
+
**_(BETA)_**
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
</td></tr>
|
|
79
|
+
<tr><td>
|
|
80
|
+
|
|
81
|
+
[toolCalls?](./foundation-ai.chatstreamchunk.toolcalls.md)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
</td><td>
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
</td><td>
|
|
88
|
+
|
|
89
|
+
[ChatToolCall](./foundation-ai.chattoolcall.md)<!-- -->\[\]
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
</td><td>
|
|
93
|
+
|
|
94
|
+
**_(BETA)_** _(Optional)_
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
</td></tr>
|
|
98
|
+
</tbody></table>
|
|
99
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-ai](./foundation-ai.md) > [ChatStreamChunk](./foundation-ai.chatstreamchunk.md) > [toolCalls](./foundation-ai.chatstreamchunk.toolcalls.md)
|
|
4
|
+
|
|
5
|
+
## ChatStreamChunk.toolCalls 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
|
+
toolCalls?: ChatToolCall[];
|
|
14
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-ai](./foundation-ai.md) > [ChatToolCall](./foundation-ai.chattoolcall.md) > [args](./foundation-ai.chattoolcall.args.md)
|
|
4
|
+
|
|
5
|
+
## ChatToolCall.args 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
|
+
args: Record<string, unknown>;
|
|
14
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-ai](./foundation-ai.md) > [ChatToolCall](./foundation-ai.chattoolcall.md) > [id](./foundation-ai.chattoolcall.id.md)
|
|
4
|
+
|
|
5
|
+
## ChatToolCall.id 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
|
+
id: string;
|
|
14
|
+
```
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-ai](./foundation-ai.md) > [ChatToolCall](./foundation-ai.chattoolcall.md)
|
|
4
|
+
|
|
5
|
+
## ChatToolCall interface
|
|
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
|
+
A tool call requested by the assistant.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export interface ChatToolCall
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Properties
|
|
19
|
+
|
|
20
|
+
<table><thead><tr><th>
|
|
21
|
+
|
|
22
|
+
Property
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
</th><th>
|
|
26
|
+
|
|
27
|
+
Modifiers
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
</th><th>
|
|
31
|
+
|
|
32
|
+
Type
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
</th><th>
|
|
36
|
+
|
|
37
|
+
Description
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
</th></tr></thead>
|
|
41
|
+
<tbody><tr><td>
|
|
42
|
+
|
|
43
|
+
[args](./foundation-ai.chattoolcall.args.md)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td><td>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
</td><td>
|
|
50
|
+
|
|
51
|
+
Record<string, unknown>
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
</td><td>
|
|
55
|
+
|
|
56
|
+
**_(BETA)_**
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
</td></tr>
|
|
60
|
+
<tr><td>
|
|
61
|
+
|
|
62
|
+
[id](./foundation-ai.chattoolcall.id.md)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
</td><td>
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
</td><td>
|
|
69
|
+
|
|
70
|
+
string
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
</td><td>
|
|
74
|
+
|
|
75
|
+
**_(BETA)_**
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
</td></tr>
|
|
79
|
+
<tr><td>
|
|
80
|
+
|
|
81
|
+
[name](./foundation-ai.chattoolcall.name.md)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
</td><td>
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
</td><td>
|
|
88
|
+
|
|
89
|
+
string
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
</td><td>
|
|
93
|
+
|
|
94
|
+
**_(BETA)_**
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
</td></tr>
|
|
98
|
+
</tbody></table>
|
|
99
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-ai](./foundation-ai.md) > [ChatToolCall](./foundation-ai.chattoolcall.md) > [name](./foundation-ai.chattoolcall.name.md)
|
|
4
|
+
|
|
5
|
+
## ChatToolCall.name 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
|
+
name: string;
|
|
14
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-ai](./foundation-ai.md) > [ChatToolDefinition](./foundation-ai.chattooldefinition.md) > [description](./foundation-ai.chattooldefinition.description.md)
|
|
4
|
+
|
|
5
|
+
## ChatToolDefinition.description 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
|
+
description: string;
|
|
14
|
+
```
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-ai](./foundation-ai.md) > [ChatToolDefinition](./foundation-ai.chattooldefinition.md)
|
|
4
|
+
|
|
5
|
+
## ChatToolDefinition interface
|
|
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
|
+
JSON Schema-based tool definition for function calling.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export interface ChatToolDefinition
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Properties
|
|
19
|
+
|
|
20
|
+
<table><thead><tr><th>
|
|
21
|
+
|
|
22
|
+
Property
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
</th><th>
|
|
26
|
+
|
|
27
|
+
Modifiers
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
</th><th>
|
|
31
|
+
|
|
32
|
+
Type
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
</th><th>
|
|
36
|
+
|
|
37
|
+
Description
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
</th></tr></thead>
|
|
41
|
+
<tbody><tr><td>
|
|
42
|
+
|
|
43
|
+
[description](./foundation-ai.chattooldefinition.description.md)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td><td>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
</td><td>
|
|
50
|
+
|
|
51
|
+
string
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
</td><td>
|
|
55
|
+
|
|
56
|
+
**_(BETA)_**
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
</td></tr>
|
|
60
|
+
<tr><td>
|
|
61
|
+
|
|
62
|
+
[name](./foundation-ai.chattooldefinition.name.md)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
</td><td>
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
</td><td>
|
|
69
|
+
|
|
70
|
+
string
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
</td><td>
|
|
74
|
+
|
|
75
|
+
**_(BETA)_**
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
</td></tr>
|
|
79
|
+
<tr><td>
|
|
80
|
+
|
|
81
|
+
[parameters](./foundation-ai.chattooldefinition.parameters.md)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
</td><td>
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
</td><td>
|
|
88
|
+
|
|
89
|
+
Record<string, unknown>
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
</td><td>
|
|
93
|
+
|
|
94
|
+
**_(BETA)_**
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
</td></tr>
|
|
98
|
+
</tbody></table>
|
|
99
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-ai](./foundation-ai.md) > [ChatToolDefinition](./foundation-ai.chattooldefinition.md) > [name](./foundation-ai.chattooldefinition.name.md)
|
|
4
|
+
|
|
5
|
+
## ChatToolDefinition.name 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
|
+
name: string;
|
|
14
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-ai](./foundation-ai.md) > [ChatToolDefinition](./foundation-ai.chattooldefinition.md) > [parameters](./foundation-ai.chattooldefinition.parameters.md)
|
|
4
|
+
|
|
5
|
+
## ChatToolDefinition.parameters 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
|
+
parameters: Record<string, unknown>;
|
|
14
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-ai](./foundation-ai.md) > [ChatToolHandlers](./foundation-ai.chattoolhandlers.md)
|
|
4
|
+
|
|
5
|
+
## ChatToolHandlers 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
|
+
Map of tool name to async handler function.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export type ChatToolHandlers = Record<string, (args: Record<string, unknown>, context: {
|
|
16
|
+
requestInteraction: <T = unknown>(componentName: string, data: any) => Promise<T>;
|
|
17
|
+
}) => Promise<unknown>>;
|
|
18
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-ai](./foundation-ai.md) > [ChatToolResult](./foundation-ai.chattoolresult.md) > [content](./foundation-ai.chattoolresult.content.md)
|
|
4
|
+
|
|
5
|
+
## ChatToolResult.content 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
|
+
content: string;
|
|
14
|
+
```
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-ai](./foundation-ai.md) > [ChatToolResult](./foundation-ai.chattoolresult.md)
|
|
4
|
+
|
|
5
|
+
## ChatToolResult interface
|
|
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 executing a tool call.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export interface ChatToolResult
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Properties
|
|
19
|
+
|
|
20
|
+
<table><thead><tr><th>
|
|
21
|
+
|
|
22
|
+
Property
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
</th><th>
|
|
26
|
+
|
|
27
|
+
Modifiers
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
</th><th>
|
|
31
|
+
|
|
32
|
+
Type
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
</th><th>
|
|
36
|
+
|
|
37
|
+
Description
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
</th></tr></thead>
|
|
41
|
+
<tbody><tr><td>
|
|
42
|
+
|
|
43
|
+
[content](./foundation-ai.chattoolresult.content.md)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td><td>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
</td><td>
|
|
50
|
+
|
|
51
|
+
string
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
</td><td>
|
|
55
|
+
|
|
56
|
+
**_(BETA)_**
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
</td></tr>
|
|
60
|
+
<tr><td>
|
|
61
|
+
|
|
62
|
+
[toolCallId](./foundation-ai.chattoolresult.toolcallid.md)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
</td><td>
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
</td><td>
|
|
69
|
+
|
|
70
|
+
string
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
</td><td>
|
|
74
|
+
|
|
75
|
+
**_(BETA)_**
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
</td></tr>
|
|
79
|
+
</tbody></table>
|
|
80
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-ai](./foundation-ai.md) > [ChatToolResult](./foundation-ai.chattoolresult.md) > [toolCallId](./foundation-ai.chattoolresult.toolcallid.md)
|
|
4
|
+
|
|
5
|
+
## ChatToolResult.toolCallId 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
|
+
toolCallId: string;
|
|
14
|
+
```
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-ai](./foundation-ai.md) > [ChatTransport](./foundation-ai.chattransport.md)
|
|
4
|
+
|
|
5
|
+
## ChatTransport interface
|
|
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 interface for chat-capable AI providers.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export interface ChatTransport
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Remarks
|
|
19
|
+
|
|
20
|
+
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.
|
|
21
|
+
|
|
22
|
+
## Methods
|
|
23
|
+
|
|
24
|
+
<table><thead><tr><th>
|
|
25
|
+
|
|
26
|
+
Method
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
</th><th>
|
|
30
|
+
|
|
31
|
+
Description
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
</th></tr></thead>
|
|
35
|
+
<tbody><tr><td>
|
|
36
|
+
|
|
37
|
+
[sendChatMessage(history, userMessage, options)](./foundation-ai.chattransport.sendchatmessage.md)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
</td><td>
|
|
41
|
+
|
|
42
|
+
**_(BETA)_**
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
</td></tr>
|
|
46
|
+
<tr><td>
|
|
47
|
+
|
|
48
|
+
[streamChatMessage(history, userMessage, options)?](./foundation-ai.chattransport.streamchatmessage.md)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
</td><td>
|
|
52
|
+
|
|
53
|
+
**_(BETA)_** _(Optional)_
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
</td></tr>
|
|
57
|
+
</tbody></table>
|
|
58
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-ai](./foundation-ai.md) > [ChatTransport](./foundation-ai.chattransport.md) > [sendChatMessage](./foundation-ai.chattransport.sendchatmessage.md)
|
|
4
|
+
|
|
5
|
+
## ChatTransport.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<[ChatMessage](./foundation-ai.chatmessage.md)<!-- -->>
|
|
83
|
+
|