@isdk/ai-tool 0.0.2 → 0.0.3
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-PKECBABP.mjs → chunk-DGMU4VSJ.mjs} +10 -0
- package/dist/funcs.js +9 -0
- package/dist/funcs.mjs +1 -1
- package/dist/index.d.mts +25 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.js +11 -0
- package/dist/index.mjs +4 -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/ClientTools.md +51 -51
- package/docs/classes/CommonError.md +8 -8
- package/docs/classes/EventClient.md +73 -73
- package/docs/classes/EventServer.md +71 -71
- package/docs/classes/EventToolFunc.md +41 -41
- package/docs/classes/FStringPromptTemplate.md +18 -18
- package/docs/classes/FewShotPromptTemplate.md +22 -22
- package/docs/classes/GolangPromptTemplate.md +18 -18
- package/docs/classes/HFEnvironment.md +9 -9
- package/docs/classes/HFInterpreter.md +17 -17
- package/docs/classes/HFTemplate.md +4 -4
- package/docs/classes/HfPromptTemplate.md +18 -18
- 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 +17 -17
- package/docs/classes/ReadableStreamError.md +8 -8
- package/docs/classes/ResClientTools.md +57 -57
- package/docs/classes/ResServerTools.md +55 -55
- package/docs/classes/SSEChannel.md +15 -15
- package/docs/classes/ServerTools.md +48 -48
- package/docs/classes/ToolFunc.md +38 -38
- package/docs/enums/ErrorCode.md +19 -19
- 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/AIResult.md +4 -4
- package/docs/interfaces/AIStreamCallbacksAndOptions.md +6 -6
- package/docs/interfaces/AIStreamParser.md +1 -1
- package/docs/interfaces/AIStreamParserOptions.md +1 -1
- package/docs/interfaces/BaseFunc.md +7 -7
- package/docs/interfaces/BaseFuncItem.md +6 -6
- package/docs/interfaces/ClientFuncItem.md +10 -10
- 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 +7 -7
- package/docs/interfaces/FuncParam.md +5 -5
- package/docs/interfaces/PromptExampleSelectorOptions.md +2 -2
- package/docs/interfaces/PromptTemplateOptions.md +6 -6
- package/docs/interfaces/RemoteFuncItem.md +10 -10
- 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 +11 -11
- package/docs/interfaces/ServerFuncParams.md +2 -2
- package/docs/modules.md +158 -108
- package/package.json +1 -1
|
@@ -1124,6 +1124,7 @@ __export(utils_exports, {
|
|
|
1124
1124
|
jsonFilterToWhere: () => jsonFilterToWhere,
|
|
1125
1125
|
loadFileFromPaths: () => loadFileFromPaths,
|
|
1126
1126
|
loadTextFromPaths: () => loadTextFromPaths,
|
|
1127
|
+
matchUrlProtocol: () => matchUrlProtocol,
|
|
1127
1128
|
mimeType: () => mimeType,
|
|
1128
1129
|
parseFString: () => parseFString,
|
|
1129
1130
|
parseJsJson: () => parseJsJson,
|
|
@@ -4411,6 +4412,14 @@ function jsonFilterToWhere(filter, wrapKey) {
|
|
|
4411
4412
|
return andQuery.length > 1 ? andQuery.join(" AND ") : andQuery[0];
|
|
4412
4413
|
}
|
|
4413
4414
|
|
|
4415
|
+
// src/utils/match-url-protocol.ts
|
|
4416
|
+
function matchUrlProtocol(name) {
|
|
4417
|
+
const index = name.indexOf("://");
|
|
4418
|
+
if (index > 0) {
|
|
4419
|
+
return name.substring(0, index);
|
|
4420
|
+
}
|
|
4421
|
+
}
|
|
4422
|
+
|
|
4414
4423
|
// src/client-tools.ts
|
|
4415
4424
|
var ClientTools = class _ClientTools extends ToolFunc {
|
|
4416
4425
|
static get apiRoot() {
|
|
@@ -5055,6 +5064,7 @@ export {
|
|
|
5055
5064
|
saveConfigFile,
|
|
5056
5065
|
stringify2,
|
|
5057
5066
|
jsonFilterToWhere,
|
|
5067
|
+
matchUrlProtocol,
|
|
5058
5068
|
utils_exports,
|
|
5059
5069
|
ToolFunc,
|
|
5060
5070
|
ToolFuncSchema,
|
package/dist/funcs.js
CHANGED
|
@@ -1171,6 +1171,7 @@ __export(utils_exports, {
|
|
|
1171
1171
|
jsonFilterToWhere: () => jsonFilterToWhere,
|
|
1172
1172
|
loadFileFromPaths: () => loadFileFromPaths,
|
|
1173
1173
|
loadTextFromPaths: () => loadTextFromPaths,
|
|
1174
|
+
matchUrlProtocol: () => matchUrlProtocol,
|
|
1174
1175
|
mimeType: () => import_with_db.mimeType,
|
|
1175
1176
|
parseFString: () => parseFString,
|
|
1176
1177
|
parseJsJson: () => parseJsJson,
|
|
@@ -4455,6 +4456,14 @@ function jsonFilterToWhere(filter, wrapKey) {
|
|
|
4455
4456
|
return andQuery.length > 1 ? andQuery.join(" AND ") : andQuery[0];
|
|
4456
4457
|
}
|
|
4457
4458
|
|
|
4459
|
+
// src/utils/match-url-protocol.ts
|
|
4460
|
+
function matchUrlProtocol(name) {
|
|
4461
|
+
const index = name.indexOf("://");
|
|
4462
|
+
if (index > 0) {
|
|
4463
|
+
return name.substring(0, index);
|
|
4464
|
+
}
|
|
4465
|
+
}
|
|
4466
|
+
|
|
4458
4467
|
// src/client-tools.ts
|
|
4459
4468
|
var ClientTools = class _ClientTools extends ToolFunc {
|
|
4460
4469
|
static get apiRoot() {
|
package/dist/funcs.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1094,4 +1094,28 @@ interface JsonFilter {
|
|
|
1094
1094
|
*/
|
|
1095
1095
|
declare function jsonFilterToWhere(filter: JsonFilter | JsonFilter[], wrapKey?: (k: string) => string): string;
|
|
1096
1096
|
|
|
1097
|
-
|
|
1097
|
+
/**
|
|
1098
|
+
* Extracts the protocol part from a URL-like string.
|
|
1099
|
+
*
|
|
1100
|
+
* This function checks a given string to find the protocol section of a URL.
|
|
1101
|
+
* If the string contains the sequence '://', it returns the substring from the start of the string
|
|
1102
|
+
* up to the '//' characters. If the sequence is not found, the function returns undefined.
|
|
1103
|
+
*
|
|
1104
|
+
* @param name - The string to inspect, expected to contain a URL.
|
|
1105
|
+
* @returns {string | undefined} - The protocol part if '://' is found; otherwise, undefined.
|
|
1106
|
+
*
|
|
1107
|
+
* @example
|
|
1108
|
+
* // Returns "http"
|
|
1109
|
+
* matchUrlProtocol("http://example.com");
|
|
1110
|
+
*
|
|
1111
|
+
* @example
|
|
1112
|
+
* // Returns "ftp"
|
|
1113
|
+
* matchUrlProtocol("ftp://myftpserver.com");
|
|
1114
|
+
*
|
|
1115
|
+
* @example
|
|
1116
|
+
* // Returns undefined
|
|
1117
|
+
* matchUrlProtocol("noProtocolHere");
|
|
1118
|
+
*/
|
|
1119
|
+
declare function matchUrlProtocol(name: string): string | undefined;
|
|
1120
|
+
|
|
1121
|
+
export { type AIChatAssistantMessageParam, type AIChatContentPart, type AIChatContentPartImage, type AIChatContentPartText, type AIChatMessageParam, type AIChatMessageParamBase, type AIChatMessageToolCall, type AIChatRole, AIChatRoles, type AIChatSystemMessageParam, type AIChatToolMessageParam, type AIChatUserMessageParam, type AIMessageType, AIMessageTypes, AIModelNameRules, type AIResult, AIStream, type AIStreamCallbacksAndOptions, type AIStreamParser, type AIStreamParserOptions, type AITextGenerationFinishReason, AITextGenerationFinishReasons, BaseError, type DotenvExpandOptions, type DotenvExpandOutput, type DotenvParseInput, type DotenvParseOutput, type DotenvPopulateInput, EventBusName, type EventErrorListenerFn, type EventListenerFn, EventName, FStringPromptTemplate, type FStringPromptTemplateNode, FewShotPromptTemplate, type FewShotPromptTemplateOptions, FilenameReservedRegex, GolangPromptTemplate, builtins as HFBuiltins, EnvironmentEx as HFEnvironment, Interpreter as HFInterpreter, Template as HFTemplate, HfPromptTemplate, type JsonFilter, PromptExampleSelector, type PromptExampleSelectorOptions, type PromptExamples, PromptTemplate, type PromptTemplateOptions, type PromptTemplateType, PromptTemplateTypes, type PromptType, PromptTypes, RStreamErrCode, ReadableStreamError, ResponseRStreamErrCode, type SanitizeFilenameOptions, WindowsReservedNameRegex, XXHashAlgorithm, backendEventable, base32768, createCallbacksTransformer, createEmptyReadableStream, createEndWithRepetitionDetector, createEventStreamTransformer, createHfValueFunc, defaultTemplateFormat, expandEnv, expandObjEnv, extNameLevel, filenameReservedRegex, getAllEnumKeys, getConfigFileNames, getConfigs, getKeysPath, getMultiLevelExtname, getResponseErrorReadableStream, parse as hfParse, tokenize as hfTokenize, interpolateEnv, interpolateFString, interpolateGolangTemplate, isModelNameMatched, isValidFilename, isValidFilepath, jsonFilterToWhere, loadFileFromPaths, loadTextFromPaths, matchUrlProtocol, parseFString, parseJsJson, parseYaml, reControlCharsRegex, readableFromAsyncIterable, registerYamlTag, sanitizeFilename, sanitizeFilepath, saveConfigFile, sortedValues, splitSentence, trimStartOfStreamHelper, truncTo, uuid, wait, xxhash, xxhash32, xxhash64, xxhashAsStr };
|
package/dist/index.d.ts
CHANGED
|
@@ -1094,4 +1094,28 @@ interface JsonFilter {
|
|
|
1094
1094
|
*/
|
|
1095
1095
|
declare function jsonFilterToWhere(filter: JsonFilter | JsonFilter[], wrapKey?: (k: string) => string): string;
|
|
1096
1096
|
|
|
1097
|
-
|
|
1097
|
+
/**
|
|
1098
|
+
* Extracts the protocol part from a URL-like string.
|
|
1099
|
+
*
|
|
1100
|
+
* This function checks a given string to find the protocol section of a URL.
|
|
1101
|
+
* If the string contains the sequence '://', it returns the substring from the start of the string
|
|
1102
|
+
* up to the '//' characters. If the sequence is not found, the function returns undefined.
|
|
1103
|
+
*
|
|
1104
|
+
* @param name - The string to inspect, expected to contain a URL.
|
|
1105
|
+
* @returns {string | undefined} - The protocol part if '://' is found; otherwise, undefined.
|
|
1106
|
+
*
|
|
1107
|
+
* @example
|
|
1108
|
+
* // Returns "http"
|
|
1109
|
+
* matchUrlProtocol("http://example.com");
|
|
1110
|
+
*
|
|
1111
|
+
* @example
|
|
1112
|
+
* // Returns "ftp"
|
|
1113
|
+
* matchUrlProtocol("ftp://myftpserver.com");
|
|
1114
|
+
*
|
|
1115
|
+
* @example
|
|
1116
|
+
* // Returns undefined
|
|
1117
|
+
* matchUrlProtocol("noProtocolHere");
|
|
1118
|
+
*/
|
|
1119
|
+
declare function matchUrlProtocol(name: string): string | undefined;
|
|
1120
|
+
|
|
1121
|
+
export { type AIChatAssistantMessageParam, type AIChatContentPart, type AIChatContentPartImage, type AIChatContentPartText, type AIChatMessageParam, type AIChatMessageParamBase, type AIChatMessageToolCall, type AIChatRole, AIChatRoles, type AIChatSystemMessageParam, type AIChatToolMessageParam, type AIChatUserMessageParam, type AIMessageType, AIMessageTypes, AIModelNameRules, type AIResult, AIStream, type AIStreamCallbacksAndOptions, type AIStreamParser, type AIStreamParserOptions, type AITextGenerationFinishReason, AITextGenerationFinishReasons, BaseError, type DotenvExpandOptions, type DotenvExpandOutput, type DotenvParseInput, type DotenvParseOutput, type DotenvPopulateInput, EventBusName, type EventErrorListenerFn, type EventListenerFn, EventName, FStringPromptTemplate, type FStringPromptTemplateNode, FewShotPromptTemplate, type FewShotPromptTemplateOptions, FilenameReservedRegex, GolangPromptTemplate, builtins as HFBuiltins, EnvironmentEx as HFEnvironment, Interpreter as HFInterpreter, Template as HFTemplate, HfPromptTemplate, type JsonFilter, PromptExampleSelector, type PromptExampleSelectorOptions, type PromptExamples, PromptTemplate, type PromptTemplateOptions, type PromptTemplateType, PromptTemplateTypes, type PromptType, PromptTypes, RStreamErrCode, ReadableStreamError, ResponseRStreamErrCode, type SanitizeFilenameOptions, WindowsReservedNameRegex, XXHashAlgorithm, backendEventable, base32768, createCallbacksTransformer, createEmptyReadableStream, createEndWithRepetitionDetector, createEventStreamTransformer, createHfValueFunc, defaultTemplateFormat, expandEnv, expandObjEnv, extNameLevel, filenameReservedRegex, getAllEnumKeys, getConfigFileNames, getConfigs, getKeysPath, getMultiLevelExtname, getResponseErrorReadableStream, parse as hfParse, tokenize as hfTokenize, interpolateEnv, interpolateFString, interpolateGolangTemplate, isModelNameMatched, isValidFilename, isValidFilepath, jsonFilterToWhere, loadFileFromPaths, loadTextFromPaths, matchUrlProtocol, parseFString, parseJsJson, parseYaml, reControlCharsRegex, readableFromAsyncIterable, registerYamlTag, sanitizeFilename, sanitizeFilepath, saveConfigFile, sortedValues, splitSentence, trimStartOfStreamHelper, truncTo, uuid, wait, xxhash, xxhash32, xxhash64, xxhashAsStr };
|
package/dist/index.js
CHANGED
|
@@ -124,6 +124,7 @@ __export(src_exports, {
|
|
|
124
124
|
loadFileFromPaths: () => loadFileFromPaths,
|
|
125
125
|
loadTextFromPaths: () => loadTextFromPaths,
|
|
126
126
|
lrucache: () => lrucache,
|
|
127
|
+
matchUrlProtocol: () => matchUrlProtocol,
|
|
127
128
|
mergeSegments: () => mergeSegments,
|
|
128
129
|
mimeType: () => import_with_db.mimeType,
|
|
129
130
|
parseFString: () => parseFString,
|
|
@@ -237,6 +238,7 @@ __export(utils_exports, {
|
|
|
237
238
|
jsonFilterToWhere: () => jsonFilterToWhere,
|
|
238
239
|
loadFileFromPaths: () => loadFileFromPaths,
|
|
239
240
|
loadTextFromPaths: () => loadTextFromPaths,
|
|
241
|
+
matchUrlProtocol: () => matchUrlProtocol,
|
|
240
242
|
mimeType: () => import_with_db.mimeType,
|
|
241
243
|
parseFString: () => parseFString,
|
|
242
244
|
parseJsJson: () => parseJsJson,
|
|
@@ -3999,6 +4001,14 @@ function jsonFilterToWhere(filter, wrapKey) {
|
|
|
3999
4001
|
return andQuery.length > 1 ? andQuery.join(" AND ") : andQuery[0];
|
|
4000
4002
|
}
|
|
4001
4003
|
|
|
4004
|
+
// src/utils/match-url-protocol.ts
|
|
4005
|
+
function matchUrlProtocol(name) {
|
|
4006
|
+
const index = name.indexOf("://");
|
|
4007
|
+
if (index > 0) {
|
|
4008
|
+
return name.substring(0, index);
|
|
4009
|
+
}
|
|
4010
|
+
}
|
|
4011
|
+
|
|
4002
4012
|
// src/index.ts
|
|
4003
4013
|
__reExport(src_exports, utils_exports, module.exports);
|
|
4004
4014
|
|
|
@@ -5201,6 +5211,7 @@ function registerCoreTools() {
|
|
|
5201
5211
|
loadFileFromPaths,
|
|
5202
5212
|
loadTextFromPaths,
|
|
5203
5213
|
lrucache,
|
|
5214
|
+
matchUrlProtocol,
|
|
5204
5215
|
mergeSegments,
|
|
5205
5216
|
mimeType,
|
|
5206
5217
|
parseFString,
|
package/dist/index.mjs
CHANGED
|
@@ -91,6 +91,7 @@ import {
|
|
|
91
91
|
loadFileFromPaths,
|
|
92
92
|
loadTextFromPaths,
|
|
93
93
|
lrucache,
|
|
94
|
+
matchUrlProtocol,
|
|
94
95
|
mergeSegments,
|
|
95
96
|
mimeType,
|
|
96
97
|
parse,
|
|
@@ -128,7 +129,7 @@ import {
|
|
|
128
129
|
xxhash32,
|
|
129
130
|
xxhash64,
|
|
130
131
|
xxhashAsStr
|
|
131
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-DGMU4VSJ.mjs";
|
|
132
133
|
import {
|
|
133
134
|
__export,
|
|
134
135
|
__reExport
|
|
@@ -230,6 +231,7 @@ __export(src_exports, {
|
|
|
230
231
|
loadFileFromPaths: () => loadFileFromPaths,
|
|
231
232
|
loadTextFromPaths: () => loadTextFromPaths,
|
|
232
233
|
lrucache: () => lrucache,
|
|
234
|
+
matchUrlProtocol: () => matchUrlProtocol,
|
|
233
235
|
mergeSegments: () => mergeSegments,
|
|
234
236
|
mimeType: () => mimeType,
|
|
235
237
|
parseFString: () => parseFString,
|
|
@@ -361,6 +363,7 @@ export {
|
|
|
361
363
|
loadFileFromPaths,
|
|
362
364
|
loadTextFromPaths,
|
|
363
365
|
lrucache,
|
|
366
|
+
matchUrlProtocol,
|
|
364
367
|
mergeSegments,
|
|
365
368
|
mimeType,
|
|
366
369
|
parseFString,
|
|
@@ -86,7 +86,7 @@ fromJSON - Creates a new BaseError instance from a JSON representation.
|
|
|
86
86
|
|
|
87
87
|
#### Defined in
|
|
88
88
|
|
|
89
|
-
[packages/ai-tool/src/utils/base-error.ts:202](https://github.com/isdk/ai-tool.js/blob/
|
|
89
|
+
[packages/ai-tool/src/utils/base-error.ts:202](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L202)
|
|
90
90
|
|
|
91
91
|
## Properties
|
|
92
92
|
|
|
@@ -102,7 +102,7 @@ The name of the function that threw the error.
|
|
|
102
102
|
|
|
103
103
|
#### Defined in
|
|
104
104
|
|
|
105
|
-
[packages/ai-tool/src/utils/base-error.ts:64](https://github.com/isdk/ai-tool.js/blob/
|
|
105
|
+
[packages/ai-tool/src/utils/base-error.ts:64](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L64)
|
|
106
106
|
|
|
107
107
|
___
|
|
108
108
|
|
|
@@ -130,7 +130,7 @@ ___
|
|
|
130
130
|
|
|
131
131
|
#### Defined in
|
|
132
132
|
|
|
133
|
-
[packages/ai-tool/src/utils/base-error.ts:65](https://github.com/isdk/ai-tool.js/blob/
|
|
133
|
+
[packages/ai-tool/src/utils/base-error.ts:65](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L65)
|
|
134
134
|
|
|
135
135
|
___
|
|
136
136
|
|
|
@@ -146,7 +146,7 @@ Additional data associated with the error.
|
|
|
146
146
|
|
|
147
147
|
#### Defined in
|
|
148
148
|
|
|
149
|
-
[packages/ai-tool/src/utils/base-error.ts:66](https://github.com/isdk/ai-tool.js/blob/
|
|
149
|
+
[packages/ai-tool/src/utils/base-error.ts:66](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L66)
|
|
150
150
|
|
|
151
151
|
___
|
|
152
152
|
|
|
@@ -204,7 +204,7 @@ The error code associated with the error.
|
|
|
204
204
|
|
|
205
205
|
#### Defined in
|
|
206
206
|
|
|
207
|
-
[packages/ai-tool/src/utils/base-error.ts:201](https://github.com/isdk/ai-tool.js/blob/
|
|
207
|
+
[packages/ai-tool/src/utils/base-error.ts:201](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L201)
|
|
208
208
|
|
|
209
209
|
___
|
|
210
210
|
|
|
@@ -281,7 +281,7 @@ A new BaseError instance.
|
|
|
281
281
|
|
|
282
282
|
#### Defined in
|
|
283
283
|
|
|
284
|
-
[packages/ai-tool/src/utils/base-error.ts:129](https://github.com/isdk/ai-tool.js/blob/
|
|
284
|
+
[packages/ai-tool/src/utils/base-error.ts:129](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L129)
|
|
285
285
|
|
|
286
286
|
___
|
|
287
287
|
|
|
@@ -303,7 +303,7 @@ A JSON representation of the error.
|
|
|
303
303
|
|
|
304
304
|
#### Defined in
|
|
305
305
|
|
|
306
|
-
[packages/ai-tool/src/utils/base-error.ts:109](https://github.com/isdk/ai-tool.js/blob/
|
|
306
|
+
[packages/ai-tool/src/utils/base-error.ts:109](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L109)
|
|
307
307
|
|
|
308
308
|
___
|
|
309
309
|
|
|
@@ -356,4 +356,4 @@ typeof [`BaseError`](BaseError.md)
|
|
|
356
356
|
|
|
357
357
|
#### Defined in
|
|
358
358
|
|
|
359
|
-
[packages/ai-tool/src/utils/base-error.ts:68](https://github.com/isdk/ai-tool.js/blob/
|
|
359
|
+
[packages/ai-tool/src/utils/base-error.ts:68](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L68)
|
|
@@ -66,7 +66,7 @@ throw new AlreadyExistsError('user', { id: 123 })
|
|
|
66
66
|
|
|
67
67
|
#### Defined in
|
|
68
68
|
|
|
69
|
-
[packages/ai-tool/src/utils/base-error.ts:193](https://github.com/isdk/ai-tool.js/blob/
|
|
69
|
+
[packages/ai-tool/src/utils/base-error.ts:193](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L193)
|
|
70
70
|
|
|
71
71
|
## Properties
|
|
72
72
|
|
|
@@ -82,7 +82,7 @@ The name of the function that threw the error.
|
|
|
82
82
|
|
|
83
83
|
#### Defined in
|
|
84
84
|
|
|
85
|
-
[packages/ai-tool/src/utils/base-error.ts:64](https://github.com/isdk/ai-tool.js/blob/
|
|
85
|
+
[packages/ai-tool/src/utils/base-error.ts:64](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L64)
|
|
86
86
|
|
|
87
87
|
___
|
|
88
88
|
|
|
@@ -110,7 +110,7 @@ ___
|
|
|
110
110
|
|
|
111
111
|
#### Defined in
|
|
112
112
|
|
|
113
|
-
[packages/ai-tool/src/utils/base-error.ts:65](https://github.com/isdk/ai-tool.js/blob/
|
|
113
|
+
[packages/ai-tool/src/utils/base-error.ts:65](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L65)
|
|
114
114
|
|
|
115
115
|
___
|
|
116
116
|
|
|
@@ -126,7 +126,7 @@ Additional data associated with the error.
|
|
|
126
126
|
|
|
127
127
|
#### Defined in
|
|
128
128
|
|
|
129
|
-
[packages/ai-tool/src/utils/base-error.ts:66](https://github.com/isdk/ai-tool.js/blob/
|
|
129
|
+
[packages/ai-tool/src/utils/base-error.ts:66](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L66)
|
|
130
130
|
|
|
131
131
|
___
|
|
132
132
|
|
|
@@ -184,7 +184,7 @@ The error code associated with the error.
|
|
|
184
184
|
|
|
185
185
|
#### Defined in
|
|
186
186
|
|
|
187
|
-
[packages/ai-tool/src/utils/base-error.ts:192](https://github.com/isdk/ai-tool.js/blob/
|
|
187
|
+
[packages/ai-tool/src/utils/base-error.ts:192](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L192)
|
|
188
188
|
|
|
189
189
|
___
|
|
190
190
|
|
|
@@ -261,7 +261,7 @@ A new BaseError instance.
|
|
|
261
261
|
|
|
262
262
|
#### Defined in
|
|
263
263
|
|
|
264
|
-
[packages/ai-tool/src/utils/base-error.ts:129](https://github.com/isdk/ai-tool.js/blob/
|
|
264
|
+
[packages/ai-tool/src/utils/base-error.ts:129](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L129)
|
|
265
265
|
|
|
266
266
|
___
|
|
267
267
|
|
|
@@ -283,7 +283,7 @@ A JSON representation of the error.
|
|
|
283
283
|
|
|
284
284
|
#### Defined in
|
|
285
285
|
|
|
286
|
-
[packages/ai-tool/src/utils/base-error.ts:109](https://github.com/isdk/ai-tool.js/blob/
|
|
286
|
+
[packages/ai-tool/src/utils/base-error.ts:109](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L109)
|
|
287
287
|
|
|
288
288
|
___
|
|
289
289
|
|
|
@@ -336,4 +336,4 @@ typeof [`BaseError`](BaseError.md)
|
|
|
336
336
|
|
|
337
337
|
#### Defined in
|
|
338
338
|
|
|
339
|
-
[packages/ai-tool/src/utils/base-error.ts:68](https://github.com/isdk/ai-tool.js/blob/
|
|
339
|
+
[packages/ai-tool/src/utils/base-error.ts:68](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L68)
|
|
@@ -93,7 +93,7 @@ AbstractError.constructor
|
|
|
93
93
|
|
|
94
94
|
#### Defined in
|
|
95
95
|
|
|
96
|
-
[packages/ai-tool/src/utils/base-error.ts:79](https://github.com/isdk/ai-tool.js/blob/
|
|
96
|
+
[packages/ai-tool/src/utils/base-error.ts:79](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L79)
|
|
97
97
|
|
|
98
98
|
## Properties
|
|
99
99
|
|
|
@@ -105,7 +105,7 @@ The name of the function that threw the error.
|
|
|
105
105
|
|
|
106
106
|
#### Defined in
|
|
107
107
|
|
|
108
|
-
[packages/ai-tool/src/utils/base-error.ts:64](https://github.com/isdk/ai-tool.js/blob/
|
|
108
|
+
[packages/ai-tool/src/utils/base-error.ts:64](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L64)
|
|
109
109
|
|
|
110
110
|
___
|
|
111
111
|
|
|
@@ -133,7 +133,7 @@ AbstractError.code
|
|
|
133
133
|
|
|
134
134
|
#### Defined in
|
|
135
135
|
|
|
136
|
-
[packages/ai-tool/src/utils/base-error.ts:65](https://github.com/isdk/ai-tool.js/blob/
|
|
136
|
+
[packages/ai-tool/src/utils/base-error.ts:65](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L65)
|
|
137
137
|
|
|
138
138
|
___
|
|
139
139
|
|
|
@@ -145,7 +145,7 @@ Additional data associated with the error.
|
|
|
145
145
|
|
|
146
146
|
#### Defined in
|
|
147
147
|
|
|
148
|
-
[packages/ai-tool/src/utils/base-error.ts:66](https://github.com/isdk/ai-tool.js/blob/
|
|
148
|
+
[packages/ai-tool/src/utils/base-error.ts:66](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L66)
|
|
149
149
|
|
|
150
150
|
___
|
|
151
151
|
|
|
@@ -199,7 +199,7 @@ The error code associated with the error.
|
|
|
199
199
|
|
|
200
200
|
#### Defined in
|
|
201
201
|
|
|
202
|
-
[packages/ai-tool/src/utils/base-error.ts:63](https://github.com/isdk/ai-tool.js/blob/
|
|
202
|
+
[packages/ai-tool/src/utils/base-error.ts:63](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L63)
|
|
203
203
|
|
|
204
204
|
___
|
|
205
205
|
|
|
@@ -272,7 +272,7 @@ A new BaseError instance.
|
|
|
272
272
|
|
|
273
273
|
#### Defined in
|
|
274
274
|
|
|
275
|
-
[packages/ai-tool/src/utils/base-error.ts:129](https://github.com/isdk/ai-tool.js/blob/
|
|
275
|
+
[packages/ai-tool/src/utils/base-error.ts:129](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L129)
|
|
276
276
|
|
|
277
277
|
___
|
|
278
278
|
|
|
@@ -290,7 +290,7 @@ A JSON representation of the error.
|
|
|
290
290
|
|
|
291
291
|
#### Defined in
|
|
292
292
|
|
|
293
|
-
[packages/ai-tool/src/utils/base-error.ts:109](https://github.com/isdk/ai-tool.js/blob/
|
|
293
|
+
[packages/ai-tool/src/utils/base-error.ts:109](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L109)
|
|
294
294
|
|
|
295
295
|
___
|
|
296
296
|
|
|
@@ -343,4 +343,4 @@ AbstractError.createErrorClass
|
|
|
343
343
|
|
|
344
344
|
#### Defined in
|
|
345
345
|
|
|
346
|
-
[packages/ai-tool/src/utils/base-error.ts:68](https://github.com/isdk/ai-tool.js/blob/
|
|
346
|
+
[packages/ai-tool/src/utils/base-error.ts:68](https://github.com/isdk/ai-tool.js/blob/5ff3a34d9852a051d1821b3c3de867a8271c1404/src/utils/base-error.ts#L68)
|