@isdk/ai-tool 0.1.1 → 0.1.2
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/chunk-COXUI4Q3.mjs +1 -0
- package/dist/funcs.js +1 -1
- package/dist/funcs.mjs +1 -1
- package/dist/index.d.mts +29 -28
- package/dist/index.d.ts +29 -28
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/test/util.mjs +1 -1
- package/docs/classes/AbortError.md +8 -8
- package/docs/classes/AlreadyExistsError.md +8 -8
- package/docs/classes/BaseError.md +8 -8
- package/docs/classes/CancelableAbility.md +20 -20
- package/docs/classes/ClientTools.md +74 -74
- package/docs/classes/CommonError.md +8 -8
- package/docs/classes/ConfigFile.md +19 -19
- package/docs/classes/EventClient.md +96 -96
- package/docs/classes/EventServer.md +97 -97
- package/docs/classes/EventToolFunc.md +65 -65
- package/docs/classes/FStringPromptTemplate.md +47 -47
- package/docs/classes/FewShotPromptTemplate.md +51 -51
- package/docs/classes/GolangPromptTemplate.md +47 -47
- package/docs/classes/HFEnvironment.md +9 -9
- package/docs/classes/HFInterpreter.md +19 -19
- package/docs/classes/HFTemplate.md +4 -4
- package/docs/classes/HfPromptTemplate.md +47 -47
- package/docs/classes/IntSet.md +12 -12
- package/docs/classes/NotFoundError.md +8 -8
- package/docs/classes/NotImplementationError.md +8 -8
- package/docs/classes/PromptExampleSelector.md +8 -8
- package/docs/classes/PromptTemplate.md +46 -46
- package/docs/classes/ReadableStreamError.md +8 -8
- package/docs/classes/ResClientTools.md +80 -80
- package/docs/classes/ResServerTools.md +81 -81
- package/docs/classes/SSEChannel.md +15 -15
- package/docs/classes/Semaphore.md +14 -14
- package/docs/classes/ServerTools.md +70 -70
- package/docs/classes/TaskAbortController.md +7 -7
- package/docs/classes/ToolFunc.md +62 -62
- package/docs/enums/AsyncFeatureBits.md +3 -3
- package/docs/enums/AsyncFeatures.md +3 -3
- package/docs/enums/ErrorCode.md +21 -21
- package/docs/enums/XXHashAlgorithm.md +2 -2
- package/docs/interfaces/AIChatAssistantMessageParam.md +6 -6
- package/docs/interfaces/AIChatContentPartImage.md +2 -2
- package/docs/interfaces/AIChatContentPartText.md +2 -2
- package/docs/interfaces/AIChatMessageParamBase.md +1 -1
- package/docs/interfaces/AIChatMessageToolCall.md +3 -3
- package/docs/interfaces/AIChatSystemMessageParam.md +3 -3
- package/docs/interfaces/AIChatToolMessageParam.md +4 -4
- package/docs/interfaces/AIChatUserMessageParam.md +7 -7
- package/docs/interfaces/AIChoiceConfig.md +7 -7
- package/docs/interfaces/AIResult.md +5 -5
- package/docs/interfaces/AIStreamParser.md +1 -1
- package/docs/interfaces/AIStreamParserOptions.md +1 -1
- package/docs/interfaces/BaseFunc.md +9 -9
- package/docs/interfaces/BaseFuncItem.md +8 -8
- package/docs/interfaces/CancelableAbilityOptions.md +8 -8
- package/docs/interfaces/ClientFuncItem.md +11 -11
- package/docs/interfaces/DotenvExpandOptions.md +3 -3
- package/docs/interfaces/DotenvExpandOutput.md +2 -2
- package/docs/interfaces/EventClientFuncParams.md +4 -4
- package/docs/interfaces/EventServerFuncParams.md +5 -5
- package/docs/interfaces/FewShotPromptTemplateOptions.md +11 -11
- package/docs/interfaces/FuncItem.md +9 -9
- package/docs/interfaces/FuncParam.md +6 -6
- package/docs/interfaces/ParseObjectArgumentOptions.md +63 -0
- package/docs/interfaces/PromptExampleSelectorOptions.md +2 -2
- package/docs/interfaces/PromptTemplateOptions.md +6 -6
- package/docs/interfaces/RemoteFuncItem.md +11 -11
- package/docs/interfaces/ResClientFuncParams.md +2 -2
- package/docs/interfaces/ResServerFuncParams.md +5 -5
- package/docs/interfaces/SanitizeFilenameOptions.md +2 -2
- package/docs/interfaces/ServerFuncItem.md +12 -12
- package/docs/interfaces/ServerFuncParams.md +2 -2
- package/docs/interfaces/StreamCallbacksAndOptions.md +4 -4
- package/docs/interfaces/TaskPromise.md +1 -1
- package/docs/interfaces/ToolFuncPackage.md +3 -3
- package/docs/modules.md +182 -181
- package/package.json +12 -10
- package/dist/chunk-4LD7IUUG.mjs +0 -1
- package/dist/chunk-U5DDQYSF.mjs +0 -1
- package/docs/interfaces/IOptions.md +0 -30
|
@@ -95,7 +95,7 @@ fromJSON - Creates a new BaseError instance from a JSON representation.
|
|
|
95
95
|
|
|
96
96
|
#### Defined in
|
|
97
97
|
|
|
98
|
-
[packages/ai-tool/src/utils/base-error.ts:143](https://github.com/isdk/ai-tool.js/blob/
|
|
98
|
+
[packages/ai-tool/src/utils/base-error.ts:143](https://github.com/isdk/ai-tool.js/blob/645c3145aafa05351c48068783eb3c2f206ce4c5/src/utils/base-error.ts#L143)
|
|
99
99
|
|
|
100
100
|
## Properties
|
|
101
101
|
|
|
@@ -111,7 +111,7 @@ The name of the function that threw the error.
|
|
|
111
111
|
|
|
112
112
|
#### Defined in
|
|
113
113
|
|
|
114
|
-
[packages/ai-tool/src/utils/base-error.ts:66](https://github.com/isdk/ai-tool.js/blob/
|
|
114
|
+
[packages/ai-tool/src/utils/base-error.ts:66](https://github.com/isdk/ai-tool.js/blob/645c3145aafa05351c48068783eb3c2f206ce4c5/src/utils/base-error.ts#L66)
|
|
115
115
|
|
|
116
116
|
___
|
|
117
117
|
|
|
@@ -139,7 +139,7 @@ ___
|
|
|
139
139
|
|
|
140
140
|
#### Defined in
|
|
141
141
|
|
|
142
|
-
[packages/ai-tool/src/utils/base-error.ts:67](https://github.com/isdk/ai-tool.js/blob/
|
|
142
|
+
[packages/ai-tool/src/utils/base-error.ts:67](https://github.com/isdk/ai-tool.js/blob/645c3145aafa05351c48068783eb3c2f206ce4c5/src/utils/base-error.ts#L67)
|
|
143
143
|
|
|
144
144
|
___
|
|
145
145
|
|
|
@@ -155,7 +155,7 @@ Additional data associated with the error.
|
|
|
155
155
|
|
|
156
156
|
#### Defined in
|
|
157
157
|
|
|
158
|
-
[packages/ai-tool/src/utils/base-error.ts:68](https://github.com/isdk/ai-tool.js/blob/
|
|
158
|
+
[packages/ai-tool/src/utils/base-error.ts:68](https://github.com/isdk/ai-tool.js/blob/645c3145aafa05351c48068783eb3c2f206ce4c5/src/utils/base-error.ts#L68)
|
|
159
159
|
|
|
160
160
|
___
|
|
161
161
|
|
|
@@ -213,7 +213,7 @@ The error code associated with the error.
|
|
|
213
213
|
|
|
214
214
|
#### Defined in
|
|
215
215
|
|
|
216
|
-
[packages/ai-tool/src/utils/base-error.ts:65](https://github.com/isdk/ai-tool.js/blob/
|
|
216
|
+
[packages/ai-tool/src/utils/base-error.ts:65](https://github.com/isdk/ai-tool.js/blob/645c3145aafa05351c48068783eb3c2f206ce4c5/src/utils/base-error.ts#L65)
|
|
217
217
|
|
|
218
218
|
___
|
|
219
219
|
|
|
@@ -290,7 +290,7 @@ A new BaseError instance.
|
|
|
290
290
|
|
|
291
291
|
#### Defined in
|
|
292
292
|
|
|
293
|
-
[packages/ai-tool/src/utils/base-error.ts:131](https://github.com/isdk/ai-tool.js/blob/
|
|
293
|
+
[packages/ai-tool/src/utils/base-error.ts:131](https://github.com/isdk/ai-tool.js/blob/645c3145aafa05351c48068783eb3c2f206ce4c5/src/utils/base-error.ts#L131)
|
|
294
294
|
|
|
295
295
|
___
|
|
296
296
|
|
|
@@ -312,7 +312,7 @@ A JSON representation of the error.
|
|
|
312
312
|
|
|
313
313
|
#### Defined in
|
|
314
314
|
|
|
315
|
-
[packages/ai-tool/src/utils/base-error.ts:111](https://github.com/isdk/ai-tool.js/blob/
|
|
315
|
+
[packages/ai-tool/src/utils/base-error.ts:111](https://github.com/isdk/ai-tool.js/blob/645c3145aafa05351c48068783eb3c2f206ce4c5/src/utils/base-error.ts#L111)
|
|
316
316
|
|
|
317
317
|
___
|
|
318
318
|
|
|
@@ -365,4 +365,4 @@ typeof [`BaseError`](BaseError.md)
|
|
|
365
365
|
|
|
366
366
|
#### Defined in
|
|
367
367
|
|
|
368
|
-
[packages/ai-tool/src/utils/base-error.ts:70](https://github.com/isdk/ai-tool.js/blob/
|
|
368
|
+
[packages/ai-tool/src/utils/base-error.ts:70](https://github.com/isdk/ai-tool.js/blob/645c3145aafa05351c48068783eb3c2f206ce4c5/src/utils/base-error.ts#L70)
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
#### Defined in
|
|
44
44
|
|
|
45
|
-
node_modules/.pnpm/load-config-file@2.0.0
|
|
45
|
+
node_modules/.pnpm/load-config-file@2.0.0/node_modules/load-config-file/lib/index.d.ts:42
|
|
46
46
|
|
|
47
47
|
• **new ConfigFile**(`aPath`, `aOptions?`): [`ConfigFile`](ConfigFile.md)
|
|
48
48
|
|
|
@@ -59,7 +59,7 @@ node_modules/.pnpm/load-config-file@2.0.0-alpha.3/node_modules/load-config-file/
|
|
|
59
59
|
|
|
60
60
|
#### Defined in
|
|
61
61
|
|
|
62
|
-
node_modules/.pnpm/load-config-file@2.0.0
|
|
62
|
+
node_modules/.pnpm/load-config-file@2.0.0/node_modules/load-config-file/lib/index.d.ts:43
|
|
63
63
|
|
|
64
64
|
## Properties
|
|
65
65
|
|
|
@@ -69,7 +69,7 @@ node_modules/.pnpm/load-config-file@2.0.0-alpha.3/node_modules/load-config-file/
|
|
|
69
69
|
|
|
70
70
|
#### Defined in
|
|
71
71
|
|
|
72
|
-
node_modules/.pnpm/load-config-file@2.0.0
|
|
72
|
+
node_modules/.pnpm/load-config-file@2.0.0/node_modules/load-config-file/lib/index.d.ts:37
|
|
73
73
|
|
|
74
74
|
___
|
|
75
75
|
|
|
@@ -79,7 +79,7 @@ ___
|
|
|
79
79
|
|
|
80
80
|
#### Defined in
|
|
81
81
|
|
|
82
|
-
node_modules/.pnpm/load-config-file@2.0.0
|
|
82
|
+
node_modules/.pnpm/load-config-file@2.0.0/node_modules/load-config-file/lib/index.d.ts:38
|
|
83
83
|
|
|
84
84
|
___
|
|
85
85
|
|
|
@@ -89,7 +89,7 @@ ___
|
|
|
89
89
|
|
|
90
90
|
#### Defined in
|
|
91
91
|
|
|
92
|
-
node_modules/.pnpm/load-config-file@2.0.0
|
|
92
|
+
node_modules/.pnpm/load-config-file@2.0.0/node_modules/load-config-file/lib/index.d.ts:39
|
|
93
93
|
|
|
94
94
|
___
|
|
95
95
|
|
|
@@ -99,7 +99,7 @@ ___
|
|
|
99
99
|
|
|
100
100
|
#### Defined in
|
|
101
101
|
|
|
102
|
-
node_modules/.pnpm/load-config-file@2.0.0
|
|
102
|
+
node_modules/.pnpm/load-config-file@2.0.0/node_modules/load-config-file/lib/index.d.ts:40
|
|
103
103
|
|
|
104
104
|
## Methods
|
|
105
105
|
|
|
@@ -120,7 +120,7 @@ node_modules/.pnpm/load-config-file@2.0.0-alpha.3/node_modules/load-config-file/
|
|
|
120
120
|
|
|
121
121
|
#### Defined in
|
|
122
122
|
|
|
123
|
-
node_modules/.pnpm/load-config-file@2.0.0
|
|
123
|
+
node_modules/.pnpm/load-config-file@2.0.0/node_modules/load-config-file/lib/index.d.ts:44
|
|
124
124
|
|
|
125
125
|
▸ **load**(`done`): `void`
|
|
126
126
|
|
|
@@ -136,7 +136,7 @@ node_modules/.pnpm/load-config-file@2.0.0-alpha.3/node_modules/load-config-file/
|
|
|
136
136
|
|
|
137
137
|
#### Defined in
|
|
138
138
|
|
|
139
|
-
node_modules/.pnpm/load-config-file@2.0.0
|
|
139
|
+
node_modules/.pnpm/load-config-file@2.0.0/node_modules/load-config-file/lib/index.d.ts:45
|
|
140
140
|
|
|
141
141
|
▸ **load**(`aPath`, `aOptions`, `done`): `void`
|
|
142
142
|
|
|
@@ -154,7 +154,7 @@ node_modules/.pnpm/load-config-file@2.0.0-alpha.3/node_modules/load-config-file/
|
|
|
154
154
|
|
|
155
155
|
#### Defined in
|
|
156
156
|
|
|
157
|
-
node_modules/.pnpm/load-config-file@2.0.0
|
|
157
|
+
node_modules/.pnpm/load-config-file@2.0.0/node_modules/load-config-file/lib/index.d.ts:46
|
|
158
158
|
|
|
159
159
|
▸ **load**(`aPath`, `aOptions?`): `Promise`\<`any`\>
|
|
160
160
|
|
|
@@ -171,7 +171,7 @@ node_modules/.pnpm/load-config-file@2.0.0-alpha.3/node_modules/load-config-file/
|
|
|
171
171
|
|
|
172
172
|
#### Defined in
|
|
173
173
|
|
|
174
|
-
node_modules/.pnpm/load-config-file@2.0.0
|
|
174
|
+
node_modules/.pnpm/load-config-file@2.0.0/node_modules/load-config-file/lib/index.d.ts:47
|
|
175
175
|
|
|
176
176
|
▸ **load**(`aOptions?`): `Promise`\<`any`\>
|
|
177
177
|
|
|
@@ -187,7 +187,7 @@ node_modules/.pnpm/load-config-file@2.0.0-alpha.3/node_modules/load-config-file/
|
|
|
187
187
|
|
|
188
188
|
#### Defined in
|
|
189
189
|
|
|
190
|
-
node_modules/.pnpm/load-config-file@2.0.0
|
|
190
|
+
node_modules/.pnpm/load-config-file@2.0.0/node_modules/load-config-file/lib/index.d.ts:48
|
|
191
191
|
|
|
192
192
|
___
|
|
193
193
|
|
|
@@ -208,7 +208,7 @@ ___
|
|
|
208
208
|
|
|
209
209
|
#### Defined in
|
|
210
210
|
|
|
211
|
-
node_modules/.pnpm/load-config-file@2.0.0
|
|
211
|
+
node_modules/.pnpm/load-config-file@2.0.0/node_modules/load-config-file/lib/index.d.ts:49
|
|
212
212
|
|
|
213
213
|
▸ **loadSync**(`aOptions?`): `any`
|
|
214
214
|
|
|
@@ -224,7 +224,7 @@ node_modules/.pnpm/load-config-file@2.0.0-alpha.3/node_modules/load-config-file/
|
|
|
224
224
|
|
|
225
225
|
#### Defined in
|
|
226
226
|
|
|
227
|
-
node_modules/.pnpm/load-config-file@2.0.0
|
|
227
|
+
node_modules/.pnpm/load-config-file@2.0.0/node_modules/load-config-file/lib/index.d.ts:50
|
|
228
228
|
|
|
229
229
|
___
|
|
230
230
|
|
|
@@ -245,7 +245,7 @@ ___
|
|
|
245
245
|
|
|
246
246
|
#### Defined in
|
|
247
247
|
|
|
248
|
-
node_modules/.pnpm/load-config-file@2.0.0
|
|
248
|
+
node_modules/.pnpm/load-config-file@2.0.0/node_modules/load-config-file/lib/index.d.ts:32
|
|
249
249
|
|
|
250
250
|
▸ **load**(`aPath`, `aOptions`, `done`): `void` \| `Promise`\<`any`\>
|
|
251
251
|
|
|
@@ -263,7 +263,7 @@ node_modules/.pnpm/load-config-file@2.0.0-alpha.3/node_modules/load-config-file/
|
|
|
263
263
|
|
|
264
264
|
#### Defined in
|
|
265
265
|
|
|
266
|
-
node_modules/.pnpm/load-config-file@2.0.0
|
|
266
|
+
node_modules/.pnpm/load-config-file@2.0.0/node_modules/load-config-file/lib/index.d.ts:33
|
|
267
267
|
|
|
268
268
|
▸ **load**(`aPath`, `done`): `void` \| `Promise`\<`any`\>
|
|
269
269
|
|
|
@@ -280,7 +280,7 @@ node_modules/.pnpm/load-config-file@2.0.0-alpha.3/node_modules/load-config-file/
|
|
|
280
280
|
|
|
281
281
|
#### Defined in
|
|
282
282
|
|
|
283
|
-
node_modules/.pnpm/load-config-file@2.0.0
|
|
283
|
+
node_modules/.pnpm/load-config-file@2.0.0/node_modules/load-config-file/lib/index.d.ts:34
|
|
284
284
|
|
|
285
285
|
___
|
|
286
286
|
|
|
@@ -301,7 +301,7 @@ ___
|
|
|
301
301
|
|
|
302
302
|
#### Defined in
|
|
303
303
|
|
|
304
|
-
node_modules/.pnpm/load-config-file@2.0.0
|
|
304
|
+
node_modules/.pnpm/load-config-file@2.0.0/node_modules/load-config-file/lib/index.d.ts:35
|
|
305
305
|
|
|
306
306
|
___
|
|
307
307
|
|
|
@@ -323,7 +323,7 @@ ___
|
|
|
323
323
|
|
|
324
324
|
#### Defined in
|
|
325
325
|
|
|
326
|
-
node_modules/.pnpm/load-config-file@2.0.0
|
|
326
|
+
node_modules/.pnpm/load-config-file@2.0.0/node_modules/load-config-file/lib/index.d.ts:29
|
|
327
327
|
|
|
328
328
|
___
|
|
329
329
|
|
|
@@ -343,4 +343,4 @@ ___
|
|
|
343
343
|
|
|
344
344
|
#### Defined in
|
|
345
345
|
|
|
346
|
-
node_modules/.pnpm/load-config-file@2.0.0
|
|
346
|
+
node_modules/.pnpm/load-config-file@2.0.0/node_modules/load-config-file/lib/index.d.ts:30
|