@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,118 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-ai](./foundation-ai.md) > [ChatInteraction](./foundation-ai.chatinteraction.md)
|
|
4
|
+
|
|
5
|
+
## ChatInteraction 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 user interaction component request.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export interface ChatInteraction
|
|
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
|
+
[componentName](./foundation-ai.chatinteraction.componentname.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
|
+
[data](./foundation-ai.chatinteraction.data.md)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
</td><td>
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
</td><td>
|
|
69
|
+
|
|
70
|
+
any
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
</td><td>
|
|
74
|
+
|
|
75
|
+
**_(BETA)_**
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
</td></tr>
|
|
79
|
+
<tr><td>
|
|
80
|
+
|
|
81
|
+
[interactionId](./foundation-ai.chatinteraction.interactionid.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
|
+
<tr><td>
|
|
99
|
+
|
|
100
|
+
[resolved?](./foundation-ai.chatinteraction.resolved.md)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
</td><td>
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
</td><td>
|
|
107
|
+
|
|
108
|
+
boolean
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
</td><td>
|
|
112
|
+
|
|
113
|
+
**_(BETA)_** _(Optional)_ Set to true once the interaction has been resolved. Used to render a read-only state on re-render.
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
</td></tr>
|
|
117
|
+
</tbody></table>
|
|
118
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-ai](./foundation-ai.md) > [ChatInteraction](./foundation-ai.chatinteraction.md) > [resolved](./foundation-ai.chatinteraction.resolved.md)
|
|
4
|
+
|
|
5
|
+
## ChatInteraction.resolved 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
|
+
Set to true once the interaction has been resolved. Used to render a read-only state on re-render.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
resolved?: boolean;
|
|
16
|
+
```
|
|
@@ -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) > [ChatMessage](./foundation-ai.chatmessage.md) > [attachments](./foundation-ai.chatmessage.attachments.md)
|
|
4
|
+
|
|
5
|
+
## ChatMessage.attachments 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
|
+
attachments?: ChatAttachment[];
|
|
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) > [ChatMessage](./foundation-ai.chatmessage.md) > [content](./foundation-ai.chatmessage.content.md)
|
|
4
|
+
|
|
5
|
+
## ChatMessage.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,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) > [ChatMessage](./foundation-ai.chatmessage.md) > [interaction](./foundation-ai.chatmessage.interaction.md)
|
|
4
|
+
|
|
5
|
+
## ChatMessage.interaction 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
|
+
interaction?: ChatInteraction;
|
|
14
|
+
```
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-ai](./foundation-ai.md) > [ChatMessage](./foundation-ai.chatmessage.md)
|
|
4
|
+
|
|
5
|
+
## ChatMessage 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 single message in a chat conversation.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export interface ChatMessage
|
|
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
|
+
[attachments?](./foundation-ai.chatmessage.attachments.md)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td><td>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
</td><td>
|
|
50
|
+
|
|
51
|
+
[ChatAttachment](./foundation-ai.chatattachment.md)<!-- -->\[\]
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
</td><td>
|
|
55
|
+
|
|
56
|
+
**_(BETA)_** _(Optional)_
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
</td></tr>
|
|
60
|
+
<tr><td>
|
|
61
|
+
|
|
62
|
+
[content](./foundation-ai.chatmessage.content.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
|
+
[interaction?](./foundation-ai.chatmessage.interaction.md)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
</td><td>
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
</td><td>
|
|
88
|
+
|
|
89
|
+
[ChatInteraction](./foundation-ai.chatinteraction.md)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
</td><td>
|
|
93
|
+
|
|
94
|
+
**_(BETA)_** _(Optional)_
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
</td></tr>
|
|
98
|
+
<tr><td>
|
|
99
|
+
|
|
100
|
+
[role](./foundation-ai.chatmessage.role.md)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
</td><td>
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
</td><td>
|
|
107
|
+
|
|
108
|
+
[ChatRole](./foundation-ai.chatrole.md)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
</td><td>
|
|
112
|
+
|
|
113
|
+
**_(BETA)_**
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
</td></tr>
|
|
117
|
+
<tr><td>
|
|
118
|
+
|
|
119
|
+
[thinking?](./foundation-ai.chatmessage.thinking.md)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
</td><td>
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
</td><td>
|
|
126
|
+
|
|
127
|
+
boolean
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
</td><td>
|
|
131
|
+
|
|
132
|
+
**_(BETA)_** _(Optional)_
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
</td></tr>
|
|
136
|
+
<tr><td>
|
|
137
|
+
|
|
138
|
+
[toolCalls?](./foundation-ai.chatmessage.toolcalls.md)
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
</td><td>
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
</td><td>
|
|
145
|
+
|
|
146
|
+
[ChatToolCall](./foundation-ai.chattoolcall.md)<!-- -->\[\]
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
</td><td>
|
|
150
|
+
|
|
151
|
+
**_(BETA)_** _(Optional)_
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
</td></tr>
|
|
155
|
+
<tr><td>
|
|
156
|
+
|
|
157
|
+
[toolResult?](./foundation-ai.chatmessage.toolresult.md)
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
</td><td>
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
</td><td>
|
|
164
|
+
|
|
165
|
+
[ChatToolResult](./foundation-ai.chattoolresult.md)
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
</td><td>
|
|
169
|
+
|
|
170
|
+
**_(BETA)_** _(Optional)_
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
</td></tr>
|
|
174
|
+
</tbody></table>
|
|
175
|
+
|
|
@@ -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) > [ChatMessage](./foundation-ai.chatmessage.md) > [role](./foundation-ai.chatmessage.role.md)
|
|
4
|
+
|
|
5
|
+
## ChatMessage.role 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
|
+
role: ChatRole;
|
|
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) > [ChatMessage](./foundation-ai.chatmessage.md) > [thinking](./foundation-ai.chatmessage.thinking.md)
|
|
4
|
+
|
|
5
|
+
## ChatMessage.thinking 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
|
+
thinking?: boolean;
|
|
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) > [ChatMessage](./foundation-ai.chatmessage.md) > [toolCalls](./foundation-ai.chatmessage.toolcalls.md)
|
|
4
|
+
|
|
5
|
+
## ChatMessage.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) > [ChatMessage](./foundation-ai.chatmessage.md) > [toolResult](./foundation-ai.chatmessage.toolresult.md)
|
|
4
|
+
|
|
5
|
+
## ChatMessage.toolResult 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
|
+
toolResult?: ChatToolResult;
|
|
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) > [ChatRequestOptions](./foundation-ai.chatrequestoptions.md) > [attachments](./foundation-ai.chatrequestoptions.attachments.md)
|
|
4
|
+
|
|
5
|
+
## ChatRequestOptions.attachments 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
|
+
attachments?: ChatAttachment[];
|
|
14
|
+
```
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-ai](./foundation-ai.md) > [ChatRequestOptions](./foundation-ai.chatrequestoptions.md)
|
|
4
|
+
|
|
5
|
+
## ChatRequestOptions 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
|
+
Options for a chat request.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export interface ChatRequestOptions
|
|
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
|
+
[attachments?](./foundation-ai.chatrequestoptions.attachments.md)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td><td>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
</td><td>
|
|
50
|
+
|
|
51
|
+
[ChatAttachment](./foundation-ai.chatattachment.md)<!-- -->\[\]
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
</td><td>
|
|
55
|
+
|
|
56
|
+
**_(BETA)_** _(Optional)_
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
</td></tr>
|
|
60
|
+
<tr><td>
|
|
61
|
+
|
|
62
|
+
[signal?](./foundation-ai.chatrequestoptions.signal.md)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
</td><td>
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
</td><td>
|
|
69
|
+
|
|
70
|
+
AbortSignal
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
</td><td>
|
|
74
|
+
|
|
75
|
+
**_(BETA)_** _(Optional)_
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
</td></tr>
|
|
79
|
+
<tr><td>
|
|
80
|
+
|
|
81
|
+
[systemPrompt?](./foundation-ai.chatrequestoptions.systemprompt.md)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
</td><td>
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
</td><td>
|
|
88
|
+
|
|
89
|
+
string
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
</td><td>
|
|
93
|
+
|
|
94
|
+
**_(BETA)_** _(Optional)_
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
</td></tr>
|
|
98
|
+
<tr><td>
|
|
99
|
+
|
|
100
|
+
[tools?](./foundation-ai.chatrequestoptions.tools.md)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
</td><td>
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
</td><td>
|
|
107
|
+
|
|
108
|
+
[ChatToolDefinition](./foundation-ai.chattooldefinition.md)<!-- -->\[\]
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
</td><td>
|
|
112
|
+
|
|
113
|
+
**_(BETA)_** _(Optional)_
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
</td></tr>
|
|
117
|
+
</tbody></table>
|
|
118
|
+
|
|
@@ -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) > [ChatRequestOptions](./foundation-ai.chatrequestoptions.md) > [signal](./foundation-ai.chatrequestoptions.signal.md)
|
|
4
|
+
|
|
5
|
+
## ChatRequestOptions.signal 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
|
+
signal?: AbortSignal;
|
|
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) > [ChatRequestOptions](./foundation-ai.chatrequestoptions.md) > [systemPrompt](./foundation-ai.chatrequestoptions.systemprompt.md)
|
|
4
|
+
|
|
5
|
+
## ChatRequestOptions.systemPrompt 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
|
+
systemPrompt?: 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) > [ChatRequestOptions](./foundation-ai.chatrequestoptions.md) > [tools](./foundation-ai.chatrequestoptions.tools.md)
|
|
4
|
+
|
|
5
|
+
## ChatRequestOptions.tools 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
|
+
tools?: ChatToolDefinition[];
|
|
14
|
+
```
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-ai](./foundation-ai.md) > [ChatRole](./foundation-ai.chatrole.md)
|
|
4
|
+
|
|
5
|
+
## ChatRole 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
|
+
Role of a message in a chat conversation.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export type ChatRole = 'user' | 'assistant' | 'system' | 'tool';
|
|
16
|
+
```
|
|
@@ -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) > [delta](./foundation-ai.chatstreamchunk.delta.md)
|
|
4
|
+
|
|
5
|
+
## ChatStreamChunk.delta 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
|
+
delta: 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) > [ChatStreamChunk](./foundation-ai.chatstreamchunk.md) > [done](./foundation-ai.chatstreamchunk.done.md)
|
|
4
|
+
|
|
5
|
+
## ChatStreamChunk.done 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
|
+
done: boolean;
|
|
14
|
+
```
|