@isdk/ai-tool 0.2.0 → 0.2.1
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-TOUPOZHH.mjs +1 -0
- package/dist/funcs.d.mts +1 -1
- package/dist/funcs.d.ts +1 -1
- package/dist/funcs.js +1 -1
- package/dist/funcs.mjs +1 -1
- package/dist/{index-nP9lSU6E.d.mts → index-DUEs7T8M.d.mts} +2 -2
- package/dist/{index-nP9lSU6E.d.ts → index-DUEs7T8M.d.ts} +2 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/docs/README.md +5 -3
- package/docs/_media/CONTRIBUTING.md +18 -0
- package/docs/_media/LICENSE-MIT +22 -0
- package/docs/classes/AbortError.md +108 -129
- package/docs/classes/AlreadyExistsError.md +105 -126
- package/docs/classes/BaseError.md +112 -125
- package/docs/classes/CancelableAbility.md +136 -188
- package/docs/classes/ClientTools.md +1005 -1107
- package/docs/classes/CommonError.md +115 -136
- package/docs/classes/ConfigFile.md +150 -163
- package/docs/classes/EventClient.md +1128 -1282
- package/docs/classes/EventServer.md +1165 -1303
- package/docs/classes/EventToolFunc.md +958 -1028
- package/docs/classes/FStringPromptTemplate.md +352 -438
- package/docs/classes/FewShotPromptTemplate.md +364 -464
- package/docs/classes/GolangPromptTemplate.md +352 -438
- package/docs/classes/HFEnvironment.md +53 -79
- package/docs/classes/HFInterpreter.md +20 -377
- package/docs/classes/HFTemplate.md +21 -33
- package/docs/classes/HfPromptTemplate.md +352 -438
- package/docs/classes/IntSet.md +67 -100
- package/docs/classes/NotFoundError.md +105 -126
- package/docs/classes/NotImplementationError.md +105 -126
- package/docs/classes/PromptExampleSelector.md +58 -70
- package/docs/classes/PromptTemplate.md +338 -422
- package/docs/classes/ReadableStreamError.md +108 -129
- package/docs/classes/ResClientTools.md +916 -1026
- package/docs/classes/ResServerTools.md +919 -1026
- package/docs/classes/SSEChannel.md +93 -112
- package/docs/classes/Semaphore.md +44 -140
- package/docs/classes/ServerTools.md +981 -1072
- package/docs/classes/TaskAbortController.md +46 -66
- package/docs/classes/ToolFunc.md +840 -910
- package/docs/enumerations/AsyncFeatureBits.md +37 -0
- package/docs/enumerations/AsyncFeatures.md +37 -0
- package/docs/enumerations/ErrorCode.md +217 -0
- package/docs/enumerations/XXHashAlgorithm.md +27 -0
- package/docs/functions/AIArgProcessor.md +27 -0
- package/docs/functions/AIStream.md +50 -0
- package/docs/functions/ChoiceArgProcessor.md +27 -0
- package/docs/functions/RateLimit.md +33 -0
- package/docs/functions/TemplateArgProcessor.md +27 -0
- package/docs/functions/backendEventable.md +23 -0
- package/docs/functions/canonicalize.md +21 -0
- package/docs/functions/countRegexMatches.md +33 -0
- package/docs/functions/createAbilityInjector.md +87 -0
- package/docs/functions/createCallbacksTransformer.md +49 -0
- package/docs/functions/createEmptyReadableStream.md +23 -0
- package/docs/functions/createEndWithRepetitionDetector.md +29 -0
- package/docs/functions/createError.md +35 -0
- package/docs/functions/createEventStreamTransformer.md +33 -0
- package/docs/functions/createHfValueFunc.md +29 -0
- package/docs/functions/createLRUCache.md +23 -0
- package/docs/functions/dateToText.md +23 -0
- package/docs/functions/expandEnv.md +40 -0
- package/docs/functions/expandObjEnv.md +54 -0
- package/docs/functions/extNameLevel.md +43 -0
- package/docs/functions/fileIsExists.md +34 -0
- package/docs/functions/filenameReservedRegex.md +22 -0
- package/docs/functions/filterValidFnScope.md +21 -0
- package/docs/functions/findPort.md +23 -0
- package/docs/functions/formatISO.md +71 -0
- package/docs/functions/getAllEnumKeys.md +31 -0
- package/docs/functions/getConfigFileNames.md +23 -0
- package/docs/functions/getConfigs.md +23 -0
- package/docs/functions/getKeysPath.md +38 -0
- package/docs/functions/getMultiLevelExtname.md +31 -0
- package/docs/functions/getPackageDir.md +39 -0
- package/docs/functions/getRealFilepath.md +34 -0
- package/docs/functions/getResponseErrorReadableStream.md +21 -0
- package/docs/functions/hfParse.md +24 -0
- package/docs/functions/hfTokenize.md +25 -0
- package/docs/functions/interpolateEnv.md +25 -0
- package/docs/functions/interpolateFString.md +27 -0
- package/docs/functions/interpolateGolangTemplate.md +31 -0
- package/docs/functions/isModelNameMatched.md +45 -0
- package/docs/functions/isValidFilename.md +38 -0
- package/docs/functions/isValidFilepath.md +27 -0
- package/docs/functions/isWebStream.md +21 -0
- package/docs/functions/jsonFilterToWhere.md +45 -0
- package/docs/functions/jsonToMarkdownStr.md +31 -0
- package/docs/functions/loadFileFromPaths.md +54 -0
- package/docs/functions/loadTextFromPaths.md +29 -0
- package/docs/functions/lrucache.md +29 -0
- package/docs/functions/makeToolFuncCancelable.md +23 -0
- package/docs/functions/matchUrlProtocol.md +48 -0
- package/docs/functions/memoize.md +27 -0
- package/docs/functions/messagesToText.md +21 -0
- package/docs/functions/paramsSizeToScaleStr.md +32 -0
- package/docs/functions/parseCommand.md +33 -0
- package/docs/functions/parseDateFormat.md +360 -0
- package/docs/functions/parseFString.md +26 -0
- package/docs/functions/parseISO.md +72 -0
- package/docs/functions/parseJsJson.md +38 -0
- package/docs/functions/parseObjectArgInfo.md +27 -0
- package/docs/functions/parseObjectArgumentInfos.md +25 -0
- package/docs/functions/parseObjectArguments.md +68 -0
- package/docs/functions/parseObjectArgumentsAsArgInfos.md +42 -0
- package/docs/functions/parseYaml.md +21 -0
- package/docs/functions/quoteStr.md +21 -0
- package/docs/functions/reControlCharsRegex.md +21 -0
- package/docs/functions/readFilenamesRecursiveSync.md +47 -0
- package/docs/functions/readableFromAsyncIterable.md +28 -0
- package/docs/functions/registerCoreTools.md +17 -0
- package/docs/functions/registerYamlTag.md +21 -0
- package/docs/functions/sanitizeFilename.md +37 -0
- package/docs/functions/sanitizeFilepath.md +31 -0
- package/docs/functions/saveConfigFile.md +25 -0
- package/docs/functions/scaleStrToParamsSize.md +27 -0
- package/docs/functions/simplifyObjectArguments.md +21 -0
- package/docs/functions/sortedValues.md +25 -0
- package/docs/functions/splitSentence.md +37 -0
- package/docs/functions/stringifyYaml.md +49 -0
- package/docs/functions/textToDate.md +23 -0
- package/docs/functions/throwError.md +37 -0
- package/docs/functions/toDate.md +76 -0
- package/docs/functions/toDateTime.md +21 -0
- package/docs/functions/trimStartOfStreamHelper.md +41 -0
- package/docs/functions/truncTo.md +47 -0
- package/docs/functions/uuid.md +23 -0
- package/docs/functions/uuidParse.md +21 -0
- package/docs/functions/uuidStringify.md +23 -0
- package/docs/functions/uuidValidate.md +21 -0
- package/docs/functions/uuidVersion.md +21 -0
- package/docs/functions/uuidv1.md +47 -0
- package/docs/functions/uuidv4.md +47 -0
- package/docs/functions/uuidv5.md +51 -0
- package/docs/functions/wait.md +21 -0
- package/docs/functions/xxhash.md +25 -0
- package/docs/functions/xxhash32.md +23 -0
- package/docs/functions/xxhash64.md +23 -0
- package/docs/functions/xxhashAsStr.md +25 -0
- package/docs/globals.md +236 -0
- package/docs/interfaces/AIChatAssistantMessageParam.md +29 -38
- package/docs/interfaces/AIChatContentPartImage.md +11 -16
- package/docs/interfaces/AIChatContentPartText.md +9 -12
- package/docs/interfaces/AIChatMessageParamBase.md +12 -19
- package/docs/interfaces/AIChatMessageToolCall.md +18 -21
- package/docs/interfaces/AIChatSystemMessageParam.md +16 -22
- package/docs/interfaces/AIChatToolMessageParam.md +19 -26
- package/docs/interfaces/AIChatUserMessageParam.md +32 -42
- package/docs/interfaces/AIChoiceConfig.md +31 -39
- package/docs/interfaces/AIResult.md +26 -33
- package/docs/interfaces/AIStreamParser.md +24 -18
- package/docs/interfaces/AIStreamParserOptions.md +8 -10
- package/docs/interfaces/BaseFunc.md +55 -75
- package/docs/interfaces/BaseFuncItem.md +43 -61
- package/docs/interfaces/CancelableAbilityOptions.md +43 -54
- package/docs/interfaces/ClientFuncItem.md +66 -83
- package/docs/interfaces/DotenvExpandOptions.md +15 -19
- package/docs/interfaces/DotenvExpandOutput.md +11 -14
- package/docs/interfaces/DotenvParseInput.md +6 -2
- package/docs/interfaces/DotenvParseOutput.md +6 -2
- package/docs/interfaces/DotenvPopulateInput.md +6 -2
- package/docs/interfaces/EventClientFuncParams.md +22 -33
- package/docs/interfaces/EventServerFuncParams.md +27 -35
- package/docs/interfaces/FewShotPromptTemplateOptions.md +58 -74
- package/docs/interfaces/FuncItem.md +53 -70
- package/docs/interfaces/FuncParam.md +29 -36
- package/docs/interfaces/FuncParams.md +6 -2
- package/docs/interfaces/Funcs.md +6 -2
- package/docs/interfaces/JsonFilter.md +6 -2
- package/docs/interfaces/ParseObjectArgumentOptions.md +23 -29
- package/docs/interfaces/PromptExampleSelectorOptions.md +13 -16
- package/docs/interfaces/PromptTemplateOptions.md +31 -40
- package/docs/interfaces/RemoteFuncItem.md +64 -82
- package/docs/interfaces/ResClientFuncParams.md +14 -19
- package/docs/interfaces/ResServerFuncParams.md +28 -36
- package/docs/interfaces/SanitizeFilenameOptions.md +11 -14
- package/docs/interfaces/ServerFuncItem.md +70 -88
- package/docs/interfaces/ServerFuncParams.md +15 -20
- package/docs/interfaces/StreamCallbacksAndOptions.md +36 -65
- package/docs/interfaces/TaskAbortControllers.md +6 -2
- package/docs/interfaces/TaskPromise.md +48 -61
- package/docs/interfaces/ToolFuncPackage.md +18 -32
- package/docs/type-aliases/AIChatContentPart.md +13 -0
- package/docs/type-aliases/AIChatMessageParam.md +13 -0
- package/docs/type-aliases/AIChatRole.md +13 -0
- package/docs/type-aliases/AIMessageType.md +13 -0
- package/docs/type-aliases/AIModelNameRule.md +13 -0
- package/docs/type-aliases/AIModelNameRuleFn.md +21 -0
- package/docs/type-aliases/AIModelNameRules.md +13 -0
- package/docs/type-aliases/AITextGenerationFinishReason.md +13 -0
- package/docs/type-aliases/ActionName.md +13 -0
- package/docs/type-aliases/AsyncTaskId.md +13 -0
- package/docs/type-aliases/EventErrorListenerFn.md +27 -0
- package/docs/type-aliases/EventListenerFn.md +25 -0
- package/docs/type-aliases/FStringPromptTemplateNode.md +16 -0
- package/docs/type-aliases/FuncParamType.md +13 -0
- package/docs/type-aliases/PromptExamples.md +17 -0
- package/docs/type-aliases/PromptTemplateType.md +13 -0
- package/docs/type-aliases/PromptType.md +13 -0
- package/docs/type-aliases/TFunc.md +23 -0
- package/docs/variables/AIChatRoles.md +13 -0
- package/docs/variables/AIMessageTypes.md +13 -0
- package/docs/variables/AITextGenerationFinishReasons.md +13 -0
- package/docs/variables/AbortErrorCode.md +13 -0
- package/docs/variables/ActionNames.md +13 -0
- package/docs/variables/AlreadyExistsErrorCode.md +13 -0
- package/docs/variables/ClientToolFuncSchema.md +87 -0
- package/docs/variables/DefaultAsyncSemaphoreCapacity.md +13 -0
- package/docs/variables/EventBusName.md +13 -0
- package/docs/variables/EventName.md +13 -0
- package/docs/variables/FilenameReservedRegex.md +16 -0
- package/docs/variables/HFBuiltins.md +92 -0
- package/docs/variables/InternalErrorCode.md +13 -0
- package/docs/variables/NotFoundErrorCode.md +13 -0
- package/docs/variables/NotImplementedErrorCode.md +13 -0
- package/docs/variables/PASSING_SCORE.md +13 -0
- package/docs/variables/PromptTemplateTypes.md +13 -0
- package/docs/variables/PromptTypes.md +16 -0
- package/docs/variables/RStreamErrCode.md +13 -0
- package/docs/variables/RemoteToolFuncSchema.md +87 -0
- package/docs/variables/ResponseRStreamErrCode.md +13 -0
- package/docs/variables/SSEChannelAlreadyClosedErrCode.md +13 -0
- package/docs/variables/ServerToolFuncSchema.md +87 -0
- package/docs/variables/ToolAsyncCancelableBit.md +13 -0
- package/docs/variables/ToolAsyncMultiTaskBit.md +13 -0
- package/docs/variables/ToolAsyncPriorityBit.md +13 -0
- package/docs/variables/ToolFuncSchema.md +125 -0
- package/docs/variables/WindowsReservedNameRegex.md +15 -0
- package/docs/variables/base32768.md +13 -0
- package/docs/variables/defaultTemplateFormat.md +13 -0
- package/docs/variables/event.md +13 -0
- package/docs/variables/eventClient.md +13 -0
- package/docs/variables/eventServer.md +13 -0
- package/docs/variables/lrucache.md +13 -0
- package/docs/variables/mimeType.md +13 -0
- package/docs/variables/uuidNIL.md +13 -0
- package/package.json +26 -27
- package/dist/chunk-W2LO3HZT.mjs +0 -1
- package/docs/.nojekyll +0 -1
- package/docs/enums/AsyncFeatureBits.md +0 -41
- package/docs/enums/AsyncFeatures.md +0 -41
- package/docs/enums/ErrorCode.md +0 -239
- package/docs/enums/XXHashAlgorithm.md +0 -30
- package/docs/modules.md +0 -4062
|
@@ -1,142 +1,32 @@
|
|
|
1
|
-
[
|
|
1
|
+
[**@isdk/ai-tool**](../README.md) • **Docs**
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
***
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[@isdk/ai-tool](../globals.md) / ServerTools
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
# Class: ServerTools
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## Extends
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
- [`ServerFuncItem`](../interfaces/ServerFuncItem.md).[`ToolFunc`](ToolFunc.md)
|
|
12
12
|
|
|
13
13
|
## Indexable
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
## Table of contents
|
|
18
|
-
|
|
19
|
-
### Constructors
|
|
20
|
-
|
|
21
|
-
- [constructor](ServerTools.md#constructor)
|
|
22
|
-
|
|
23
|
-
### Properties
|
|
24
|
-
|
|
25
|
-
- [$attributes](ServerTools.md#$attributes)
|
|
26
|
-
- [action](ServerTools.md#action)
|
|
27
|
-
- [allowExportFunc](ServerTools.md#allowexportfunc)
|
|
28
|
-
- [apiRoot](ServerTools.md#apiroot)
|
|
29
|
-
- [constructor](ServerTools.md#constructor-1)
|
|
30
|
-
- [defaultOptions](ServerTools.md#defaultoptions)
|
|
31
|
-
- [fetchOptions](ServerTools.md#fetchoptions)
|
|
32
|
-
- [isApi](ServerTools.md#isapi)
|
|
33
|
-
- [name](ServerTools.md#name)
|
|
34
|
-
- [nonExported1stChar](ServerTools.md#nonexported1stchar)
|
|
35
|
-
- [params](ServerTools.md#params)
|
|
36
|
-
- [result](ServerTools.md#result)
|
|
37
|
-
- [scope](ServerTools.md#scope)
|
|
38
|
-
- [setup](ServerTools.md#setup)
|
|
39
|
-
- [should](ServerTools.md#should)
|
|
40
|
-
- [stream](ServerTools.md#stream)
|
|
41
|
-
- [tags](ServerTools.md#tags)
|
|
42
|
-
- [\_apiRoot](ServerTools.md#_apiroot)
|
|
43
|
-
- [dataPath](ServerTools.md#datapath)
|
|
44
|
-
- [items](ServerTools.md#items)
|
|
45
|
-
|
|
46
|
-
### Accessors
|
|
47
|
-
|
|
48
|
-
- [apiRoot](ServerTools.md#apiroot-1)
|
|
49
|
-
|
|
50
|
-
### Methods
|
|
51
|
-
|
|
52
|
-
- [arr2ObjParams](ServerTools.md#arr2objparams)
|
|
53
|
-
- [assign](ServerTools.md#assign)
|
|
54
|
-
- [assignProperty](ServerTools.md#assignproperty)
|
|
55
|
-
- [assignPropertyTo](ServerTools.md#assignpropertyto)
|
|
56
|
-
- [assignTo](ServerTools.md#assignto)
|
|
57
|
-
- [clone](ServerTools.md#clone)
|
|
58
|
-
- [cloneTo](ServerTools.md#cloneto)
|
|
59
|
-
- [defineProperties](ServerTools.md#defineproperties)
|
|
60
|
-
- [exportTo](ServerTools.md#exportto)
|
|
61
|
-
- [func](ServerTools.md#func)
|
|
62
|
-
- [getFunc](ServerTools.md#getfunc)
|
|
63
|
-
- [getFuncWithPos](ServerTools.md#getfuncwithpos)
|
|
64
|
-
- [getProperties](ServerTools.md#getproperties)
|
|
65
|
-
- [hasAsyncFeature](ServerTools.md#hasasyncfeature)
|
|
66
|
-
- [hasOwnProperty](ServerTools.md#hasownproperty)
|
|
67
|
-
- [initialize](ServerTools.md#initialize)
|
|
68
|
-
- [isPrototypeOf](ServerTools.md#isprototypeof)
|
|
69
|
-
- [isSame](ServerTools.md#issame)
|
|
70
|
-
- [isStream](ServerTools.md#isstream)
|
|
71
|
-
- [mergeTo](ServerTools.md#mergeto)
|
|
72
|
-
- [obj2ArrParams](ServerTools.md#obj2arrparams)
|
|
73
|
-
- [propertyIsEnumerable](ServerTools.md#propertyisenumerable)
|
|
74
|
-
- [register](ServerTools.md#register)
|
|
75
|
-
- [run](ServerTools.md#run)
|
|
76
|
-
- [runAs](ServerTools.md#runas)
|
|
77
|
-
- [runAsSync](ServerTools.md#runassync)
|
|
78
|
-
- [runSync](ServerTools.md#runsync)
|
|
79
|
-
- [runWithPos](ServerTools.md#runwithpos)
|
|
80
|
-
- [runWithPosAs](ServerTools.md#runwithposas)
|
|
81
|
-
- [runWithPosAsSync](ServerTools.md#runwithposassync)
|
|
82
|
-
- [runWithPosSync](ServerTools.md#runwithpossync)
|
|
83
|
-
- [toJSON](ServerTools.md#tojson)
|
|
84
|
-
- [toLocaleString](ServerTools.md#tolocalestring)
|
|
85
|
-
- [toObject](ServerTools.md#toobject)
|
|
86
|
-
- [toString](ServerTools.md#tostring)
|
|
87
|
-
- [unregister](ServerTools.md#unregister)
|
|
88
|
-
- [valueOf](ServerTools.md#valueof)
|
|
89
|
-
- [assign](ServerTools.md#assign-1)
|
|
90
|
-
- [create](ServerTools.md#create)
|
|
91
|
-
- [defineProperties](ServerTools.md#defineproperties-1)
|
|
92
|
-
- [defineProperty](ServerTools.md#defineproperty)
|
|
93
|
-
- [entries](ServerTools.md#entries)
|
|
94
|
-
- [freeze](ServerTools.md#freeze)
|
|
95
|
-
- [fromEntries](ServerTools.md#fromentries)
|
|
96
|
-
- [get](ServerTools.md#get)
|
|
97
|
-
- [getAllByTag](ServerTools.md#getallbytag)
|
|
98
|
-
- [getByTag](ServerTools.md#getbytag)
|
|
99
|
-
- [getFunc](ServerTools.md#getfunc-1)
|
|
100
|
-
- [getFuncWithPos](ServerTools.md#getfuncwithpos-1)
|
|
101
|
-
- [getOwnPropertyDescriptor](ServerTools.md#getownpropertydescriptor)
|
|
102
|
-
- [getOwnPropertyDescriptors](ServerTools.md#getownpropertydescriptors)
|
|
103
|
-
- [getOwnPropertyNames](ServerTools.md#getownpropertynames)
|
|
104
|
-
- [getOwnPropertySymbols](ServerTools.md#getownpropertysymbols)
|
|
105
|
-
- [getProperties](ServerTools.md#getproperties-1)
|
|
106
|
-
- [getPrototypeOf](ServerTools.md#getprototypeof)
|
|
107
|
-
- [hasAsyncFeature](ServerTools.md#hasasyncfeature-1)
|
|
108
|
-
- [hasOwn](ServerTools.md#hasown)
|
|
109
|
-
- [is](ServerTools.md#is)
|
|
110
|
-
- [isExtensible](ServerTools.md#isextensible)
|
|
111
|
-
- [isFrozen](ServerTools.md#isfrozen)
|
|
112
|
-
- [isSealed](ServerTools.md#issealed)
|
|
113
|
-
- [keys](ServerTools.md#keys)
|
|
114
|
-
- [list](ServerTools.md#list)
|
|
115
|
-
- [preventExtensions](ServerTools.md#preventextensions)
|
|
116
|
-
- [register](ServerTools.md#register-1)
|
|
117
|
-
- [run](ServerTools.md#run-1)
|
|
118
|
-
- [runSync](ServerTools.md#runsync-1)
|
|
119
|
-
- [runWithPos](ServerTools.md#runwithpos-1)
|
|
120
|
-
- [runWithPosSync](ServerTools.md#runwithpossync-1)
|
|
121
|
-
- [seal](ServerTools.md#seal)
|
|
122
|
-
- [setApiRoot](ServerTools.md#setapiroot)
|
|
123
|
-
- [setPrototypeOf](ServerTools.md#setprototypeof)
|
|
124
|
-
- [toJSON](ServerTools.md#tojson-1)
|
|
125
|
-
- [unregister](ServerTools.md#unregister-1)
|
|
126
|
-
- [values](ServerTools.md#values)
|
|
15
|
+
\[`name`: `string`\]: `any`
|
|
127
16
|
|
|
128
17
|
## Constructors
|
|
129
18
|
|
|
130
|
-
###
|
|
19
|
+
### new ServerTools()
|
|
131
20
|
|
|
132
|
-
|
|
21
|
+
> **new ServerTools**(`name`, `options`): [`ServerTools`](ServerTools.md)
|
|
22
|
+
|
|
23
|
+
The initial value of Object.prototype.constructor is the standard built-in Object constructor.
|
|
133
24
|
|
|
134
25
|
#### Parameters
|
|
135
26
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
| `options` | `any` |
|
|
27
|
+
• **name**: `string` \| `Function` \| [`FuncItem`](../interfaces/FuncItem.md)
|
|
28
|
+
|
|
29
|
+
• **options**: `any` = `{}`
|
|
140
30
|
|
|
141
31
|
#### Returns
|
|
142
32
|
|
|
@@ -144,317 +34,303 @@
|
|
|
144
34
|
|
|
145
35
|
#### Inherited from
|
|
146
36
|
|
|
147
|
-
[ToolFunc](ToolFunc.md).[constructor](ToolFunc.md#
|
|
37
|
+
[`ToolFunc`](ToolFunc.md).[`constructor`](ToolFunc.md#constructors)
|
|
148
38
|
|
|
149
39
|
#### Defined in
|
|
150
40
|
|
|
151
|
-
[packages/ai-tool/src/tool-func.ts:210](https://github.com/isdk/ai-tool.js/blob/
|
|
41
|
+
[packages/ai-tool/src/tool-func.ts:210](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L210)
|
|
152
42
|
|
|
153
43
|
## Properties
|
|
154
44
|
|
|
155
45
|
### $attributes
|
|
156
46
|
|
|
157
|
-
|
|
47
|
+
> **$attributes**: `Properties`
|
|
158
48
|
|
|
159
49
|
#### Inherited from
|
|
160
50
|
|
|
161
|
-
[ToolFunc](ToolFunc.md).[
|
|
51
|
+
[`ToolFunc`](ToolFunc.md).[`$attributes`](ToolFunc.md#$attributes)
|
|
162
52
|
|
|
163
53
|
#### Defined in
|
|
164
54
|
|
|
165
|
-
|
|
55
|
+
node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/advance.d.ts:5
|
|
166
56
|
|
|
167
|
-
|
|
57
|
+
***
|
|
168
58
|
|
|
169
|
-
### action
|
|
59
|
+
### action?
|
|
170
60
|
|
|
171
|
-
|
|
61
|
+
> `optional` **action**: `"get"` \| `"post"` \| `"put"` \| `"delete"` \| `"patch"` \| `"list"` \| `"res"`
|
|
172
62
|
|
|
173
63
|
#### Inherited from
|
|
174
64
|
|
|
175
|
-
[ServerFuncItem](../interfaces/ServerFuncItem.md).[action](../interfaces/ServerFuncItem.md#action)
|
|
65
|
+
[`ServerFuncItem`](../interfaces/ServerFuncItem.md).[`action`](../interfaces/ServerFuncItem.md#action)
|
|
176
66
|
|
|
177
67
|
#### Defined in
|
|
178
68
|
|
|
179
|
-
[packages/ai-tool/src/utils/consts.ts:35](https://github.com/isdk/ai-tool.js/blob/
|
|
69
|
+
[packages/ai-tool/src/utils/consts.ts:35](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/consts.ts#L35)
|
|
180
70
|
|
|
181
|
-
|
|
71
|
+
***
|
|
182
72
|
|
|
183
|
-
### allowExportFunc
|
|
73
|
+
### allowExportFunc?
|
|
184
74
|
|
|
185
|
-
|
|
75
|
+
> `optional` **allowExportFunc**: `boolean`
|
|
186
76
|
|
|
187
77
|
#### Inherited from
|
|
188
78
|
|
|
189
|
-
[ServerFuncItem](../interfaces/ServerFuncItem.md).[allowExportFunc](../interfaces/ServerFuncItem.md#allowexportfunc)
|
|
79
|
+
[`ServerFuncItem`](../interfaces/ServerFuncItem.md).[`allowExportFunc`](../interfaces/ServerFuncItem.md#allowexportfunc)
|
|
190
80
|
|
|
191
81
|
#### Defined in
|
|
192
82
|
|
|
193
|
-
[packages/ai-tool/src/server-tools.ts:14](https://github.com/isdk/ai-tool.js/blob/
|
|
83
|
+
[packages/ai-tool/src/server-tools.ts:14](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/server-tools.ts#L14)
|
|
194
84
|
|
|
195
|
-
|
|
85
|
+
***
|
|
196
86
|
|
|
197
|
-
### apiRoot
|
|
87
|
+
### apiRoot?
|
|
198
88
|
|
|
199
|
-
|
|
89
|
+
> `optional` **apiRoot**: `string`
|
|
200
90
|
|
|
201
91
|
#### Inherited from
|
|
202
92
|
|
|
203
|
-
[ServerFuncItem](../interfaces/ServerFuncItem.md).[apiRoot](../interfaces/ServerFuncItem.md#apiroot)
|
|
93
|
+
[`ServerFuncItem`](../interfaces/ServerFuncItem.md).[`apiRoot`](../interfaces/ServerFuncItem.md#apiroot)
|
|
204
94
|
|
|
205
95
|
#### Defined in
|
|
206
96
|
|
|
207
|
-
[packages/ai-tool/src/utils/consts.ts:34](https://github.com/isdk/ai-tool.js/blob/
|
|
97
|
+
[packages/ai-tool/src/utils/consts.ts:34](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/consts.ts#L34)
|
|
208
98
|
|
|
209
|
-
|
|
99
|
+
***
|
|
210
100
|
|
|
211
101
|
### constructor
|
|
212
102
|
|
|
213
|
-
|
|
103
|
+
> **constructor**: `Function`
|
|
214
104
|
|
|
215
105
|
The initial value of Object.prototype.constructor is the standard built-in Object constructor.
|
|
216
106
|
|
|
217
107
|
#### Defined in
|
|
218
108
|
|
|
219
|
-
|
|
109
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:125
|
|
220
110
|
|
|
221
|
-
|
|
111
|
+
***
|
|
222
112
|
|
|
223
113
|
### defaultOptions
|
|
224
114
|
|
|
225
|
-
|
|
115
|
+
> **defaultOptions**: `object`
|
|
226
116
|
|
|
227
117
|
The default options for export and assign
|
|
228
118
|
|
|
229
|
-
####
|
|
119
|
+
#### assign?
|
|
120
|
+
|
|
121
|
+
> `optional` **assign**: `IMergeOptions`
|
|
122
|
+
|
|
123
|
+
#### export?
|
|
230
124
|
|
|
231
|
-
|
|
232
|
-
| :------ | :------ |
|
|
233
|
-
| `assign?` | `IMergeOptions` |
|
|
234
|
-
| `export?` | `IMergeOptions` |
|
|
125
|
+
> `optional` **export**: `IMergeOptions`
|
|
235
126
|
|
|
236
127
|
#### Inherited from
|
|
237
128
|
|
|
238
|
-
[ToolFunc](ToolFunc.md).[defaultOptions](ToolFunc.md#defaultoptions)
|
|
129
|
+
[`ToolFunc`](ToolFunc.md).[`defaultOptions`](ToolFunc.md#defaultoptions)
|
|
239
130
|
|
|
240
131
|
#### Defined in
|
|
241
132
|
|
|
242
|
-
|
|
133
|
+
node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:74
|
|
243
134
|
|
|
244
|
-
|
|
135
|
+
***
|
|
245
136
|
|
|
246
|
-
### fetchOptions
|
|
137
|
+
### fetchOptions?
|
|
247
138
|
|
|
248
|
-
|
|
139
|
+
> `optional` **fetchOptions**: `any`
|
|
249
140
|
|
|
250
141
|
#### Inherited from
|
|
251
142
|
|
|
252
|
-
[ServerFuncItem](../interfaces/ServerFuncItem.md).[fetchOptions](../interfaces/ServerFuncItem.md#fetchoptions)
|
|
143
|
+
[`ServerFuncItem`](../interfaces/ServerFuncItem.md).[`fetchOptions`](../interfaces/ServerFuncItem.md#fetchoptions)
|
|
253
144
|
|
|
254
145
|
#### Defined in
|
|
255
146
|
|
|
256
|
-
[packages/ai-tool/src/utils/consts.ts:36](https://github.com/isdk/ai-tool.js/blob/
|
|
147
|
+
[packages/ai-tool/src/utils/consts.ts:36](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/consts.ts#L36)
|
|
257
148
|
|
|
258
|
-
|
|
149
|
+
***
|
|
259
150
|
|
|
260
|
-
### isApi
|
|
151
|
+
### isApi?
|
|
261
152
|
|
|
262
|
-
|
|
153
|
+
> `optional` **isApi**: `boolean`
|
|
263
154
|
|
|
264
155
|
#### Inherited from
|
|
265
156
|
|
|
266
|
-
[ToolFunc](ToolFunc.md).[isApi](ToolFunc.md#isapi)
|
|
157
|
+
[`ToolFunc`](ToolFunc.md).[`isApi`](ToolFunc.md#isapi)
|
|
267
158
|
|
|
268
159
|
#### Defined in
|
|
269
160
|
|
|
270
|
-
[packages/ai-tool/src/tool-func.ts:47](https://github.com/isdk/ai-tool.js/blob/
|
|
161
|
+
[packages/ai-tool/src/tool-func.ts:47](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L47)
|
|
271
162
|
|
|
272
|
-
|
|
163
|
+
***
|
|
273
164
|
|
|
274
|
-
### name
|
|
165
|
+
### name?
|
|
275
166
|
|
|
276
|
-
|
|
167
|
+
> `optional` **name**: `string`
|
|
277
168
|
|
|
278
169
|
#### Inherited from
|
|
279
170
|
|
|
280
|
-
[ToolFunc](ToolFunc.md).[name](ToolFunc.md#name)
|
|
171
|
+
[`ToolFunc`](ToolFunc.md).[`name`](ToolFunc.md#name)
|
|
281
172
|
|
|
282
173
|
#### Defined in
|
|
283
174
|
|
|
284
|
-
[packages/ai-tool/src/tool-func.ts:41](https://github.com/isdk/ai-tool.js/blob/
|
|
175
|
+
[packages/ai-tool/src/tool-func.ts:41](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L41)
|
|
285
176
|
|
|
286
|
-
|
|
177
|
+
***
|
|
287
178
|
|
|
288
179
|
### nonExported1stChar
|
|
289
180
|
|
|
290
|
-
|
|
181
|
+
> **nonExported1stChar**: `string`
|
|
291
182
|
|
|
292
183
|
the property with the default prefix '$' will not be exported.
|
|
293
184
|
|
|
294
185
|
#### Inherited from
|
|
295
186
|
|
|
296
|
-
[ToolFunc](ToolFunc.md).[nonExported1stChar](ToolFunc.md#nonexported1stchar)
|
|
187
|
+
[`ToolFunc`](ToolFunc.md).[`nonExported1stChar`](ToolFunc.md#nonexported1stchar)
|
|
297
188
|
|
|
298
189
|
#### Defined in
|
|
299
190
|
|
|
300
|
-
|
|
191
|
+
node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:78
|
|
301
192
|
|
|
302
|
-
|
|
193
|
+
***
|
|
303
194
|
|
|
304
|
-
### params
|
|
195
|
+
### params?
|
|
305
196
|
|
|
306
|
-
|
|
197
|
+
> `optional` **params**: [`FuncParams`](../interfaces/FuncParams.md) \| [`FuncParam`](../interfaces/FuncParam.md)[]
|
|
307
198
|
|
|
308
199
|
#### Inherited from
|
|
309
200
|
|
|
310
|
-
[ToolFunc](ToolFunc.md).[params](ToolFunc.md#params)
|
|
201
|
+
[`ToolFunc`](ToolFunc.md).[`params`](ToolFunc.md#params)
|
|
311
202
|
|
|
312
203
|
#### Defined in
|
|
313
204
|
|
|
314
|
-
[packages/ai-tool/src/tool-func.ts:42](https://github.com/isdk/ai-tool.js/blob/
|
|
205
|
+
[packages/ai-tool/src/tool-func.ts:42](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L42)
|
|
315
206
|
|
|
316
|
-
|
|
207
|
+
***
|
|
317
208
|
|
|
318
|
-
### result
|
|
209
|
+
### result?
|
|
319
210
|
|
|
320
|
-
|
|
211
|
+
> `optional` **result**: `string`
|
|
321
212
|
|
|
322
213
|
#### Inherited from
|
|
323
214
|
|
|
324
|
-
[ToolFunc](ToolFunc.md).[result](ToolFunc.md#result)
|
|
215
|
+
[`ToolFunc`](ToolFunc.md).[`result`](ToolFunc.md#result)
|
|
325
216
|
|
|
326
217
|
#### Defined in
|
|
327
218
|
|
|
328
|
-
[packages/ai-tool/src/tool-func.ts:43](https://github.com/isdk/ai-tool.js/blob/
|
|
219
|
+
[packages/ai-tool/src/tool-func.ts:43](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L43)
|
|
329
220
|
|
|
330
|
-
|
|
221
|
+
***
|
|
331
222
|
|
|
332
|
-
### scope
|
|
223
|
+
### scope?
|
|
333
224
|
|
|
334
|
-
|
|
225
|
+
> `optional` **scope**: `any`
|
|
335
226
|
|
|
336
227
|
#### Inherited from
|
|
337
228
|
|
|
338
|
-
[ToolFunc](ToolFunc.md).[scope](ToolFunc.md#scope)
|
|
229
|
+
[`ToolFunc`](ToolFunc.md).[`scope`](ToolFunc.md#scope)
|
|
339
230
|
|
|
340
231
|
#### Defined in
|
|
341
232
|
|
|
342
|
-
[packages/ai-tool/src/tool-func.ts:44](https://github.com/isdk/ai-tool.js/blob/
|
|
233
|
+
[packages/ai-tool/src/tool-func.ts:44](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L44)
|
|
343
234
|
|
|
344
|
-
|
|
235
|
+
***
|
|
345
236
|
|
|
346
|
-
### setup
|
|
237
|
+
### setup()?
|
|
347
238
|
|
|
348
|
-
|
|
239
|
+
> `optional` **setup**: (`this`, `options`?) => `void`
|
|
349
240
|
|
|
350
|
-
####
|
|
351
|
-
|
|
352
|
-
▸ (`this`, `options?`): `void`
|
|
241
|
+
#### Parameters
|
|
353
242
|
|
|
354
|
-
|
|
243
|
+
• **this**: [`ToolFunc`](ToolFunc.md)
|
|
355
244
|
|
|
356
|
-
|
|
357
|
-
| :------ | :------ |
|
|
358
|
-
| `this` | [`ToolFunc`](ToolFunc.md) |
|
|
359
|
-
| `options?` | [`FuncItem`](../interfaces/FuncItem.md) |
|
|
245
|
+
• **options?**: [`FuncItem`](../interfaces/FuncItem.md)
|
|
360
246
|
|
|
361
|
-
|
|
247
|
+
#### Returns
|
|
362
248
|
|
|
363
249
|
`void`
|
|
364
250
|
|
|
365
251
|
#### Inherited from
|
|
366
252
|
|
|
367
|
-
[ToolFunc](ToolFunc.md).[setup](ToolFunc.md#setup)
|
|
253
|
+
[`ToolFunc`](ToolFunc.md).[`setup`](ToolFunc.md#setup)
|
|
368
254
|
|
|
369
255
|
#### Defined in
|
|
370
256
|
|
|
371
|
-
[packages/ai-tool/src/tool-func.ts:46](https://github.com/isdk/ai-tool.js/blob/
|
|
257
|
+
[packages/ai-tool/src/tool-func.ts:46](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L46)
|
|
372
258
|
|
|
373
|
-
|
|
259
|
+
***
|
|
374
260
|
|
|
375
261
|
### should
|
|
376
262
|
|
|
377
|
-
|
|
263
|
+
> **should**: `Assertion`
|
|
378
264
|
|
|
379
265
|
#### Inherited from
|
|
380
266
|
|
|
381
|
-
[ToolFunc](ToolFunc.md).[should](ToolFunc.md#should)
|
|
267
|
+
[`ToolFunc`](ToolFunc.md).[`should`](ToolFunc.md#should)
|
|
382
268
|
|
|
383
269
|
#### Defined in
|
|
384
270
|
|
|
385
|
-
|
|
271
|
+
node\_modules/.pnpm/@types+chai@4.3.16/node\_modules/@types/chai/index.d.ts:2100
|
|
386
272
|
|
|
387
|
-
|
|
273
|
+
***
|
|
388
274
|
|
|
389
|
-
### stream
|
|
275
|
+
### stream?
|
|
390
276
|
|
|
391
|
-
|
|
277
|
+
> `optional` **stream**: `boolean`
|
|
392
278
|
|
|
393
279
|
#### Inherited from
|
|
394
280
|
|
|
395
|
-
[ToolFunc](ToolFunc.md).[stream](ToolFunc.md#stream)
|
|
281
|
+
[`ToolFunc`](ToolFunc.md).[`stream`](ToolFunc.md#stream)
|
|
396
282
|
|
|
397
283
|
#### Defined in
|
|
398
284
|
|
|
399
|
-
[packages/ai-tool/src/tool-func.ts:48](https://github.com/isdk/ai-tool.js/blob/
|
|
285
|
+
[packages/ai-tool/src/tool-func.ts:48](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L48)
|
|
400
286
|
|
|
401
|
-
|
|
287
|
+
***
|
|
402
288
|
|
|
403
|
-
### tags
|
|
289
|
+
### tags?
|
|
404
290
|
|
|
405
|
-
|
|
291
|
+
> `optional` **tags**: `string` \| `string`[]
|
|
406
292
|
|
|
407
293
|
#### Inherited from
|
|
408
294
|
|
|
409
|
-
[ToolFunc](ToolFunc.md).[tags](ToolFunc.md#tags)
|
|
295
|
+
[`ToolFunc`](ToolFunc.md).[`tags`](ToolFunc.md#tags)
|
|
410
296
|
|
|
411
297
|
#### Defined in
|
|
412
298
|
|
|
413
|
-
[packages/ai-tool/src/tool-func.ts:45](https://github.com/isdk/ai-tool.js/blob/
|
|
299
|
+
[packages/ai-tool/src/tool-func.ts:45](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L45)
|
|
414
300
|
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
### \_apiRoot
|
|
418
|
-
|
|
419
|
-
▪ `Static` `Private` `Optional` **\_apiRoot**: `string`
|
|
420
|
-
|
|
421
|
-
#### Defined in
|
|
422
|
-
|
|
423
|
-
[packages/ai-tool/src/server-tools.ts:25](https://github.com/isdk/ai-tool.js/blob/c5e620338f3b80d6ef09148577c5087098896d8b/src/server-tools.ts#L25)
|
|
424
|
-
|
|
425
|
-
___
|
|
301
|
+
***
|
|
426
302
|
|
|
427
303
|
### dataPath
|
|
428
304
|
|
|
429
|
-
|
|
305
|
+
> `static` **dataPath**: `string`
|
|
430
306
|
|
|
431
307
|
#### Inherited from
|
|
432
308
|
|
|
433
|
-
[ToolFunc](ToolFunc.md).[dataPath](ToolFunc.md#datapath)
|
|
309
|
+
[`ToolFunc`](ToolFunc.md).[`dataPath`](ToolFunc.md#datapath)
|
|
434
310
|
|
|
435
311
|
#### Defined in
|
|
436
312
|
|
|
437
|
-
[packages/ai-tool/src/tool-func.ts:75](https://github.com/isdk/ai-tool.js/blob/
|
|
313
|
+
[packages/ai-tool/src/tool-func.ts:75](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L75)
|
|
438
314
|
|
|
439
|
-
|
|
315
|
+
***
|
|
440
316
|
|
|
441
317
|
### items
|
|
442
318
|
|
|
443
|
-
|
|
319
|
+
> `static` **items**: [`Funcs`](../interfaces/Funcs.md) = `{}`
|
|
444
320
|
|
|
445
321
|
#### Inherited from
|
|
446
322
|
|
|
447
|
-
[ToolFunc](ToolFunc.md).[items](ToolFunc.md#items)
|
|
323
|
+
[`ToolFunc`](ToolFunc.md).[`items`](ToolFunc.md#items)
|
|
448
324
|
|
|
449
325
|
#### Defined in
|
|
450
326
|
|
|
451
|
-
[packages/ai-tool/src/tool-func.ts:74](https://github.com/isdk/ai-tool.js/blob/
|
|
327
|
+
[packages/ai-tool/src/tool-func.ts:74](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L74)
|
|
452
328
|
|
|
453
329
|
## Accessors
|
|
454
330
|
|
|
455
331
|
### apiRoot
|
|
456
332
|
|
|
457
|
-
|
|
333
|
+
> `get` `static` **apiRoot**(): `undefined` \| `string`
|
|
458
334
|
|
|
459
335
|
#### Returns
|
|
460
336
|
|
|
@@ -462,23 +338,21 @@ ___
|
|
|
462
338
|
|
|
463
339
|
#### Inherited from
|
|
464
340
|
|
|
465
|
-
ServerFuncItem.apiRoot
|
|
341
|
+
`ServerFuncItem.apiRoot`
|
|
466
342
|
|
|
467
343
|
#### Defined in
|
|
468
344
|
|
|
469
|
-
[packages/ai-tool/src/server-tools.ts:26](https://github.com/isdk/ai-tool.js/blob/
|
|
345
|
+
[packages/ai-tool/src/server-tools.ts:26](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/server-tools.ts#L26)
|
|
470
346
|
|
|
471
347
|
## Methods
|
|
472
348
|
|
|
473
|
-
### arr2ObjParams
|
|
349
|
+
### arr2ObjParams()
|
|
474
350
|
|
|
475
|
-
|
|
351
|
+
> **arr2ObjParams**(`params`): `any`[]
|
|
476
352
|
|
|
477
353
|
#### Parameters
|
|
478
354
|
|
|
479
|
-
|
|
480
|
-
| :------ | :------ |
|
|
481
|
-
| `params` | `any`[] |
|
|
355
|
+
• **params**: `any`[]
|
|
482
356
|
|
|
483
357
|
#### Returns
|
|
484
358
|
|
|
@@ -486,26 +360,27 @@ ServerFuncItem.apiRoot
|
|
|
486
360
|
|
|
487
361
|
#### Inherited from
|
|
488
362
|
|
|
489
|
-
[ToolFunc](ToolFunc.md).[arr2ObjParams](ToolFunc.md#arr2objparams)
|
|
363
|
+
[`ToolFunc`](ToolFunc.md).[`arr2ObjParams`](ToolFunc.md#arr2objparams)
|
|
490
364
|
|
|
491
365
|
#### Defined in
|
|
492
366
|
|
|
493
|
-
[packages/ai-tool/src/tool-func.ts:254](https://github.com/isdk/ai-tool.js/blob/
|
|
367
|
+
[packages/ai-tool/src/tool-func.ts:254](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L254)
|
|
494
368
|
|
|
495
|
-
|
|
369
|
+
***
|
|
496
370
|
|
|
497
|
-
### assign
|
|
371
|
+
### assign()
|
|
498
372
|
|
|
499
|
-
|
|
373
|
+
> **assign**(`src`, `options`?): `this`
|
|
500
374
|
|
|
501
375
|
Assign the values from the src object.
|
|
502
376
|
|
|
503
377
|
#### Parameters
|
|
504
378
|
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
379
|
+
• **src**: `any`
|
|
380
|
+
|
|
381
|
+
the source object
|
|
382
|
+
|
|
383
|
+
• **options?**: `IMergeOptions`
|
|
509
384
|
|
|
510
385
|
#### Returns
|
|
511
386
|
|
|
@@ -515,29 +390,39 @@ this object
|
|
|
515
390
|
|
|
516
391
|
#### Inherited from
|
|
517
392
|
|
|
518
|
-
[ToolFunc](ToolFunc.md).[assign](ToolFunc.md#assign)
|
|
393
|
+
[`ToolFunc`](ToolFunc.md).[`assign`](ToolFunc.md#assign-1)
|
|
519
394
|
|
|
520
395
|
#### Defined in
|
|
521
396
|
|
|
522
|
-
|
|
397
|
+
node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:106
|
|
523
398
|
|
|
524
|
-
|
|
399
|
+
***
|
|
525
400
|
|
|
526
|
-
### assignProperty
|
|
401
|
+
### assignProperty()
|
|
527
402
|
|
|
528
|
-
|
|
403
|
+
> **assignProperty**(`src`, `name`, `value`, `attrs`?, `options`?): `void`
|
|
529
404
|
|
|
530
405
|
Assign a property of src to this object.
|
|
531
406
|
|
|
532
407
|
#### Parameters
|
|
533
408
|
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
409
|
+
• **src**: `any`
|
|
410
|
+
|
|
411
|
+
the src object
|
|
412
|
+
|
|
413
|
+
• **name**: `string`
|
|
414
|
+
|
|
415
|
+
the property name to assign
|
|
416
|
+
|
|
417
|
+
• **value**: `any`
|
|
418
|
+
|
|
419
|
+
the property value to assign
|
|
420
|
+
|
|
421
|
+
• **attrs?**: `any`
|
|
422
|
+
|
|
423
|
+
the attributes object
|
|
424
|
+
|
|
425
|
+
• **options?**: `IMergeOptions`
|
|
541
426
|
|
|
542
427
|
#### Returns
|
|
543
428
|
|
|
@@ -545,59 +430,71 @@ Assign a property of src to this object.
|
|
|
545
430
|
|
|
546
431
|
#### Inherited from
|
|
547
432
|
|
|
548
|
-
[ToolFunc](ToolFunc.md).[assignProperty](ToolFunc.md#assignproperty)
|
|
433
|
+
[`ToolFunc`](ToolFunc.md).[`assignProperty`](ToolFunc.md#assignproperty)
|
|
549
434
|
|
|
550
435
|
#### Defined in
|
|
551
436
|
|
|
552
|
-
|
|
437
|
+
node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:117
|
|
553
438
|
|
|
554
|
-
|
|
439
|
+
***
|
|
555
440
|
|
|
556
|
-
### assignPropertyTo
|
|
441
|
+
### assignPropertyTo()
|
|
557
442
|
|
|
558
|
-
|
|
443
|
+
> `abstract` **assignPropertyTo**(`dest`, `src`, `name`, `value`, `attrs`?, `options`?): `void`
|
|
559
444
|
|
|
560
445
|
Assign the property value from the src to destination object.
|
|
561
446
|
|
|
562
447
|
#### Parameters
|
|
563
448
|
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
449
|
+
• **dest**: `any`
|
|
450
|
+
|
|
451
|
+
The destination object
|
|
452
|
+
|
|
453
|
+
• **src**: `any`
|
|
454
|
+
|
|
455
|
+
The src object
|
|
456
|
+
|
|
457
|
+
• **name**: `string`
|
|
458
|
+
|
|
459
|
+
The property name
|
|
460
|
+
|
|
461
|
+
• **value**: `any`
|
|
462
|
+
|
|
463
|
+
The property value
|
|
464
|
+
|
|
465
|
+
• **attrs?**: `any`
|
|
466
|
+
|
|
467
|
+
The attributes object of the property
|
|
468
|
+
|
|
469
|
+
• **options?**: `IMergeOptions`
|
|
572
470
|
|
|
573
471
|
#### Returns
|
|
574
472
|
|
|
575
473
|
`void`
|
|
576
474
|
|
|
577
|
-
**`Abstract`**
|
|
578
|
-
|
|
579
475
|
#### Inherited from
|
|
580
476
|
|
|
581
|
-
[ToolFunc](ToolFunc.md).[assignPropertyTo](ToolFunc.md#assignpropertyto)
|
|
477
|
+
[`ToolFunc`](ToolFunc.md).[`assignPropertyTo`](ToolFunc.md#assignpropertyto)
|
|
582
478
|
|
|
583
479
|
#### Defined in
|
|
584
480
|
|
|
585
|
-
|
|
481
|
+
node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:131
|
|
586
482
|
|
|
587
|
-
|
|
483
|
+
***
|
|
588
484
|
|
|
589
|
-
### assignTo
|
|
485
|
+
### assignTo()
|
|
590
486
|
|
|
591
|
-
|
|
487
|
+
> **assignTo**(`dest`?, `options`?): `any`
|
|
592
488
|
|
|
593
489
|
Assign this attributes to the dest object
|
|
594
490
|
|
|
595
491
|
#### Parameters
|
|
596
492
|
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
493
|
+
• **dest?**: `any`
|
|
494
|
+
|
|
495
|
+
the destination object
|
|
496
|
+
|
|
497
|
+
• **options?**: `IMergeOptions`
|
|
601
498
|
|
|
602
499
|
#### Returns
|
|
603
500
|
|
|
@@ -607,25 +504,23 @@ the dest object
|
|
|
607
504
|
|
|
608
505
|
#### Inherited from
|
|
609
506
|
|
|
610
|
-
[ToolFunc](ToolFunc.md).[assignTo](ToolFunc.md#assignto)
|
|
507
|
+
[`ToolFunc`](ToolFunc.md).[`assignTo`](ToolFunc.md#assignto)
|
|
611
508
|
|
|
612
509
|
#### Defined in
|
|
613
510
|
|
|
614
|
-
|
|
511
|
+
node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:191
|
|
615
512
|
|
|
616
|
-
|
|
513
|
+
***
|
|
617
514
|
|
|
618
|
-
### clone
|
|
515
|
+
### clone()
|
|
619
516
|
|
|
620
|
-
|
|
517
|
+
> **clone**(`options`?): `any`
|
|
621
518
|
|
|
622
519
|
Create a new object with the same values of attributes.
|
|
623
520
|
|
|
624
521
|
#### Parameters
|
|
625
522
|
|
|
626
|
-
|
|
627
|
-
| :------ | :------ |
|
|
628
|
-
| `options?` | `IMergeOptions` |
|
|
523
|
+
• **options?**: `IMergeOptions`
|
|
629
524
|
|
|
630
525
|
#### Returns
|
|
631
526
|
|
|
@@ -635,26 +530,27 @@ the new object
|
|
|
635
530
|
|
|
636
531
|
#### Inherited from
|
|
637
532
|
|
|
638
|
-
[ToolFunc](ToolFunc.md).[clone](ToolFunc.md#clone)
|
|
533
|
+
[`ToolFunc`](ToolFunc.md).[`clone`](ToolFunc.md#clone)
|
|
639
534
|
|
|
640
535
|
#### Defined in
|
|
641
536
|
|
|
642
|
-
|
|
537
|
+
node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:155
|
|
643
538
|
|
|
644
|
-
|
|
539
|
+
***
|
|
645
540
|
|
|
646
|
-
### cloneTo
|
|
541
|
+
### cloneTo()
|
|
647
542
|
|
|
648
|
-
|
|
543
|
+
> **cloneTo**(`dest`, `options`?): `any`
|
|
649
544
|
|
|
650
545
|
Create and assign the values to the destination object.
|
|
651
546
|
|
|
652
547
|
#### Parameters
|
|
653
548
|
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
549
|
+
• **dest**: `any`
|
|
550
|
+
|
|
551
|
+
the destination object
|
|
552
|
+
|
|
553
|
+
• **options?**: `IMergeOptions`
|
|
658
554
|
|
|
659
555
|
#### Returns
|
|
660
556
|
|
|
@@ -664,54 +560,53 @@ the new dest object
|
|
|
664
560
|
|
|
665
561
|
#### Inherited from
|
|
666
562
|
|
|
667
|
-
[ToolFunc](ToolFunc.md).[cloneTo](ToolFunc.md#cloneto)
|
|
563
|
+
[`ToolFunc`](ToolFunc.md).[`cloneTo`](ToolFunc.md#cloneto)
|
|
668
564
|
|
|
669
565
|
#### Defined in
|
|
670
566
|
|
|
671
|
-
|
|
567
|
+
node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:148
|
|
672
568
|
|
|
673
|
-
|
|
569
|
+
***
|
|
674
570
|
|
|
675
|
-
### defineProperties
|
|
571
|
+
### defineProperties()
|
|
676
572
|
|
|
677
|
-
|
|
573
|
+
> `abstract` **defineProperties**(`aProperties`): `any`
|
|
678
574
|
|
|
679
575
|
Define the attributes of this object.
|
|
680
576
|
|
|
681
577
|
#### Parameters
|
|
682
578
|
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
579
|
+
• **aProperties**: `SimplePropDescriptors`
|
|
580
|
+
|
|
581
|
+
the defined attributes of the object
|
|
686
582
|
|
|
687
583
|
#### Returns
|
|
688
584
|
|
|
689
585
|
`any`
|
|
690
586
|
|
|
691
|
-
**`Abstract`**
|
|
692
|
-
|
|
693
587
|
#### Inherited from
|
|
694
588
|
|
|
695
|
-
[ToolFunc](ToolFunc.md).[defineProperties](ToolFunc.md#defineproperties)
|
|
589
|
+
[`ToolFunc`](ToolFunc.md).[`defineProperties`](ToolFunc.md#defineproperties)
|
|
696
590
|
|
|
697
591
|
#### Defined in
|
|
698
592
|
|
|
699
|
-
|
|
593
|
+
node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:89
|
|
700
594
|
|
|
701
|
-
|
|
595
|
+
***
|
|
702
596
|
|
|
703
|
-
### exportTo
|
|
597
|
+
### exportTo()
|
|
704
598
|
|
|
705
|
-
|
|
599
|
+
> **exportTo**(`dest`, `options`?): `any`
|
|
706
600
|
|
|
707
601
|
Export attributes to the dest json object.
|
|
708
602
|
|
|
709
603
|
#### Parameters
|
|
710
604
|
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
605
|
+
• **dest**: `any`
|
|
606
|
+
|
|
607
|
+
the destination object
|
|
608
|
+
|
|
609
|
+
• **options?**: `IExportOptions`
|
|
715
610
|
|
|
716
611
|
#### Returns
|
|
717
612
|
|
|
@@ -721,23 +616,21 @@ the dest object.
|
|
|
721
616
|
|
|
722
617
|
#### Inherited from
|
|
723
618
|
|
|
724
|
-
[ToolFunc](ToolFunc.md).[exportTo](ToolFunc.md#exportto)
|
|
619
|
+
[`ToolFunc`](ToolFunc.md).[`exportTo`](ToolFunc.md#exportto)
|
|
725
620
|
|
|
726
621
|
#### Defined in
|
|
727
622
|
|
|
728
|
-
|
|
623
|
+
node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:173
|
|
729
624
|
|
|
730
|
-
|
|
625
|
+
***
|
|
731
626
|
|
|
732
|
-
### func
|
|
627
|
+
### func()
|
|
733
628
|
|
|
734
|
-
|
|
629
|
+
> **func**(`__namedParameters`): `any`
|
|
735
630
|
|
|
736
631
|
#### Parameters
|
|
737
632
|
|
|
738
|
-
|
|
739
|
-
| :------ | :------ |
|
|
740
|
-
| `«destructured»` | `Object` |
|
|
633
|
+
• **\_\_namedParameters**
|
|
741
634
|
|
|
742
635
|
#### Returns
|
|
743
636
|
|
|
@@ -745,23 +638,21 @@ ___
|
|
|
745
638
|
|
|
746
639
|
#### Inherited from
|
|
747
640
|
|
|
748
|
-
[ToolFunc](ToolFunc.md).[func](ToolFunc.md#func)
|
|
641
|
+
[`ToolFunc`](ToolFunc.md).[`func`](ToolFunc.md#func)
|
|
749
642
|
|
|
750
643
|
#### Defined in
|
|
751
644
|
|
|
752
|
-
[packages/ai-tool/src/server-tools.ts:59](https://github.com/isdk/ai-tool.js/blob/
|
|
645
|
+
[packages/ai-tool/src/server-tools.ts:59](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/server-tools.ts#L59)
|
|
753
646
|
|
|
754
|
-
|
|
647
|
+
***
|
|
755
648
|
|
|
756
|
-
### getFunc
|
|
649
|
+
### getFunc()
|
|
757
650
|
|
|
758
|
-
|
|
651
|
+
> **getFunc**(`name`?): `any`
|
|
759
652
|
|
|
760
653
|
#### Parameters
|
|
761
654
|
|
|
762
|
-
|
|
763
|
-
| :------ | :------ |
|
|
764
|
-
| `name?` | `string` |
|
|
655
|
+
• **name?**: `string`
|
|
765
656
|
|
|
766
657
|
#### Returns
|
|
767
658
|
|
|
@@ -769,23 +660,21 @@ ___
|
|
|
769
660
|
|
|
770
661
|
#### Inherited from
|
|
771
662
|
|
|
772
|
-
[ToolFunc](ToolFunc.md).[getFunc](ToolFunc.md#getfunc)
|
|
663
|
+
[`ToolFunc`](ToolFunc.md).[`getFunc`](ToolFunc.md#getfunc)
|
|
773
664
|
|
|
774
665
|
#### Defined in
|
|
775
666
|
|
|
776
|
-
[packages/ai-tool/src/tool-func.ts:307](https://github.com/isdk/ai-tool.js/blob/
|
|
667
|
+
[packages/ai-tool/src/tool-func.ts:307](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L307)
|
|
777
668
|
|
|
778
|
-
|
|
669
|
+
***
|
|
779
670
|
|
|
780
|
-
### getFuncWithPos
|
|
671
|
+
### getFuncWithPos()
|
|
781
672
|
|
|
782
|
-
|
|
673
|
+
> **getFuncWithPos**(`name`?): `any`
|
|
783
674
|
|
|
784
675
|
#### Parameters
|
|
785
676
|
|
|
786
|
-
|
|
787
|
-
| :------ | :------ |
|
|
788
|
-
| `name?` | `string` |
|
|
677
|
+
• **name?**: `string`
|
|
789
678
|
|
|
790
679
|
#### Returns
|
|
791
680
|
|
|
@@ -793,17 +682,17 @@ ___
|
|
|
793
682
|
|
|
794
683
|
#### Inherited from
|
|
795
684
|
|
|
796
|
-
[ToolFunc](ToolFunc.md).[getFuncWithPos](ToolFunc.md#getfuncwithpos)
|
|
685
|
+
[`ToolFunc`](ToolFunc.md).[`getFuncWithPos`](ToolFunc.md#getfuncwithpos)
|
|
797
686
|
|
|
798
687
|
#### Defined in
|
|
799
688
|
|
|
800
|
-
[packages/ai-tool/src/tool-func.ts:331](https://github.com/isdk/ai-tool.js/blob/
|
|
689
|
+
[packages/ai-tool/src/tool-func.ts:331](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L331)
|
|
801
690
|
|
|
802
|
-
|
|
691
|
+
***
|
|
803
692
|
|
|
804
|
-
### getProperties
|
|
693
|
+
### getProperties()
|
|
805
694
|
|
|
806
|
-
|
|
695
|
+
> `abstract` **getProperties**(): `PropDescriptors`
|
|
807
696
|
|
|
808
697
|
Get the defined attributes.
|
|
809
698
|
|
|
@@ -813,27 +702,23 @@ Get the defined attributes.
|
|
|
813
702
|
|
|
814
703
|
the descriptors of properties object
|
|
815
704
|
|
|
816
|
-
**`Abstract`**
|
|
817
|
-
|
|
818
705
|
#### Inherited from
|
|
819
706
|
|
|
820
|
-
[ToolFunc](ToolFunc.md).[getProperties](ToolFunc.md#getproperties)
|
|
707
|
+
[`ToolFunc`](ToolFunc.md).[`getProperties`](ToolFunc.md#getproperties)
|
|
821
708
|
|
|
822
709
|
#### Defined in
|
|
823
710
|
|
|
824
|
-
|
|
711
|
+
node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:98
|
|
825
712
|
|
|
826
|
-
|
|
713
|
+
***
|
|
827
714
|
|
|
828
|
-
### hasAsyncFeature
|
|
715
|
+
### hasAsyncFeature()
|
|
829
716
|
|
|
830
|
-
|
|
717
|
+
> **hasAsyncFeature**(`feature`): `boolean`
|
|
831
718
|
|
|
832
719
|
#### Parameters
|
|
833
720
|
|
|
834
|
-
|
|
835
|
-
| :------ | :------ |
|
|
836
|
-
| `feature` | [`AsyncFeatureBits`](../enums/AsyncFeatureBits.md) |
|
|
721
|
+
• **feature**: [`AsyncFeatureBits`](../enumerations/AsyncFeatureBits.md)
|
|
837
722
|
|
|
838
723
|
#### Returns
|
|
839
724
|
|
|
@@ -841,25 +726,25 @@ ___
|
|
|
841
726
|
|
|
842
727
|
#### Inherited from
|
|
843
728
|
|
|
844
|
-
[ToolFunc](ToolFunc.md).[hasAsyncFeature](ToolFunc.md#hasasyncfeature)
|
|
729
|
+
[`ToolFunc`](ToolFunc.md).[`hasAsyncFeature`](ToolFunc.md#hasasyncfeature)
|
|
845
730
|
|
|
846
731
|
#### Defined in
|
|
847
732
|
|
|
848
|
-
[packages/ai-tool/src/tool-func.ts:336](https://github.com/isdk/ai-tool.js/blob/
|
|
733
|
+
[packages/ai-tool/src/tool-func.ts:336](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L336)
|
|
849
734
|
|
|
850
|
-
|
|
735
|
+
***
|
|
851
736
|
|
|
852
|
-
### hasOwnProperty
|
|
737
|
+
### hasOwnProperty()
|
|
853
738
|
|
|
854
|
-
|
|
739
|
+
> **hasOwnProperty**(`v`): `boolean`
|
|
855
740
|
|
|
856
741
|
Determines whether an object has a property with the specified name.
|
|
857
742
|
|
|
858
743
|
#### Parameters
|
|
859
744
|
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
745
|
+
• **v**: `PropertyKey`
|
|
746
|
+
|
|
747
|
+
A property name.
|
|
863
748
|
|
|
864
749
|
#### Returns
|
|
865
750
|
|
|
@@ -867,25 +752,23 @@ Determines whether an object has a property with the specified name.
|
|
|
867
752
|
|
|
868
753
|
#### Inherited from
|
|
869
754
|
|
|
870
|
-
[ToolFunc](ToolFunc.md).[hasOwnProperty](ToolFunc.md#hasownproperty)
|
|
755
|
+
[`ToolFunc`](ToolFunc.md).[`hasOwnProperty`](ToolFunc.md#hasownproperty)
|
|
871
756
|
|
|
872
757
|
#### Defined in
|
|
873
758
|
|
|
874
|
-
|
|
759
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:140
|
|
875
760
|
|
|
876
|
-
|
|
761
|
+
***
|
|
877
762
|
|
|
878
|
-
### initialize
|
|
763
|
+
### initialize()
|
|
879
764
|
|
|
880
|
-
|
|
765
|
+
> **initialize**(`src`?): `this`
|
|
881
766
|
|
|
882
767
|
Initialize object and assign attribute values from src if src exists.
|
|
883
768
|
|
|
884
769
|
#### Parameters
|
|
885
770
|
|
|
886
|
-
|
|
887
|
-
| :------ | :------ |
|
|
888
|
-
| `src?` | `any` |
|
|
771
|
+
• **src?**: `any`
|
|
889
772
|
|
|
890
773
|
#### Returns
|
|
891
774
|
|
|
@@ -895,25 +778,25 @@ this object.
|
|
|
895
778
|
|
|
896
779
|
#### Inherited from
|
|
897
780
|
|
|
898
|
-
[ToolFunc](ToolFunc.md).[initialize](ToolFunc.md#initialize)
|
|
781
|
+
[`ToolFunc`](ToolFunc.md).[`initialize`](ToolFunc.md#initialize)
|
|
899
782
|
|
|
900
783
|
#### Defined in
|
|
901
784
|
|
|
902
|
-
|
|
785
|
+
node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:139
|
|
903
786
|
|
|
904
|
-
|
|
787
|
+
***
|
|
905
788
|
|
|
906
|
-
### isPrototypeOf
|
|
789
|
+
### isPrototypeOf()
|
|
907
790
|
|
|
908
|
-
|
|
791
|
+
> **isPrototypeOf**(`v`): `boolean`
|
|
909
792
|
|
|
910
793
|
Determines whether an object exists in another object's prototype chain.
|
|
911
794
|
|
|
912
795
|
#### Parameters
|
|
913
796
|
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
797
|
+
• **v**: `Object`
|
|
798
|
+
|
|
799
|
+
Another object whose prototype chain is to be checked.
|
|
917
800
|
|
|
918
801
|
#### Returns
|
|
919
802
|
|
|
@@ -921,26 +804,27 @@ Determines whether an object exists in another object's prototype chain.
|
|
|
921
804
|
|
|
922
805
|
#### Inherited from
|
|
923
806
|
|
|
924
|
-
[ToolFunc](ToolFunc.md).[isPrototypeOf](ToolFunc.md#isprototypeof)
|
|
807
|
+
[`ToolFunc`](ToolFunc.md).[`isPrototypeOf`](ToolFunc.md#isprototypeof)
|
|
925
808
|
|
|
926
809
|
#### Defined in
|
|
927
810
|
|
|
928
|
-
|
|
811
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:146
|
|
929
812
|
|
|
930
|
-
|
|
813
|
+
***
|
|
931
814
|
|
|
932
|
-
### isSame
|
|
815
|
+
### isSame()
|
|
933
816
|
|
|
934
|
-
|
|
817
|
+
> **isSame**(`src`, `options`?): `boolean`
|
|
935
818
|
|
|
936
819
|
Check the src object whether “equals” this object.
|
|
937
820
|
|
|
938
821
|
#### Parameters
|
|
939
822
|
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
823
|
+
• **src**: `any`
|
|
824
|
+
|
|
825
|
+
The source object
|
|
826
|
+
|
|
827
|
+
• **options?**: `IMergeOptions`
|
|
944
828
|
|
|
945
829
|
#### Returns
|
|
946
830
|
|
|
@@ -948,23 +832,21 @@ Check the src object whether “equals” this object.
|
|
|
948
832
|
|
|
949
833
|
#### Inherited from
|
|
950
834
|
|
|
951
|
-
[ToolFunc](ToolFunc.md).[isSame](ToolFunc.md#issame)
|
|
835
|
+
[`ToolFunc`](ToolFunc.md).[`isSame`](ToolFunc.md#issame)
|
|
952
836
|
|
|
953
837
|
#### Defined in
|
|
954
838
|
|
|
955
|
-
|
|
839
|
+
node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:200
|
|
956
840
|
|
|
957
|
-
|
|
841
|
+
***
|
|
958
842
|
|
|
959
|
-
### isStream
|
|
843
|
+
### isStream()
|
|
960
844
|
|
|
961
|
-
|
|
845
|
+
> **isStream**(`params`): `undefined` \| `boolean`
|
|
962
846
|
|
|
963
847
|
#### Parameters
|
|
964
848
|
|
|
965
|
-
|
|
966
|
-
| :------ | :------ |
|
|
967
|
-
| `params` | `any` |
|
|
849
|
+
• **params**: `any`
|
|
968
850
|
|
|
969
851
|
#### Returns
|
|
970
852
|
|
|
@@ -972,26 +854,27 @@ ___
|
|
|
972
854
|
|
|
973
855
|
#### Inherited from
|
|
974
856
|
|
|
975
|
-
[ToolFunc](ToolFunc.md).[isStream](ToolFunc.md#isstream)
|
|
857
|
+
[`ToolFunc`](ToolFunc.md).[`isStream`](ToolFunc.md#isstream)
|
|
976
858
|
|
|
977
859
|
#### Defined in
|
|
978
860
|
|
|
979
|
-
[packages/ai-tool/src/tool-func.ts:342](https://github.com/isdk/ai-tool.js/blob/
|
|
861
|
+
[packages/ai-tool/src/tool-func.ts:342](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L342)
|
|
980
862
|
|
|
981
|
-
|
|
863
|
+
***
|
|
982
864
|
|
|
983
|
-
### mergeTo
|
|
865
|
+
### mergeTo()
|
|
984
866
|
|
|
985
|
-
|
|
867
|
+
> **mergeTo**(`dest`, `options`?): `any`
|
|
986
868
|
|
|
987
869
|
Merge this attributes to dest object.
|
|
988
870
|
|
|
989
871
|
#### Parameters
|
|
990
872
|
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
873
|
+
• **dest**: `any`
|
|
874
|
+
|
|
875
|
+
The destination object
|
|
876
|
+
|
|
877
|
+
• **options?**: `IMergeOptions`
|
|
995
878
|
|
|
996
879
|
#### Returns
|
|
997
880
|
|
|
@@ -1001,23 +884,21 @@ the dest object.
|
|
|
1001
884
|
|
|
1002
885
|
#### Inherited from
|
|
1003
886
|
|
|
1004
|
-
[ToolFunc](ToolFunc.md).[mergeTo](ToolFunc.md#mergeto)
|
|
887
|
+
[`ToolFunc`](ToolFunc.md).[`mergeTo`](ToolFunc.md#mergeto)
|
|
1005
888
|
|
|
1006
889
|
#### Defined in
|
|
1007
890
|
|
|
1008
|
-
|
|
891
|
+
node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:164
|
|
1009
892
|
|
|
1010
|
-
|
|
893
|
+
***
|
|
1011
894
|
|
|
1012
|
-
### obj2ArrParams
|
|
895
|
+
### obj2ArrParams()
|
|
1013
896
|
|
|
1014
|
-
|
|
897
|
+
> **obj2ArrParams**(`params`?): `any`[]
|
|
1015
898
|
|
|
1016
899
|
#### Parameters
|
|
1017
900
|
|
|
1018
|
-
|
|
1019
|
-
| :------ | :------ |
|
|
1020
|
-
| `params?` | `any` |
|
|
901
|
+
• **params?**: `any`
|
|
1021
902
|
|
|
1022
903
|
#### Returns
|
|
1023
904
|
|
|
@@ -1025,25 +906,25 @@ ___
|
|
|
1025
906
|
|
|
1026
907
|
#### Inherited from
|
|
1027
908
|
|
|
1028
|
-
[ToolFunc](ToolFunc.md).[obj2ArrParams](ToolFunc.md#obj2arrparams)
|
|
909
|
+
[`ToolFunc`](ToolFunc.md).[`obj2ArrParams`](ToolFunc.md#obj2arrparams)
|
|
1029
910
|
|
|
1030
911
|
#### Defined in
|
|
1031
912
|
|
|
1032
|
-
[packages/ai-tool/src/tool-func.ts:267](https://github.com/isdk/ai-tool.js/blob/
|
|
913
|
+
[packages/ai-tool/src/tool-func.ts:267](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L267)
|
|
1033
914
|
|
|
1034
|
-
|
|
915
|
+
***
|
|
1035
916
|
|
|
1036
|
-
### propertyIsEnumerable
|
|
917
|
+
### propertyIsEnumerable()
|
|
1037
918
|
|
|
1038
|
-
|
|
919
|
+
> **propertyIsEnumerable**(`v`): `boolean`
|
|
1039
920
|
|
|
1040
921
|
Determines whether a specified property is enumerable.
|
|
1041
922
|
|
|
1042
923
|
#### Parameters
|
|
1043
924
|
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
925
|
+
• **v**: `PropertyKey`
|
|
926
|
+
|
|
927
|
+
A property name.
|
|
1047
928
|
|
|
1048
929
|
#### Returns
|
|
1049
930
|
|
|
@@ -1051,17 +932,17 @@ Determines whether a specified property is enumerable.
|
|
|
1051
932
|
|
|
1052
933
|
#### Inherited from
|
|
1053
934
|
|
|
1054
|
-
[ToolFunc](ToolFunc.md).[propertyIsEnumerable](ToolFunc.md#propertyisenumerable)
|
|
935
|
+
[`ToolFunc`](ToolFunc.md).[`propertyIsEnumerable`](ToolFunc.md#propertyisenumerable)
|
|
1055
936
|
|
|
1056
937
|
#### Defined in
|
|
1057
938
|
|
|
1058
|
-
|
|
939
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:152
|
|
1059
940
|
|
|
1060
|
-
|
|
941
|
+
***
|
|
1061
942
|
|
|
1062
|
-
### register
|
|
943
|
+
### register()
|
|
1063
944
|
|
|
1064
|
-
|
|
945
|
+
> **register**(): `boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
1065
946
|
|
|
1066
947
|
#### Returns
|
|
1067
948
|
|
|
@@ -1069,23 +950,21 @@ ___
|
|
|
1069
950
|
|
|
1070
951
|
#### Inherited from
|
|
1071
952
|
|
|
1072
|
-
[ToolFunc](ToolFunc.md).[register](ToolFunc.md#register)
|
|
953
|
+
[`ToolFunc`](ToolFunc.md).[`register`](ToolFunc.md#register)
|
|
1073
954
|
|
|
1074
955
|
#### Defined in
|
|
1075
956
|
|
|
1076
|
-
[packages/ai-tool/src/tool-func.ts:237](https://github.com/isdk/ai-tool.js/blob/
|
|
957
|
+
[packages/ai-tool/src/tool-func.ts:237](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L237)
|
|
1077
958
|
|
|
1078
|
-
|
|
959
|
+
***
|
|
1079
960
|
|
|
1080
|
-
### run
|
|
961
|
+
### run()
|
|
1081
962
|
|
|
1082
|
-
|
|
963
|
+
> **run**(`params`?): `Promise`\<`any`\>
|
|
1083
964
|
|
|
1084
965
|
#### Parameters
|
|
1085
966
|
|
|
1086
|
-
|
|
1087
|
-
| :------ | :------ |
|
|
1088
|
-
| `params?` | `any` |
|
|
967
|
+
• **params?**: `any`
|
|
1089
968
|
|
|
1090
969
|
#### Returns
|
|
1091
970
|
|
|
@@ -1093,24 +972,23 @@ ___
|
|
|
1093
972
|
|
|
1094
973
|
#### Inherited from
|
|
1095
974
|
|
|
1096
|
-
[ToolFunc](ToolFunc.md).[run](ToolFunc.md#run)
|
|
975
|
+
[`ToolFunc`](ToolFunc.md).[`run`](ToolFunc.md#run)
|
|
1097
976
|
|
|
1098
977
|
#### Defined in
|
|
1099
978
|
|
|
1100
|
-
[packages/ai-tool/src/tool-func.ts:294](https://github.com/isdk/ai-tool.js/blob/
|
|
979
|
+
[packages/ai-tool/src/tool-func.ts:294](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L294)
|
|
1101
980
|
|
|
1102
|
-
|
|
981
|
+
***
|
|
1103
982
|
|
|
1104
|
-
### runAs
|
|
983
|
+
### runAs()
|
|
1105
984
|
|
|
1106
|
-
|
|
985
|
+
> **runAs**(`name`, `params`?): `Promise`\<`any`\>
|
|
1107
986
|
|
|
1108
987
|
#### Parameters
|
|
1109
988
|
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
| `params?` | `any` |
|
|
989
|
+
• **name**: `string`
|
|
990
|
+
|
|
991
|
+
• **params?**: `any`
|
|
1114
992
|
|
|
1115
993
|
#### Returns
|
|
1116
994
|
|
|
@@ -1118,24 +996,23 @@ ___
|
|
|
1118
996
|
|
|
1119
997
|
#### Inherited from
|
|
1120
998
|
|
|
1121
|
-
[ToolFunc](ToolFunc.md).[runAs](ToolFunc.md#runas)
|
|
999
|
+
[`ToolFunc`](ToolFunc.md).[`runAs`](ToolFunc.md#runas)
|
|
1122
1000
|
|
|
1123
1001
|
#### Defined in
|
|
1124
1002
|
|
|
1125
|
-
[packages/ai-tool/src/tool-func.ts:298](https://github.com/isdk/ai-tool.js/blob/
|
|
1003
|
+
[packages/ai-tool/src/tool-func.ts:298](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L298)
|
|
1126
1004
|
|
|
1127
|
-
|
|
1005
|
+
***
|
|
1128
1006
|
|
|
1129
|
-
### runAsSync
|
|
1007
|
+
### runAsSync()
|
|
1130
1008
|
|
|
1131
|
-
|
|
1009
|
+
> **runAsSync**(`name`, `params`?): `any`
|
|
1132
1010
|
|
|
1133
1011
|
#### Parameters
|
|
1134
1012
|
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
| `params?` | `any` |
|
|
1013
|
+
• **name**: `string`
|
|
1014
|
+
|
|
1015
|
+
• **params?**: `any`
|
|
1139
1016
|
|
|
1140
1017
|
#### Returns
|
|
1141
1018
|
|
|
@@ -1143,23 +1020,21 @@ ___
|
|
|
1143
1020
|
|
|
1144
1021
|
#### Inherited from
|
|
1145
1022
|
|
|
1146
|
-
[ToolFunc](ToolFunc.md).[runAsSync](ToolFunc.md#runassync)
|
|
1023
|
+
[`ToolFunc`](ToolFunc.md).[`runAsSync`](ToolFunc.md#runassync)
|
|
1147
1024
|
|
|
1148
1025
|
#### Defined in
|
|
1149
1026
|
|
|
1150
|
-
[packages/ai-tool/src/tool-func.ts:302](https://github.com/isdk/ai-tool.js/blob/
|
|
1027
|
+
[packages/ai-tool/src/tool-func.ts:302](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L302)
|
|
1151
1028
|
|
|
1152
|
-
|
|
1029
|
+
***
|
|
1153
1030
|
|
|
1154
|
-
### runSync
|
|
1031
|
+
### runSync()
|
|
1155
1032
|
|
|
1156
|
-
|
|
1033
|
+
> **runSync**(`params`?): `any`
|
|
1157
1034
|
|
|
1158
1035
|
#### Parameters
|
|
1159
1036
|
|
|
1160
|
-
|
|
1161
|
-
| :------ | :------ |
|
|
1162
|
-
| `params?` | `any` |
|
|
1037
|
+
• **params?**: `any`
|
|
1163
1038
|
|
|
1164
1039
|
#### Returns
|
|
1165
1040
|
|
|
@@ -1167,23 +1042,21 @@ ___
|
|
|
1167
1042
|
|
|
1168
1043
|
#### Inherited from
|
|
1169
1044
|
|
|
1170
|
-
[ToolFunc](ToolFunc.md).[runSync](ToolFunc.md#runsync)
|
|
1045
|
+
[`ToolFunc`](ToolFunc.md).[`runSync`](ToolFunc.md#runsync)
|
|
1171
1046
|
|
|
1172
1047
|
#### Defined in
|
|
1173
1048
|
|
|
1174
|
-
[packages/ai-tool/src/tool-func.ts:280](https://github.com/isdk/ai-tool.js/blob/
|
|
1049
|
+
[packages/ai-tool/src/tool-func.ts:280](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L280)
|
|
1175
1050
|
|
|
1176
|
-
|
|
1051
|
+
***
|
|
1177
1052
|
|
|
1178
|
-
### runWithPos
|
|
1053
|
+
### runWithPos()
|
|
1179
1054
|
|
|
1180
|
-
|
|
1055
|
+
> **runWithPos**(...`params`): `Promise`\<`any`\>
|
|
1181
1056
|
|
|
1182
1057
|
#### Parameters
|
|
1183
1058
|
|
|
1184
|
-
|
|
1185
|
-
| :------ | :------ |
|
|
1186
|
-
| `...params` | `any`[] |
|
|
1059
|
+
• ...**params**: `any`[]
|
|
1187
1060
|
|
|
1188
1061
|
#### Returns
|
|
1189
1062
|
|
|
@@ -1191,24 +1064,23 @@ ___
|
|
|
1191
1064
|
|
|
1192
1065
|
#### Inherited from
|
|
1193
1066
|
|
|
1194
|
-
[ToolFunc](ToolFunc.md).[runWithPos](ToolFunc.md#runwithpos)
|
|
1067
|
+
[`ToolFunc`](ToolFunc.md).[`runWithPos`](ToolFunc.md#runwithpos)
|
|
1195
1068
|
|
|
1196
1069
|
#### Defined in
|
|
1197
1070
|
|
|
1198
|
-
[packages/ai-tool/src/tool-func.ts:323](https://github.com/isdk/ai-tool.js/blob/
|
|
1071
|
+
[packages/ai-tool/src/tool-func.ts:323](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L323)
|
|
1199
1072
|
|
|
1200
|
-
|
|
1073
|
+
***
|
|
1201
1074
|
|
|
1202
|
-
### runWithPosAs
|
|
1075
|
+
### runWithPosAs()
|
|
1203
1076
|
|
|
1204
|
-
|
|
1077
|
+
> **runWithPosAs**(`name`, ...`params`): `Promise`\<`any`\>
|
|
1205
1078
|
|
|
1206
1079
|
#### Parameters
|
|
1207
1080
|
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
| `...params` | `any`[] |
|
|
1081
|
+
• **name**: `string`
|
|
1082
|
+
|
|
1083
|
+
• ...**params**: `any`[]
|
|
1212
1084
|
|
|
1213
1085
|
#### Returns
|
|
1214
1086
|
|
|
@@ -1216,24 +1088,23 @@ ___
|
|
|
1216
1088
|
|
|
1217
1089
|
#### Inherited from
|
|
1218
1090
|
|
|
1219
|
-
[ToolFunc](ToolFunc.md).[runWithPosAs](ToolFunc.md#runwithposas)
|
|
1091
|
+
[`ToolFunc`](ToolFunc.md).[`runWithPosAs`](ToolFunc.md#runwithposas)
|
|
1220
1092
|
|
|
1221
1093
|
#### Defined in
|
|
1222
1094
|
|
|
1223
|
-
[packages/ai-tool/src/tool-func.ts:327](https://github.com/isdk/ai-tool.js/blob/
|
|
1095
|
+
[packages/ai-tool/src/tool-func.ts:327](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L327)
|
|
1224
1096
|
|
|
1225
|
-
|
|
1097
|
+
***
|
|
1226
1098
|
|
|
1227
|
-
### runWithPosAsSync
|
|
1099
|
+
### runWithPosAsSync()
|
|
1228
1100
|
|
|
1229
|
-
|
|
1101
|
+
> **runWithPosAsSync**(`name`, ...`params`): `any`
|
|
1230
1102
|
|
|
1231
1103
|
#### Parameters
|
|
1232
1104
|
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
| `...params` | `any`[] |
|
|
1105
|
+
• **name**: `string`
|
|
1106
|
+
|
|
1107
|
+
• ...**params**: `any`[]
|
|
1237
1108
|
|
|
1238
1109
|
#### Returns
|
|
1239
1110
|
|
|
@@ -1241,23 +1112,21 @@ ___
|
|
|
1241
1112
|
|
|
1242
1113
|
#### Inherited from
|
|
1243
1114
|
|
|
1244
|
-
[ToolFunc](ToolFunc.md).[runWithPosAsSync](ToolFunc.md#runwithposassync)
|
|
1115
|
+
[`ToolFunc`](ToolFunc.md).[`runWithPosAsSync`](ToolFunc.md#runwithposassync)
|
|
1245
1116
|
|
|
1246
1117
|
#### Defined in
|
|
1247
1118
|
|
|
1248
|
-
[packages/ai-tool/src/tool-func.ts:319](https://github.com/isdk/ai-tool.js/blob/
|
|
1119
|
+
[packages/ai-tool/src/tool-func.ts:319](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L319)
|
|
1249
1120
|
|
|
1250
|
-
|
|
1121
|
+
***
|
|
1251
1122
|
|
|
1252
|
-
### runWithPosSync
|
|
1123
|
+
### runWithPosSync()
|
|
1253
1124
|
|
|
1254
|
-
|
|
1125
|
+
> **runWithPosSync**(...`params`): `any`
|
|
1255
1126
|
|
|
1256
1127
|
#### Parameters
|
|
1257
1128
|
|
|
1258
|
-
|
|
1259
|
-
| :------ | :------ |
|
|
1260
|
-
| `...params` | `any`[] |
|
|
1129
|
+
• ...**params**: `any`[]
|
|
1261
1130
|
|
|
1262
1131
|
#### Returns
|
|
1263
1132
|
|
|
@@ -1265,17 +1134,17 @@ ___
|
|
|
1265
1134
|
|
|
1266
1135
|
#### Inherited from
|
|
1267
1136
|
|
|
1268
|
-
[ToolFunc](ToolFunc.md).[runWithPosSync](ToolFunc.md#runwithpossync)
|
|
1137
|
+
[`ToolFunc`](ToolFunc.md).[`runWithPosSync`](ToolFunc.md#runwithpossync)
|
|
1269
1138
|
|
|
1270
1139
|
#### Defined in
|
|
1271
1140
|
|
|
1272
|
-
[packages/ai-tool/src/tool-func.ts:312](https://github.com/isdk/ai-tool.js/blob/
|
|
1141
|
+
[packages/ai-tool/src/tool-func.ts:312](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L312)
|
|
1273
1142
|
|
|
1274
|
-
|
|
1143
|
+
***
|
|
1275
1144
|
|
|
1276
|
-
### toJSON
|
|
1145
|
+
### toJSON()
|
|
1277
1146
|
|
|
1278
|
-
|
|
1147
|
+
> **toJSON**(): `any`
|
|
1279
1148
|
|
|
1280
1149
|
#### Returns
|
|
1281
1150
|
|
|
@@ -1283,17 +1152,17 @@ ___
|
|
|
1283
1152
|
|
|
1284
1153
|
#### Inherited from
|
|
1285
1154
|
|
|
1286
|
-
[ToolFunc](ToolFunc.md).[toJSON](ToolFunc.md#tojson)
|
|
1155
|
+
[`ToolFunc`](ToolFunc.md).[`toJSON`](ToolFunc.md#tojson)
|
|
1287
1156
|
|
|
1288
1157
|
#### Defined in
|
|
1289
1158
|
|
|
1290
|
-
|
|
1159
|
+
node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:182
|
|
1291
1160
|
|
|
1292
|
-
|
|
1161
|
+
***
|
|
1293
1162
|
|
|
1294
|
-
### toLocaleString
|
|
1163
|
+
### toLocaleString()
|
|
1295
1164
|
|
|
1296
|
-
|
|
1165
|
+
> **toLocaleString**(): `string`
|
|
1297
1166
|
|
|
1298
1167
|
Returns a date converted to a string using the current locale.
|
|
1299
1168
|
|
|
@@ -1303,25 +1172,23 @@ Returns a date converted to a string using the current locale.
|
|
|
1303
1172
|
|
|
1304
1173
|
#### Inherited from
|
|
1305
1174
|
|
|
1306
|
-
[ToolFunc](ToolFunc.md).[toLocaleString](ToolFunc.md#tolocalestring)
|
|
1175
|
+
[`ToolFunc`](ToolFunc.md).[`toLocaleString`](ToolFunc.md#tolocalestring)
|
|
1307
1176
|
|
|
1308
1177
|
#### Defined in
|
|
1309
1178
|
|
|
1310
|
-
|
|
1179
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:131
|
|
1311
1180
|
|
|
1312
|
-
|
|
1181
|
+
***
|
|
1313
1182
|
|
|
1314
|
-
### toObject
|
|
1183
|
+
### toObject()
|
|
1315
1184
|
|
|
1316
|
-
|
|
1185
|
+
> **toObject**(`options`?): `any`
|
|
1317
1186
|
|
|
1318
1187
|
Convert the attributes to the json object
|
|
1319
1188
|
|
|
1320
1189
|
#### Parameters
|
|
1321
1190
|
|
|
1322
|
-
|
|
1323
|
-
| :------ | :------ |
|
|
1324
|
-
| `options?` | `any` |
|
|
1191
|
+
• **options?**: `any`
|
|
1325
1192
|
|
|
1326
1193
|
#### Returns
|
|
1327
1194
|
|
|
@@ -1331,17 +1198,17 @@ the json object.
|
|
|
1331
1198
|
|
|
1332
1199
|
#### Inherited from
|
|
1333
1200
|
|
|
1334
|
-
[ToolFunc](ToolFunc.md).[toObject](ToolFunc.md#toobject)
|
|
1201
|
+
[`ToolFunc`](ToolFunc.md).[`toObject`](ToolFunc.md#toobject)
|
|
1335
1202
|
|
|
1336
1203
|
#### Defined in
|
|
1337
1204
|
|
|
1338
|
-
|
|
1205
|
+
node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:181
|
|
1339
1206
|
|
|
1340
|
-
|
|
1207
|
+
***
|
|
1341
1208
|
|
|
1342
|
-
### toString
|
|
1209
|
+
### toString()
|
|
1343
1210
|
|
|
1344
|
-
|
|
1211
|
+
> **toString**(): `string`
|
|
1345
1212
|
|
|
1346
1213
|
Returns a string representation of an object.
|
|
1347
1214
|
|
|
@@ -1351,17 +1218,17 @@ Returns a string representation of an object.
|
|
|
1351
1218
|
|
|
1352
1219
|
#### Inherited from
|
|
1353
1220
|
|
|
1354
|
-
[ToolFunc](ToolFunc.md).[toString](ToolFunc.md#tostring)
|
|
1221
|
+
[`ToolFunc`](ToolFunc.md).[`toString`](ToolFunc.md#tostring)
|
|
1355
1222
|
|
|
1356
1223
|
#### Defined in
|
|
1357
1224
|
|
|
1358
|
-
|
|
1225
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:128
|
|
1359
1226
|
|
|
1360
|
-
|
|
1227
|
+
***
|
|
1361
1228
|
|
|
1362
|
-
### unregister
|
|
1229
|
+
### unregister()
|
|
1363
1230
|
|
|
1364
|
-
|
|
1231
|
+
> **unregister**(): `any`
|
|
1365
1232
|
|
|
1366
1233
|
#### Returns
|
|
1367
1234
|
|
|
@@ -1369,17 +1236,17 @@ ___
|
|
|
1369
1236
|
|
|
1370
1237
|
#### Inherited from
|
|
1371
1238
|
|
|
1372
|
-
[ToolFunc](ToolFunc.md).[unregister](ToolFunc.md#unregister)
|
|
1239
|
+
[`ToolFunc`](ToolFunc.md).[`unregister`](ToolFunc.md#unregister)
|
|
1373
1240
|
|
|
1374
1241
|
#### Defined in
|
|
1375
1242
|
|
|
1376
|
-
[packages/ai-tool/src/tool-func.ts:250](https://github.com/isdk/ai-tool.js/blob/
|
|
1243
|
+
[packages/ai-tool/src/tool-func.ts:250](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L250)
|
|
1377
1244
|
|
|
1378
|
-
|
|
1245
|
+
***
|
|
1379
1246
|
|
|
1380
|
-
### valueOf
|
|
1247
|
+
### valueOf()
|
|
1381
1248
|
|
|
1382
|
-
|
|
1249
|
+
> **valueOf**(): `Object`
|
|
1383
1250
|
|
|
1384
1251
|
Returns the primitive value of the specified object.
|
|
1385
1252
|
|
|
@@ -1389,201 +1256,239 @@ Returns the primitive value of the specified object.
|
|
|
1389
1256
|
|
|
1390
1257
|
#### Inherited from
|
|
1391
1258
|
|
|
1392
|
-
[ToolFunc](ToolFunc.md).[valueOf](ToolFunc.md#valueof)
|
|
1259
|
+
[`ToolFunc`](ToolFunc.md).[`valueOf`](ToolFunc.md#valueof)
|
|
1393
1260
|
|
|
1394
1261
|
#### Defined in
|
|
1395
1262
|
|
|
1396
|
-
|
|
1263
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:134
|
|
1264
|
+
|
|
1265
|
+
***
|
|
1397
1266
|
|
|
1398
|
-
|
|
1267
|
+
### assign()
|
|
1399
1268
|
|
|
1400
|
-
|
|
1269
|
+
#### assign(target, source)
|
|
1401
1270
|
|
|
1402
|
-
|
|
1271
|
+
> `static` **assign**\<`T`, `U`\>(`target`, `source`): `T` & `U`
|
|
1403
1272
|
|
|
1404
1273
|
Copy the values of all of the enumerable own properties from one or more source objects to a
|
|
1405
1274
|
target object. Returns the target object.
|
|
1406
1275
|
|
|
1407
|
-
|
|
1276
|
+
##### Type Parameters
|
|
1408
1277
|
|
|
1409
|
-
|
|
1410
|
-
| :------ | :------ |
|
|
1411
|
-
| `T` | extends `Object` |
|
|
1412
|
-
| `U` | `U` |
|
|
1278
|
+
• **T** *extends* `object`
|
|
1413
1279
|
|
|
1414
|
-
|
|
1280
|
+
• **U**
|
|
1281
|
+
|
|
1282
|
+
##### Parameters
|
|
1415
1283
|
|
|
1416
|
-
|
|
1417
|
-
| :------ | :------ | :------ |
|
|
1418
|
-
| `target` | `T` | The target object to copy to. |
|
|
1419
|
-
| `source` | `U` | The source object from which to copy properties. |
|
|
1284
|
+
• **target**: `T`
|
|
1420
1285
|
|
|
1421
|
-
|
|
1286
|
+
The target object to copy to.
|
|
1287
|
+
|
|
1288
|
+
• **source**: `U`
|
|
1289
|
+
|
|
1290
|
+
The source object from which to copy properties.
|
|
1291
|
+
|
|
1292
|
+
##### Returns
|
|
1422
1293
|
|
|
1423
1294
|
`T` & `U`
|
|
1424
1295
|
|
|
1425
|
-
|
|
1296
|
+
##### Inherited from
|
|
1426
1297
|
|
|
1427
|
-
[ToolFunc](ToolFunc.md).[assign](ToolFunc.md#assign-
|
|
1298
|
+
[`ToolFunc`](ToolFunc.md).[`assign`](ToolFunc.md#assign-2)
|
|
1428
1299
|
|
|
1429
|
-
|
|
1300
|
+
##### Defined in
|
|
1301
|
+
|
|
1302
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:286
|
|
1430
1303
|
|
|
1431
|
-
|
|
1304
|
+
#### assign(target, source1, source2)
|
|
1432
1305
|
|
|
1433
|
-
|
|
1306
|
+
> `static` **assign**\<`T`, `U`, `V`\>(`target`, `source1`, `source2`): `T` & `U` & `V`
|
|
1434
1307
|
|
|
1435
1308
|
Copy the values of all of the enumerable own properties from one or more source objects to a
|
|
1436
1309
|
target object. Returns the target object.
|
|
1437
1310
|
|
|
1438
|
-
|
|
1311
|
+
##### Type Parameters
|
|
1439
1312
|
|
|
1440
|
-
|
|
1441
|
-
| :------ | :------ |
|
|
1442
|
-
| `T` | extends `Object` |
|
|
1443
|
-
| `U` | `U` |
|
|
1444
|
-
| `V` | `V` |
|
|
1313
|
+
• **T** *extends* `object`
|
|
1445
1314
|
|
|
1446
|
-
|
|
1315
|
+
• **U**
|
|
1447
1316
|
|
|
1448
|
-
|
|
1449
|
-
| :------ | :------ | :------ |
|
|
1450
|
-
| `target` | `T` | The target object to copy to. |
|
|
1451
|
-
| `source1` | `U` | The first source object from which to copy properties. |
|
|
1452
|
-
| `source2` | `V` | The second source object from which to copy properties. |
|
|
1317
|
+
• **V**
|
|
1453
1318
|
|
|
1454
|
-
|
|
1319
|
+
##### Parameters
|
|
1320
|
+
|
|
1321
|
+
• **target**: `T`
|
|
1322
|
+
|
|
1323
|
+
The target object to copy to.
|
|
1324
|
+
|
|
1325
|
+
• **source1**: `U`
|
|
1326
|
+
|
|
1327
|
+
The first source object from which to copy properties.
|
|
1328
|
+
|
|
1329
|
+
• **source2**: `V`
|
|
1330
|
+
|
|
1331
|
+
The second source object from which to copy properties.
|
|
1332
|
+
|
|
1333
|
+
##### Returns
|
|
1455
1334
|
|
|
1456
1335
|
`T` & `U` & `V`
|
|
1457
1336
|
|
|
1458
|
-
|
|
1337
|
+
##### Inherited from
|
|
1459
1338
|
|
|
1460
|
-
[ToolFunc](ToolFunc.md).[assign](ToolFunc.md#assign-
|
|
1339
|
+
[`ToolFunc`](ToolFunc.md).[`assign`](ToolFunc.md#assign-2)
|
|
1461
1340
|
|
|
1462
|
-
|
|
1341
|
+
##### Defined in
|
|
1463
1342
|
|
|
1464
|
-
|
|
1343
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:295
|
|
1465
1344
|
|
|
1466
|
-
|
|
1345
|
+
#### assign(target, source1, source2, source3)
|
|
1346
|
+
|
|
1347
|
+
> `static` **assign**\<`T`, `U`, `V`, `W`\>(`target`, `source1`, `source2`, `source3`): `T` & `U` & `V` & `W`
|
|
1467
1348
|
|
|
1468
1349
|
Copy the values of all of the enumerable own properties from one or more source objects to a
|
|
1469
1350
|
target object. Returns the target object.
|
|
1470
1351
|
|
|
1471
|
-
|
|
1352
|
+
##### Type Parameters
|
|
1472
1353
|
|
|
1473
|
-
|
|
1474
|
-
| :------ | :------ |
|
|
1475
|
-
| `T` | extends `Object` |
|
|
1476
|
-
| `U` | `U` |
|
|
1477
|
-
| `V` | `V` |
|
|
1478
|
-
| `W` | `W` |
|
|
1354
|
+
• **T** *extends* `object`
|
|
1479
1355
|
|
|
1480
|
-
|
|
1356
|
+
• **U**
|
|
1481
1357
|
|
|
1482
|
-
|
|
1483
|
-
| :------ | :------ | :------ |
|
|
1484
|
-
| `target` | `T` | The target object to copy to. |
|
|
1485
|
-
| `source1` | `U` | The first source object from which to copy properties. |
|
|
1486
|
-
| `source2` | `V` | The second source object from which to copy properties. |
|
|
1487
|
-
| `source3` | `W` | The third source object from which to copy properties. |
|
|
1358
|
+
• **V**
|
|
1488
1359
|
|
|
1489
|
-
|
|
1360
|
+
• **W**
|
|
1361
|
+
|
|
1362
|
+
##### Parameters
|
|
1363
|
+
|
|
1364
|
+
• **target**: `T`
|
|
1365
|
+
|
|
1366
|
+
The target object to copy to.
|
|
1367
|
+
|
|
1368
|
+
• **source1**: `U`
|
|
1369
|
+
|
|
1370
|
+
The first source object from which to copy properties.
|
|
1371
|
+
|
|
1372
|
+
• **source2**: `V`
|
|
1373
|
+
|
|
1374
|
+
The second source object from which to copy properties.
|
|
1375
|
+
|
|
1376
|
+
• **source3**: `W`
|
|
1377
|
+
|
|
1378
|
+
The third source object from which to copy properties.
|
|
1379
|
+
|
|
1380
|
+
##### Returns
|
|
1490
1381
|
|
|
1491
1382
|
`T` & `U` & `V` & `W`
|
|
1492
1383
|
|
|
1493
|
-
|
|
1384
|
+
##### Inherited from
|
|
1494
1385
|
|
|
1495
|
-
[ToolFunc](ToolFunc.md).[assign](ToolFunc.md#assign-
|
|
1386
|
+
[`ToolFunc`](ToolFunc.md).[`assign`](ToolFunc.md#assign-2)
|
|
1496
1387
|
|
|
1497
|
-
|
|
1388
|
+
##### Defined in
|
|
1498
1389
|
|
|
1499
|
-
|
|
1390
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:305
|
|
1500
1391
|
|
|
1501
|
-
|
|
1392
|
+
#### assign(target, sources)
|
|
1393
|
+
|
|
1394
|
+
> `static` **assign**(`target`, ...`sources`): `any`
|
|
1502
1395
|
|
|
1503
1396
|
Copy the values of all of the enumerable own properties from one or more source objects to a
|
|
1504
1397
|
target object. Returns the target object.
|
|
1505
1398
|
|
|
1506
|
-
|
|
1399
|
+
##### Parameters
|
|
1507
1400
|
|
|
1508
|
-
|
|
1509
|
-
| :------ | :------ | :------ |
|
|
1510
|
-
| `target` | `object` | The target object to copy to. |
|
|
1511
|
-
| `...sources` | `any`[] | One or more source objects from which to copy properties |
|
|
1401
|
+
• **target**: `object`
|
|
1512
1402
|
|
|
1513
|
-
|
|
1403
|
+
The target object to copy to.
|
|
1404
|
+
|
|
1405
|
+
• ...**sources**: `any`[]
|
|
1406
|
+
|
|
1407
|
+
One or more source objects from which to copy properties
|
|
1408
|
+
|
|
1409
|
+
##### Returns
|
|
1514
1410
|
|
|
1515
1411
|
`any`
|
|
1516
1412
|
|
|
1517
|
-
|
|
1413
|
+
##### Inherited from
|
|
1518
1414
|
|
|
1519
|
-
[ToolFunc](ToolFunc.md).[assign](ToolFunc.md#assign-
|
|
1415
|
+
[`ToolFunc`](ToolFunc.md).[`assign`](ToolFunc.md#assign-2)
|
|
1520
1416
|
|
|
1521
|
-
|
|
1417
|
+
##### Defined in
|
|
1418
|
+
|
|
1419
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:313
|
|
1522
1420
|
|
|
1523
|
-
|
|
1421
|
+
***
|
|
1524
1422
|
|
|
1525
|
-
|
|
1423
|
+
### create()
|
|
1526
1424
|
|
|
1527
|
-
|
|
1425
|
+
#### create(o)
|
|
1528
1426
|
|
|
1529
|
-
|
|
1427
|
+
> `static` **create**(`o`): `any`
|
|
1530
1428
|
|
|
1531
1429
|
Creates an object that has the specified prototype or that has null prototype.
|
|
1532
1430
|
|
|
1533
|
-
|
|
1431
|
+
##### Parameters
|
|
1534
1432
|
|
|
1535
|
-
|
|
1536
|
-
| :------ | :------ | :------ |
|
|
1537
|
-
| `o` | ``null`` \| `object` | Object to use as a prototype. May be null. |
|
|
1433
|
+
• **o**: `null` \| `object`
|
|
1538
1434
|
|
|
1539
|
-
|
|
1435
|
+
Object to use as a prototype. May be null.
|
|
1436
|
+
|
|
1437
|
+
##### Returns
|
|
1540
1438
|
|
|
1541
1439
|
`any`
|
|
1542
1440
|
|
|
1543
|
-
|
|
1441
|
+
##### Inherited from
|
|
1544
1442
|
|
|
1545
|
-
[ToolFunc](ToolFunc.md).[create](ToolFunc.md#create)
|
|
1443
|
+
[`ToolFunc`](ToolFunc.md).[`create`](ToolFunc.md#create)
|
|
1546
1444
|
|
|
1547
|
-
|
|
1445
|
+
##### Defined in
|
|
1548
1446
|
|
|
1549
|
-
|
|
1447
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:188
|
|
1550
1448
|
|
|
1551
|
-
|
|
1449
|
+
#### create(o, properties)
|
|
1450
|
+
|
|
1451
|
+
> `static` **create**(`o`, `properties`): `any`
|
|
1552
1452
|
|
|
1553
1453
|
Creates an object that has the specified prototype, and that optionally contains specified properties.
|
|
1554
1454
|
|
|
1555
|
-
|
|
1455
|
+
##### Parameters
|
|
1556
1456
|
|
|
1557
|
-
|
|
1558
|
-
| :------ | :------ | :------ |
|
|
1559
|
-
| `o` | ``null`` \| `object` | Object to use as a prototype. May be null |
|
|
1560
|
-
| `properties` | `PropertyDescriptorMap` & `ThisType`\<`any`\> | JavaScript object that contains one or more property descriptors. |
|
|
1457
|
+
• **o**: `null` \| `object`
|
|
1561
1458
|
|
|
1562
|
-
|
|
1459
|
+
Object to use as a prototype. May be null
|
|
1460
|
+
|
|
1461
|
+
• **properties**: `PropertyDescriptorMap` & `ThisType`\<`any`\>
|
|
1462
|
+
|
|
1463
|
+
JavaScript object that contains one or more property descriptors.
|
|
1464
|
+
|
|
1465
|
+
##### Returns
|
|
1563
1466
|
|
|
1564
1467
|
`any`
|
|
1565
1468
|
|
|
1566
|
-
|
|
1469
|
+
##### Inherited from
|
|
1567
1470
|
|
|
1568
|
-
[ToolFunc](ToolFunc.md).[create](ToolFunc.md#create)
|
|
1471
|
+
[`ToolFunc`](ToolFunc.md).[`create`](ToolFunc.md#create)
|
|
1569
1472
|
|
|
1570
|
-
|
|
1473
|
+
##### Defined in
|
|
1474
|
+
|
|
1475
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:195
|
|
1571
1476
|
|
|
1572
|
-
|
|
1477
|
+
***
|
|
1573
1478
|
|
|
1574
|
-
|
|
1479
|
+
### defineProperties()
|
|
1575
1480
|
|
|
1576
|
-
|
|
1481
|
+
> `static` **defineProperties**(`aTarget`, `aProperties`, `recreate`?): `any`
|
|
1577
1482
|
|
|
1578
|
-
|
|
1483
|
+
Adds one or more properties to an object, and/or modifies attributes of existing properties.
|
|
1579
1484
|
|
|
1580
1485
|
#### Parameters
|
|
1581
1486
|
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1487
|
+
• **aTarget**: `any`
|
|
1488
|
+
|
|
1489
|
+
• **aProperties**: `PropDescriptors`
|
|
1490
|
+
|
|
1491
|
+
• **recreate?**: `boolean`
|
|
1587
1492
|
|
|
1588
1493
|
#### Returns
|
|
1589
1494
|
|
|
@@ -1591,33 +1496,37 @@ ___
|
|
|
1591
1496
|
|
|
1592
1497
|
#### Inherited from
|
|
1593
1498
|
|
|
1594
|
-
[ToolFunc](ToolFunc.md).[defineProperties](ToolFunc.md#defineproperties-1)
|
|
1499
|
+
[`ToolFunc`](ToolFunc.md).[`defineProperties`](ToolFunc.md#defineproperties-1)
|
|
1595
1500
|
|
|
1596
1501
|
#### Defined in
|
|
1597
1502
|
|
|
1598
|
-
|
|
1503
|
+
node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/advance.d.ts:11
|
|
1599
1504
|
|
|
1600
|
-
|
|
1505
|
+
***
|
|
1601
1506
|
|
|
1602
|
-
### defineProperty
|
|
1507
|
+
### defineProperty()
|
|
1603
1508
|
|
|
1604
|
-
|
|
1509
|
+
> `static` **defineProperty**\<`T`\>(`o`, `p`, `attributes`): `T`
|
|
1605
1510
|
|
|
1606
1511
|
Adds a property to an object, or modifies attributes of an existing property.
|
|
1607
1512
|
|
|
1608
|
-
#### Type
|
|
1513
|
+
#### Type Parameters
|
|
1609
1514
|
|
|
1610
|
-
|
|
1611
|
-
| :------ |
|
|
1612
|
-
| `T` |
|
|
1515
|
+
• **T**
|
|
1613
1516
|
|
|
1614
1517
|
#### Parameters
|
|
1615
1518
|
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1519
|
+
• **o**: `T`
|
|
1520
|
+
|
|
1521
|
+
Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
|
|
1522
|
+
|
|
1523
|
+
• **p**: `PropertyKey`
|
|
1524
|
+
|
|
1525
|
+
The property name.
|
|
1526
|
+
|
|
1527
|
+
• **attributes**: `PropertyDescriptor` & `ThisType`\<`any`\>
|
|
1528
|
+
|
|
1529
|
+
Descriptor for the property. It can be for a data property or an accessor property.
|
|
1621
1530
|
|
|
1622
1531
|
#### Returns
|
|
1623
1532
|
|
|
@@ -1625,220 +1534,223 @@ Adds a property to an object, or modifies attributes of an existing property.
|
|
|
1625
1534
|
|
|
1626
1535
|
#### Inherited from
|
|
1627
1536
|
|
|
1628
|
-
[ToolFunc](ToolFunc.md).[defineProperty](ToolFunc.md#defineproperty)
|
|
1537
|
+
[`ToolFunc`](ToolFunc.md).[`defineProperty`](ToolFunc.md#defineproperty)
|
|
1629
1538
|
|
|
1630
1539
|
#### Defined in
|
|
1631
1540
|
|
|
1632
|
-
|
|
1541
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:203
|
|
1633
1542
|
|
|
1634
|
-
|
|
1543
|
+
***
|
|
1635
1544
|
|
|
1636
|
-
### entries
|
|
1545
|
+
### entries()
|
|
1637
1546
|
|
|
1638
|
-
|
|
1547
|
+
#### entries(o)
|
|
1639
1548
|
|
|
1640
|
-
|
|
1549
|
+
> `static` **entries**\<`T`\>(`o`): [`string`, `T`][]
|
|
1641
1550
|
|
|
1642
|
-
|
|
1551
|
+
Returns an array of key/values of the enumerable own properties of an object
|
|
1643
1552
|
|
|
1644
|
-
|
|
1645
|
-
| :------ |
|
|
1646
|
-
| `T` |
|
|
1553
|
+
##### Type Parameters
|
|
1647
1554
|
|
|
1648
|
-
|
|
1555
|
+
• **T**
|
|
1649
1556
|
|
|
1650
|
-
|
|
1651
|
-
| :------ | :------ | :------ |
|
|
1652
|
-
| `o` | \{ `[s: string]`: `T`; } \| `ArrayLike`\<`T`\> | Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. |
|
|
1557
|
+
##### Parameters
|
|
1653
1558
|
|
|
1654
|
-
|
|
1559
|
+
• **o**: `object` \| `ArrayLike`\<`T`\>
|
|
1560
|
+
|
|
1561
|
+
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
1562
|
+
|
|
1563
|
+
##### Returns
|
|
1655
1564
|
|
|
1656
1565
|
[`string`, `T`][]
|
|
1657
1566
|
|
|
1658
|
-
|
|
1567
|
+
##### Inherited from
|
|
1659
1568
|
|
|
1660
|
-
[ToolFunc](ToolFunc.md).[entries](ToolFunc.md#entries)
|
|
1569
|
+
[`ToolFunc`](ToolFunc.md).[`entries`](ToolFunc.md#entries)
|
|
1661
1570
|
|
|
1662
|
-
|
|
1571
|
+
##### Defined in
|
|
1663
1572
|
|
|
1664
|
-
|
|
1573
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es2017.object.d.ts:36
|
|
1665
1574
|
|
|
1666
|
-
|
|
1575
|
+
#### entries(o)
|
|
1667
1576
|
|
|
1668
|
-
|
|
1577
|
+
> `static` **entries**(`o`): [`string`, `any`][]
|
|
1669
1578
|
|
|
1670
|
-
|
|
1579
|
+
Returns an array of key/values of the enumerable own properties of an object
|
|
1580
|
+
|
|
1581
|
+
##### Parameters
|
|
1671
1582
|
|
|
1672
|
-
|
|
1673
|
-
| :------ | :------ | :------ |
|
|
1674
|
-
| `o` | `Object` | Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. |
|
|
1583
|
+
• **o**
|
|
1675
1584
|
|
|
1676
|
-
|
|
1585
|
+
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
1586
|
+
|
|
1587
|
+
##### Returns
|
|
1677
1588
|
|
|
1678
1589
|
[`string`, `any`][]
|
|
1679
1590
|
|
|
1680
|
-
|
|
1591
|
+
##### Inherited from
|
|
1681
1592
|
|
|
1682
|
-
[ToolFunc](ToolFunc.md).[entries](ToolFunc.md#entries)
|
|
1593
|
+
[`ToolFunc`](ToolFunc.md).[`entries`](ToolFunc.md#entries)
|
|
1683
1594
|
|
|
1684
|
-
|
|
1595
|
+
##### Defined in
|
|
1596
|
+
|
|
1597
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es2017.object.d.ts:42
|
|
1685
1598
|
|
|
1686
|
-
|
|
1599
|
+
***
|
|
1687
1600
|
|
|
1688
|
-
|
|
1601
|
+
### freeze()
|
|
1689
1602
|
|
|
1690
|
-
|
|
1603
|
+
#### freeze(f)
|
|
1691
1604
|
|
|
1692
|
-
|
|
1605
|
+
> `static` **freeze**\<`T`\>(`f`): `T`
|
|
1693
1606
|
|
|
1694
1607
|
Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
|
|
1695
1608
|
|
|
1696
|
-
|
|
1609
|
+
##### Type Parameters
|
|
1697
1610
|
|
|
1698
|
-
|
|
1699
|
-
| :------ | :------ |
|
|
1700
|
-
| `T` | extends `Function` |
|
|
1611
|
+
• **T** *extends* `Function`
|
|
1701
1612
|
|
|
1702
|
-
|
|
1613
|
+
##### Parameters
|
|
1703
1614
|
|
|
1704
|
-
|
|
1705
|
-
| :------ | :------ | :------ |
|
|
1706
|
-
| `f` | `T` | Object on which to lock the attributes. |
|
|
1615
|
+
• **f**: `T`
|
|
1707
1616
|
|
|
1708
|
-
|
|
1617
|
+
Object on which to lock the attributes.
|
|
1618
|
+
|
|
1619
|
+
##### Returns
|
|
1709
1620
|
|
|
1710
1621
|
`T`
|
|
1711
1622
|
|
|
1712
|
-
|
|
1623
|
+
##### Inherited from
|
|
1713
1624
|
|
|
1714
|
-
[ToolFunc](ToolFunc.md).[freeze](ToolFunc.md#freeze)
|
|
1625
|
+
[`ToolFunc`](ToolFunc.md).[`freeze`](ToolFunc.md#freeze)
|
|
1715
1626
|
|
|
1716
|
-
|
|
1627
|
+
##### Defined in
|
|
1717
1628
|
|
|
1718
|
-
|
|
1629
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:222
|
|
1719
1630
|
|
|
1720
|
-
|
|
1631
|
+
#### freeze(o)
|
|
1632
|
+
|
|
1633
|
+
> `static` **freeze**\<`T`, `U`\>(`o`): `Readonly`\<`T`\>
|
|
1721
1634
|
|
|
1722
1635
|
Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
|
|
1723
1636
|
|
|
1724
|
-
|
|
1637
|
+
##### Type Parameters
|
|
1725
1638
|
|
|
1726
|
-
|
|
1727
|
-
| :------ | :------ |
|
|
1728
|
-
| `T` | extends `Object` |
|
|
1729
|
-
| `U` | extends `string` \| `number` \| `bigint` \| `boolean` \| `symbol` |
|
|
1639
|
+
• **T** *extends* `object`
|
|
1730
1640
|
|
|
1731
|
-
|
|
1641
|
+
• **U** *extends* `string` \| `number` \| `bigint` \| `boolean` \| `symbol`
|
|
1732
1642
|
|
|
1733
|
-
|
|
1734
|
-
| :------ | :------ | :------ |
|
|
1735
|
-
| `o` | `T` | Object on which to lock the attributes. |
|
|
1643
|
+
##### Parameters
|
|
1736
1644
|
|
|
1737
|
-
|
|
1645
|
+
• **o**: `T`
|
|
1646
|
+
|
|
1647
|
+
Object on which to lock the attributes.
|
|
1648
|
+
|
|
1649
|
+
##### Returns
|
|
1738
1650
|
|
|
1739
1651
|
`Readonly`\<`T`\>
|
|
1740
1652
|
|
|
1741
|
-
|
|
1653
|
+
##### Inherited from
|
|
1742
1654
|
|
|
1743
|
-
[ToolFunc](ToolFunc.md).[freeze](ToolFunc.md#freeze)
|
|
1655
|
+
[`ToolFunc`](ToolFunc.md).[`freeze`](ToolFunc.md#freeze)
|
|
1744
1656
|
|
|
1745
|
-
|
|
1657
|
+
##### Defined in
|
|
1658
|
+
|
|
1659
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:228
|
|
1746
1660
|
|
|
1747
|
-
|
|
1661
|
+
#### freeze(o)
|
|
1748
1662
|
|
|
1749
|
-
|
|
1663
|
+
> `static` **freeze**\<`T`\>(`o`): `Readonly`\<`T`\>
|
|
1750
1664
|
|
|
1751
1665
|
Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
|
|
1752
1666
|
|
|
1753
|
-
|
|
1667
|
+
##### Type Parameters
|
|
1754
1668
|
|
|
1755
|
-
|
|
1756
|
-
| :------ |
|
|
1757
|
-
| `T` |
|
|
1669
|
+
• **T**
|
|
1758
1670
|
|
|
1759
|
-
|
|
1671
|
+
##### Parameters
|
|
1760
1672
|
|
|
1761
|
-
|
|
1762
|
-
| :------ | :------ | :------ |
|
|
1763
|
-
| `o` | `T` | Object on which to lock the attributes. |
|
|
1673
|
+
• **o**: `T`
|
|
1764
1674
|
|
|
1765
|
-
|
|
1675
|
+
Object on which to lock the attributes.
|
|
1676
|
+
|
|
1677
|
+
##### Returns
|
|
1766
1678
|
|
|
1767
1679
|
`Readonly`\<`T`\>
|
|
1768
1680
|
|
|
1769
|
-
|
|
1681
|
+
##### Inherited from
|
|
1770
1682
|
|
|
1771
|
-
[ToolFunc](ToolFunc.md).[freeze](ToolFunc.md#freeze)
|
|
1683
|
+
[`ToolFunc`](ToolFunc.md).[`freeze`](ToolFunc.md#freeze)
|
|
1772
1684
|
|
|
1773
|
-
|
|
1685
|
+
##### Defined in
|
|
1774
1686
|
|
|
1775
|
-
|
|
1687
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:234
|
|
1776
1688
|
|
|
1777
|
-
|
|
1689
|
+
***
|
|
1778
1690
|
|
|
1779
|
-
### fromEntries
|
|
1691
|
+
### fromEntries()
|
|
1780
1692
|
|
|
1781
|
-
|
|
1693
|
+
#### fromEntries(entries)
|
|
1694
|
+
|
|
1695
|
+
> `static` **fromEntries**\<`T`\>(`entries`): `object`
|
|
1782
1696
|
|
|
1783
1697
|
Returns an object created by key-value entries for properties and methods
|
|
1784
1698
|
|
|
1785
|
-
|
|
1699
|
+
##### Type Parameters
|
|
1786
1700
|
|
|
1787
|
-
|
|
1788
|
-
| :------ | :------ |
|
|
1789
|
-
| `T` | `any` |
|
|
1701
|
+
• **T** = `any`
|
|
1790
1702
|
|
|
1791
|
-
|
|
1703
|
+
##### Parameters
|
|
1792
1704
|
|
|
1793
|
-
|
|
1794
|
-
| :------ | :------ | :------ |
|
|
1795
|
-
| `entries` | `Iterable`\<readonly [`PropertyKey`, `T`]\> | An iterable object that contains key-value entries for properties and methods. |
|
|
1705
|
+
• **entries**: `Iterable`\<readonly [`PropertyKey`, `T`], `any`, `any`\>
|
|
1796
1706
|
|
|
1797
|
-
|
|
1707
|
+
An iterable object that contains key-value entries for properties and methods.
|
|
1798
1708
|
|
|
1799
|
-
|
|
1709
|
+
##### Returns
|
|
1800
1710
|
|
|
1801
|
-
|
|
1711
|
+
`object`
|
|
1802
1712
|
|
|
1803
|
-
|
|
1713
|
+
##### Inherited from
|
|
1804
1714
|
|
|
1805
|
-
|
|
1715
|
+
[`ToolFunc`](ToolFunc.md).[`fromEntries`](ToolFunc.md#fromentries)
|
|
1716
|
+
|
|
1717
|
+
##### Defined in
|
|
1806
1718
|
|
|
1807
|
-
|
|
1719
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es2019.object.d.ts:26
|
|
1808
1720
|
|
|
1809
|
-
|
|
1721
|
+
#### fromEntries(entries)
|
|
1722
|
+
|
|
1723
|
+
> `static` **fromEntries**(`entries`): `any`
|
|
1810
1724
|
|
|
1811
1725
|
Returns an object created by key-value entries for properties and methods
|
|
1812
1726
|
|
|
1813
|
-
|
|
1727
|
+
##### Parameters
|
|
1814
1728
|
|
|
1815
|
-
|
|
1816
|
-
| :------ | :------ | :------ |
|
|
1817
|
-
| `entries` | `Iterable`\<readonly `any`[]\> | An iterable object that contains key-value entries for properties and methods. |
|
|
1729
|
+
• **entries**: `Iterable`\<readonly `any`[], `any`, `any`\>
|
|
1818
1730
|
|
|
1819
|
-
|
|
1731
|
+
An iterable object that contains key-value entries for properties and methods.
|
|
1732
|
+
|
|
1733
|
+
##### Returns
|
|
1820
1734
|
|
|
1821
1735
|
`any`
|
|
1822
1736
|
|
|
1823
|
-
|
|
1737
|
+
##### Inherited from
|
|
1824
1738
|
|
|
1825
|
-
[ToolFunc](ToolFunc.md).[fromEntries](ToolFunc.md#fromentries)
|
|
1739
|
+
[`ToolFunc`](ToolFunc.md).[`fromEntries`](ToolFunc.md#fromentries)
|
|
1826
1740
|
|
|
1827
|
-
|
|
1741
|
+
##### Defined in
|
|
1828
1742
|
|
|
1829
|
-
|
|
1743
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es2019.object.d.ts:32
|
|
1830
1744
|
|
|
1831
|
-
|
|
1745
|
+
***
|
|
1832
1746
|
|
|
1833
|
-
### get
|
|
1747
|
+
### get()
|
|
1834
1748
|
|
|
1835
|
-
|
|
1749
|
+
> `static` **get**(`name`): [`ToolFunc`](ToolFunc.md)
|
|
1836
1750
|
|
|
1837
1751
|
#### Parameters
|
|
1838
1752
|
|
|
1839
|
-
|
|
1840
|
-
| :------ | :------ |
|
|
1841
|
-
| `name` | `string` |
|
|
1753
|
+
• **name**: `string`
|
|
1842
1754
|
|
|
1843
1755
|
#### Returns
|
|
1844
1756
|
|
|
@@ -1846,23 +1758,21 @@ ___
|
|
|
1846
1758
|
|
|
1847
1759
|
#### Inherited from
|
|
1848
1760
|
|
|
1849
|
-
[ToolFunc](ToolFunc.md).[get](ToolFunc.md#get)
|
|
1761
|
+
[`ToolFunc`](ToolFunc.md).[`get`](ToolFunc.md#get)
|
|
1850
1762
|
|
|
1851
1763
|
#### Defined in
|
|
1852
1764
|
|
|
1853
|
-
[packages/ai-tool/src/tool-func.ts:77](https://github.com/isdk/ai-tool.js/blob/
|
|
1765
|
+
[packages/ai-tool/src/tool-func.ts:77](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L77)
|
|
1854
1766
|
|
|
1855
|
-
|
|
1767
|
+
***
|
|
1856
1768
|
|
|
1857
|
-
### getAllByTag
|
|
1769
|
+
### getAllByTag()
|
|
1858
1770
|
|
|
1859
|
-
|
|
1771
|
+
> `static` **getAllByTag**(`tagName`): [`ToolFunc`](ToolFunc.md)[]
|
|
1860
1772
|
|
|
1861
1773
|
#### Parameters
|
|
1862
1774
|
|
|
1863
|
-
|
|
1864
|
-
| :------ | :------ |
|
|
1865
|
-
| `tagName` | `string` |
|
|
1775
|
+
• **tagName**: `string`
|
|
1866
1776
|
|
|
1867
1777
|
#### Returns
|
|
1868
1778
|
|
|
@@ -1870,23 +1780,21 @@ ___
|
|
|
1870
1780
|
|
|
1871
1781
|
#### Inherited from
|
|
1872
1782
|
|
|
1873
|
-
[ToolFunc](ToolFunc.md).[getAllByTag](ToolFunc.md#getallbytag)
|
|
1783
|
+
[`ToolFunc`](ToolFunc.md).[`getAllByTag`](ToolFunc.md#getallbytag)
|
|
1874
1784
|
|
|
1875
1785
|
#### Defined in
|
|
1876
1786
|
|
|
1877
|
-
[packages/ai-tool/src/tool-func.ts:105](https://github.com/isdk/ai-tool.js/blob/
|
|
1787
|
+
[packages/ai-tool/src/tool-func.ts:105](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L105)
|
|
1878
1788
|
|
|
1879
|
-
|
|
1789
|
+
***
|
|
1880
1790
|
|
|
1881
|
-
### getByTag
|
|
1791
|
+
### getByTag()
|
|
1882
1792
|
|
|
1883
|
-
|
|
1793
|
+
> `static` **getByTag**(`tagName`): `undefined` \| [`ToolFunc`](ToolFunc.md)
|
|
1884
1794
|
|
|
1885
1795
|
#### Parameters
|
|
1886
1796
|
|
|
1887
|
-
|
|
1888
|
-
| :------ | :------ |
|
|
1889
|
-
| `tagName` | `string` |
|
|
1797
|
+
• **tagName**: `string`
|
|
1890
1798
|
|
|
1891
1799
|
#### Returns
|
|
1892
1800
|
|
|
@@ -1894,23 +1802,21 @@ ___
|
|
|
1894
1802
|
|
|
1895
1803
|
#### Inherited from
|
|
1896
1804
|
|
|
1897
|
-
[ToolFunc](ToolFunc.md).[getByTag](ToolFunc.md#getbytag)
|
|
1805
|
+
[`ToolFunc`](ToolFunc.md).[`getByTag`](ToolFunc.md#getbytag)
|
|
1898
1806
|
|
|
1899
1807
|
#### Defined in
|
|
1900
1808
|
|
|
1901
|
-
[packages/ai-tool/src/tool-func.ts:85](https://github.com/isdk/ai-tool.js/blob/
|
|
1809
|
+
[packages/ai-tool/src/tool-func.ts:85](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L85)
|
|
1902
1810
|
|
|
1903
|
-
|
|
1811
|
+
***
|
|
1904
1812
|
|
|
1905
|
-
### getFunc
|
|
1813
|
+
### getFunc()
|
|
1906
1814
|
|
|
1907
|
-
|
|
1815
|
+
> `static` **getFunc**(`name`): `any`
|
|
1908
1816
|
|
|
1909
1817
|
#### Parameters
|
|
1910
1818
|
|
|
1911
|
-
|
|
1912
|
-
| :------ | :------ |
|
|
1913
|
-
| `name` | `string` |
|
|
1819
|
+
• **name**: `string`
|
|
1914
1820
|
|
|
1915
1821
|
#### Returns
|
|
1916
1822
|
|
|
@@ -1918,23 +1824,21 @@ ___
|
|
|
1918
1824
|
|
|
1919
1825
|
#### Inherited from
|
|
1920
1826
|
|
|
1921
|
-
[ToolFunc](ToolFunc.md).[getFunc](ToolFunc.md#getfunc-1)
|
|
1827
|
+
[`ToolFunc`](ToolFunc.md).[`getFunc`](ToolFunc.md#getfunc-1)
|
|
1922
1828
|
|
|
1923
1829
|
#### Defined in
|
|
1924
1830
|
|
|
1925
|
-
[packages/ai-tool/src/tool-func.ts:146](https://github.com/isdk/ai-tool.js/blob/
|
|
1831
|
+
[packages/ai-tool/src/tool-func.ts:146](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L146)
|
|
1926
1832
|
|
|
1927
|
-
|
|
1833
|
+
***
|
|
1928
1834
|
|
|
1929
|
-
### getFuncWithPos
|
|
1835
|
+
### getFuncWithPos()
|
|
1930
1836
|
|
|
1931
|
-
|
|
1837
|
+
> `static` **getFuncWithPos**(`name`): `any`
|
|
1932
1838
|
|
|
1933
1839
|
#### Parameters
|
|
1934
1840
|
|
|
1935
|
-
|
|
1936
|
-
| :------ | :------ |
|
|
1937
|
-
| `name` | `string` |
|
|
1841
|
+
• **name**: `string`
|
|
1938
1842
|
|
|
1939
1843
|
#### Returns
|
|
1940
1844
|
|
|
@@ -1942,27 +1846,30 @@ ___
|
|
|
1942
1846
|
|
|
1943
1847
|
#### Inherited from
|
|
1944
1848
|
|
|
1945
|
-
[ToolFunc](ToolFunc.md).[getFuncWithPos](ToolFunc.md#getfuncwithpos-1)
|
|
1849
|
+
[`ToolFunc`](ToolFunc.md).[`getFuncWithPos`](ToolFunc.md#getfuncwithpos-1)
|
|
1946
1850
|
|
|
1947
1851
|
#### Defined in
|
|
1948
1852
|
|
|
1949
|
-
[packages/ai-tool/src/tool-func.ts:167](https://github.com/isdk/ai-tool.js/blob/
|
|
1853
|
+
[packages/ai-tool/src/tool-func.ts:167](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L167)
|
|
1950
1854
|
|
|
1951
|
-
|
|
1855
|
+
***
|
|
1952
1856
|
|
|
1953
|
-
### getOwnPropertyDescriptor
|
|
1857
|
+
### getOwnPropertyDescriptor()
|
|
1954
1858
|
|
|
1955
|
-
|
|
1859
|
+
> `static` **getOwnPropertyDescriptor**(`o`, `p`): `undefined` \| `PropertyDescriptor`
|
|
1956
1860
|
|
|
1957
1861
|
Gets the own property descriptor of the specified object.
|
|
1958
1862
|
An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
|
|
1959
1863
|
|
|
1960
1864
|
#### Parameters
|
|
1961
1865
|
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1866
|
+
• **o**: `any`
|
|
1867
|
+
|
|
1868
|
+
Object that contains the property.
|
|
1869
|
+
|
|
1870
|
+
• **p**: `PropertyKey`
|
|
1871
|
+
|
|
1872
|
+
Name of the property.
|
|
1966
1873
|
|
|
1967
1874
|
#### Returns
|
|
1968
1875
|
|
|
@@ -1970,58 +1877,56 @@ An own property descriptor is one that is defined directly on the object and is
|
|
|
1970
1877
|
|
|
1971
1878
|
#### Inherited from
|
|
1972
1879
|
|
|
1973
|
-
[ToolFunc](ToolFunc.md).[getOwnPropertyDescriptor](ToolFunc.md#getownpropertydescriptor)
|
|
1880
|
+
[`ToolFunc`](ToolFunc.md).[`getOwnPropertyDescriptor`](ToolFunc.md#getownpropertydescriptor)
|
|
1974
1881
|
|
|
1975
1882
|
#### Defined in
|
|
1976
1883
|
|
|
1977
|
-
|
|
1884
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:175
|
|
1978
1885
|
|
|
1979
|
-
|
|
1886
|
+
***
|
|
1980
1887
|
|
|
1981
|
-
### getOwnPropertyDescriptors
|
|
1888
|
+
### getOwnPropertyDescriptors()
|
|
1982
1889
|
|
|
1983
|
-
|
|
1890
|
+
> `static` **getOwnPropertyDescriptors**\<`T`\>(`o`): \{ \[P in string \| number \| symbol\]: TypedPropertyDescriptor\<T\[P\]\> \} & `object`
|
|
1984
1891
|
|
|
1985
1892
|
Returns an object containing all own property descriptors of an object
|
|
1986
1893
|
|
|
1987
|
-
#### Type
|
|
1894
|
+
#### Type Parameters
|
|
1988
1895
|
|
|
1989
|
-
|
|
1990
|
-
| :------ |
|
|
1991
|
-
| `T` |
|
|
1896
|
+
• **T**
|
|
1992
1897
|
|
|
1993
1898
|
#### Parameters
|
|
1994
1899
|
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1900
|
+
• **o**: `T`
|
|
1901
|
+
|
|
1902
|
+
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
1998
1903
|
|
|
1999
1904
|
#### Returns
|
|
2000
1905
|
|
|
2001
|
-
\{ [P in string \| number \| symbol]: TypedPropertyDescriptor\<T[P]\> } &
|
|
1906
|
+
\{ \[P in string \| number \| symbol\]: TypedPropertyDescriptor\<T\[P\]\> \} & `object`
|
|
2002
1907
|
|
|
2003
1908
|
#### Inherited from
|
|
2004
1909
|
|
|
2005
|
-
[ToolFunc](ToolFunc.md).[getOwnPropertyDescriptors](ToolFunc.md#getownpropertydescriptors)
|
|
1910
|
+
[`ToolFunc`](ToolFunc.md).[`getOwnPropertyDescriptors`](ToolFunc.md#getownpropertydescriptors)
|
|
2006
1911
|
|
|
2007
1912
|
#### Defined in
|
|
2008
1913
|
|
|
2009
|
-
|
|
1914
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es2017.object.d.ts:48
|
|
2010
1915
|
|
|
2011
|
-
|
|
1916
|
+
***
|
|
2012
1917
|
|
|
2013
|
-
### getOwnPropertyNames
|
|
1918
|
+
### getOwnPropertyNames()
|
|
2014
1919
|
|
|
2015
|
-
|
|
1920
|
+
> `static` **getOwnPropertyNames**(`o`): `string`[]
|
|
2016
1921
|
|
|
2017
1922
|
Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
|
|
2018
1923
|
on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
|
|
2019
1924
|
|
|
2020
1925
|
#### Parameters
|
|
2021
1926
|
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
1927
|
+
• **o**: `any`
|
|
1928
|
+
|
|
1929
|
+
Object that contains the own properties.
|
|
2025
1930
|
|
|
2026
1931
|
#### Returns
|
|
2027
1932
|
|
|
@@ -2029,25 +1934,25 @@ on that object, and are not inherited from the object's prototype. The propertie
|
|
|
2029
1934
|
|
|
2030
1935
|
#### Inherited from
|
|
2031
1936
|
|
|
2032
|
-
[ToolFunc](ToolFunc.md).[getOwnPropertyNames](ToolFunc.md#getownpropertynames)
|
|
1937
|
+
[`ToolFunc`](ToolFunc.md).[`getOwnPropertyNames`](ToolFunc.md#getownpropertynames)
|
|
2033
1938
|
|
|
2034
1939
|
#### Defined in
|
|
2035
1940
|
|
|
2036
|
-
|
|
1941
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:182
|
|
2037
1942
|
|
|
2038
|
-
|
|
1943
|
+
***
|
|
2039
1944
|
|
|
2040
|
-
### getOwnPropertySymbols
|
|
1945
|
+
### getOwnPropertySymbols()
|
|
2041
1946
|
|
|
2042
|
-
|
|
1947
|
+
> `static` **getOwnPropertySymbols**(`o`): `symbol`[]
|
|
2043
1948
|
|
|
2044
1949
|
Returns an array of all symbol properties found directly on object o.
|
|
2045
1950
|
|
|
2046
1951
|
#### Parameters
|
|
2047
1952
|
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
1953
|
+
• **o**: `any`
|
|
1954
|
+
|
|
1955
|
+
Object to retrieve the symbols from.
|
|
2051
1956
|
|
|
2052
1957
|
#### Returns
|
|
2053
1958
|
|
|
@@ -2055,17 +1960,17 @@ Returns an array of all symbol properties found directly on object o.
|
|
|
2055
1960
|
|
|
2056
1961
|
#### Inherited from
|
|
2057
1962
|
|
|
2058
|
-
[ToolFunc](ToolFunc.md).[getOwnPropertySymbols](ToolFunc.md#getownpropertysymbols)
|
|
1963
|
+
[`ToolFunc`](ToolFunc.md).[`getOwnPropertySymbols`](ToolFunc.md#getownpropertysymbols)
|
|
2059
1964
|
|
|
2060
1965
|
#### Defined in
|
|
2061
1966
|
|
|
2062
|
-
|
|
1967
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:319
|
|
2063
1968
|
|
|
2064
|
-
|
|
1969
|
+
***
|
|
2065
1970
|
|
|
2066
|
-
### getProperties
|
|
1971
|
+
### getProperties()
|
|
2067
1972
|
|
|
2068
|
-
|
|
1973
|
+
> `static` **getProperties**(): `PropDescriptors`
|
|
2069
1974
|
|
|
2070
1975
|
get all properties descriptor include inherited.
|
|
2071
1976
|
|
|
@@ -2075,25 +1980,25 @@ get all properties descriptor include inherited.
|
|
|
2075
1980
|
|
|
2076
1981
|
#### Inherited from
|
|
2077
1982
|
|
|
2078
|
-
[ToolFunc](ToolFunc.md).[getProperties](ToolFunc.md#getproperties-1)
|
|
1983
|
+
[`ToolFunc`](ToolFunc.md).[`getProperties`](ToolFunc.md#getproperties-1)
|
|
2079
1984
|
|
|
2080
1985
|
#### Defined in
|
|
2081
1986
|
|
|
2082
|
-
|
|
1987
|
+
node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/advance.d.ts:10
|
|
2083
1988
|
|
|
2084
|
-
|
|
1989
|
+
***
|
|
2085
1990
|
|
|
2086
|
-
### getPrototypeOf
|
|
1991
|
+
### getPrototypeOf()
|
|
2087
1992
|
|
|
2088
|
-
|
|
1993
|
+
> `static` **getPrototypeOf**(`o`): `any`
|
|
2089
1994
|
|
|
2090
1995
|
Returns the prototype of an object.
|
|
2091
1996
|
|
|
2092
1997
|
#### Parameters
|
|
2093
1998
|
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
1999
|
+
• **o**: `any`
|
|
2000
|
+
|
|
2001
|
+
The object that references the prototype.
|
|
2097
2002
|
|
|
2098
2003
|
#### Returns
|
|
2099
2004
|
|
|
@@ -2101,23 +2006,21 @@ Returns the prototype of an object.
|
|
|
2101
2006
|
|
|
2102
2007
|
#### Inherited from
|
|
2103
2008
|
|
|
2104
|
-
[ToolFunc](ToolFunc.md).[getPrototypeOf](ToolFunc.md#getprototypeof)
|
|
2009
|
+
[`ToolFunc`](ToolFunc.md).[`getPrototypeOf`](ToolFunc.md#getprototypeof)
|
|
2105
2010
|
|
|
2106
2011
|
#### Defined in
|
|
2107
2012
|
|
|
2108
|
-
|
|
2013
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:167
|
|
2109
2014
|
|
|
2110
|
-
|
|
2015
|
+
***
|
|
2111
2016
|
|
|
2112
|
-
### hasAsyncFeature
|
|
2017
|
+
### hasAsyncFeature()
|
|
2113
2018
|
|
|
2114
|
-
|
|
2019
|
+
> `static` **hasAsyncFeature**(`feature`): `boolean`
|
|
2115
2020
|
|
|
2116
2021
|
#### Parameters
|
|
2117
2022
|
|
|
2118
|
-
|
|
2119
|
-
| :------ | :------ |
|
|
2120
|
-
| `feature` | [`AsyncFeatureBits`](../enums/AsyncFeatureBits.md) |
|
|
2023
|
+
• **feature**: [`AsyncFeatureBits`](../enumerations/AsyncFeatureBits.md)
|
|
2121
2024
|
|
|
2122
2025
|
#### Returns
|
|
2123
2026
|
|
|
@@ -2125,26 +2028,29 @@ ___
|
|
|
2125
2028
|
|
|
2126
2029
|
#### Inherited from
|
|
2127
2030
|
|
|
2128
|
-
[ToolFunc](ToolFunc.md).[hasAsyncFeature](ToolFunc.md#hasasyncfeature-1)
|
|
2031
|
+
[`ToolFunc`](ToolFunc.md).[`hasAsyncFeature`](ToolFunc.md#hasasyncfeature-1)
|
|
2129
2032
|
|
|
2130
2033
|
#### Defined in
|
|
2131
2034
|
|
|
2132
|
-
[packages/ai-tool/src/tool-func.ts:123](https://github.com/isdk/ai-tool.js/blob/
|
|
2035
|
+
[packages/ai-tool/src/tool-func.ts:123](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L123)
|
|
2133
2036
|
|
|
2134
|
-
|
|
2037
|
+
***
|
|
2135
2038
|
|
|
2136
|
-
### hasOwn
|
|
2039
|
+
### hasOwn()
|
|
2137
2040
|
|
|
2138
|
-
|
|
2041
|
+
> `static` **hasOwn**(`o`, `v`): `boolean`
|
|
2139
2042
|
|
|
2140
2043
|
Determines whether an object has a property with the specified name.
|
|
2141
2044
|
|
|
2142
2045
|
#### Parameters
|
|
2143
2046
|
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2047
|
+
• **o**: `object`
|
|
2048
|
+
|
|
2049
|
+
An object.
|
|
2050
|
+
|
|
2051
|
+
• **v**: `PropertyKey`
|
|
2052
|
+
|
|
2053
|
+
A property name.
|
|
2148
2054
|
|
|
2149
2055
|
#### Returns
|
|
2150
2056
|
|
|
@@ -2152,26 +2058,29 @@ Determines whether an object has a property with the specified name.
|
|
|
2152
2058
|
|
|
2153
2059
|
#### Inherited from
|
|
2154
2060
|
|
|
2155
|
-
[ToolFunc](ToolFunc.md).[hasOwn](ToolFunc.md#hasown)
|
|
2061
|
+
[`ToolFunc`](ToolFunc.md).[`hasOwn`](ToolFunc.md#hasown)
|
|
2156
2062
|
|
|
2157
2063
|
#### Defined in
|
|
2158
2064
|
|
|
2159
|
-
|
|
2065
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es2022.object.d.ts:25
|
|
2160
2066
|
|
|
2161
|
-
|
|
2067
|
+
***
|
|
2162
2068
|
|
|
2163
|
-
### is
|
|
2069
|
+
### is()
|
|
2164
2070
|
|
|
2165
|
-
|
|
2071
|
+
> `static` **is**(`value1`, `value2`): `boolean`
|
|
2166
2072
|
|
|
2167
2073
|
Returns true if the values are the same value, false otherwise.
|
|
2168
2074
|
|
|
2169
2075
|
#### Parameters
|
|
2170
2076
|
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2077
|
+
• **value1**: `any`
|
|
2078
|
+
|
|
2079
|
+
The first value.
|
|
2080
|
+
|
|
2081
|
+
• **value2**: `any`
|
|
2082
|
+
|
|
2083
|
+
The second value.
|
|
2175
2084
|
|
|
2176
2085
|
#### Returns
|
|
2177
2086
|
|
|
@@ -2179,25 +2088,25 @@ Returns true if the values are the same value, false otherwise.
|
|
|
2179
2088
|
|
|
2180
2089
|
#### Inherited from
|
|
2181
2090
|
|
|
2182
|
-
[ToolFunc](ToolFunc.md).[is](ToolFunc.md#is)
|
|
2091
|
+
[`ToolFunc`](ToolFunc.md).[`is`](ToolFunc.md#is)
|
|
2183
2092
|
|
|
2184
2093
|
#### Defined in
|
|
2185
2094
|
|
|
2186
|
-
|
|
2095
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:332
|
|
2187
2096
|
|
|
2188
|
-
|
|
2097
|
+
***
|
|
2189
2098
|
|
|
2190
|
-
### isExtensible
|
|
2099
|
+
### isExtensible()
|
|
2191
2100
|
|
|
2192
|
-
|
|
2101
|
+
> `static` **isExtensible**(`o`): `boolean`
|
|
2193
2102
|
|
|
2194
2103
|
Returns a value that indicates whether new properties can be added to an object.
|
|
2195
2104
|
|
|
2196
2105
|
#### Parameters
|
|
2197
2106
|
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2107
|
+
• **o**: `any`
|
|
2108
|
+
|
|
2109
|
+
Object to test.
|
|
2201
2110
|
|
|
2202
2111
|
#### Returns
|
|
2203
2112
|
|
|
@@ -2205,25 +2114,25 @@ Returns a value that indicates whether new properties can be added to an object.
|
|
|
2205
2114
|
|
|
2206
2115
|
#### Inherited from
|
|
2207
2116
|
|
|
2208
|
-
[ToolFunc](ToolFunc.md).[isExtensible](ToolFunc.md#isextensible)
|
|
2117
|
+
[`ToolFunc`](ToolFunc.md).[`isExtensible`](ToolFunc.md#isextensible)
|
|
2209
2118
|
|
|
2210
2119
|
#### Defined in
|
|
2211
2120
|
|
|
2212
|
-
|
|
2121
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:258
|
|
2213
2122
|
|
|
2214
|
-
|
|
2123
|
+
***
|
|
2215
2124
|
|
|
2216
|
-
### isFrozen
|
|
2125
|
+
### isFrozen()
|
|
2217
2126
|
|
|
2218
|
-
|
|
2127
|
+
> `static` **isFrozen**(`o`): `boolean`
|
|
2219
2128
|
|
|
2220
2129
|
Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
|
|
2221
2130
|
|
|
2222
2131
|
#### Parameters
|
|
2223
2132
|
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2133
|
+
• **o**: `any`
|
|
2134
|
+
|
|
2135
|
+
Object to test.
|
|
2227
2136
|
|
|
2228
2137
|
#### Returns
|
|
2229
2138
|
|
|
@@ -2231,25 +2140,25 @@ Returns true if existing property attributes and values cannot be modified in an
|
|
|
2231
2140
|
|
|
2232
2141
|
#### Inherited from
|
|
2233
2142
|
|
|
2234
|
-
[ToolFunc](ToolFunc.md).[isFrozen](ToolFunc.md#isfrozen)
|
|
2143
|
+
[`ToolFunc`](ToolFunc.md).[`isFrozen`](ToolFunc.md#isfrozen)
|
|
2235
2144
|
|
|
2236
2145
|
#### Defined in
|
|
2237
2146
|
|
|
2238
|
-
|
|
2147
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:252
|
|
2239
2148
|
|
|
2240
|
-
|
|
2149
|
+
***
|
|
2241
2150
|
|
|
2242
|
-
### isSealed
|
|
2151
|
+
### isSealed()
|
|
2243
2152
|
|
|
2244
|
-
|
|
2153
|
+
> `static` **isSealed**(`o`): `boolean`
|
|
2245
2154
|
|
|
2246
2155
|
Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
|
|
2247
2156
|
|
|
2248
2157
|
#### Parameters
|
|
2249
2158
|
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2159
|
+
• **o**: `any`
|
|
2160
|
+
|
|
2161
|
+
Object to test.
|
|
2253
2162
|
|
|
2254
2163
|
#### Returns
|
|
2255
2164
|
|
|
@@ -2257,65 +2166,69 @@ Returns true if existing property attributes cannot be modified in an object and
|
|
|
2257
2166
|
|
|
2258
2167
|
#### Inherited from
|
|
2259
2168
|
|
|
2260
|
-
[ToolFunc](ToolFunc.md).[isSealed](ToolFunc.md#issealed)
|
|
2169
|
+
[`ToolFunc`](ToolFunc.md).[`isSealed`](ToolFunc.md#issealed)
|
|
2261
2170
|
|
|
2262
2171
|
#### Defined in
|
|
2263
2172
|
|
|
2264
|
-
|
|
2173
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:246
|
|
2265
2174
|
|
|
2266
|
-
|
|
2175
|
+
***
|
|
2267
2176
|
|
|
2268
|
-
### keys
|
|
2177
|
+
### keys()
|
|
2269
2178
|
|
|
2270
|
-
|
|
2179
|
+
#### keys(o)
|
|
2180
|
+
|
|
2181
|
+
> `static` **keys**(`o`): `string`[]
|
|
2271
2182
|
|
|
2272
2183
|
Returns the names of the enumerable string properties and methods of an object.
|
|
2273
2184
|
|
|
2274
|
-
|
|
2185
|
+
##### Parameters
|
|
2275
2186
|
|
|
2276
|
-
|
|
2277
|
-
| :------ | :------ | :------ |
|
|
2278
|
-
| `o` | `object` | Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. |
|
|
2187
|
+
• **o**: `object`
|
|
2279
2188
|
|
|
2280
|
-
|
|
2189
|
+
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
2190
|
+
|
|
2191
|
+
##### Returns
|
|
2281
2192
|
|
|
2282
2193
|
`string`[]
|
|
2283
2194
|
|
|
2284
|
-
|
|
2195
|
+
##### Inherited from
|
|
2285
2196
|
|
|
2286
|
-
[ToolFunc](ToolFunc.md).[keys](ToolFunc.md#keys)
|
|
2197
|
+
[`ToolFunc`](ToolFunc.md).[`keys`](ToolFunc.md#keys)
|
|
2287
2198
|
|
|
2288
|
-
|
|
2199
|
+
##### Defined in
|
|
2200
|
+
|
|
2201
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:264
|
|
2289
2202
|
|
|
2290
|
-
|
|
2203
|
+
#### keys(o)
|
|
2291
2204
|
|
|
2292
|
-
|
|
2205
|
+
> `static` **keys**(`o`): `string`[]
|
|
2293
2206
|
|
|
2294
2207
|
Returns the names of the enumerable string properties and methods of an object.
|
|
2295
2208
|
|
|
2296
|
-
|
|
2209
|
+
##### Parameters
|
|
2297
2210
|
|
|
2298
|
-
|
|
2299
|
-
| :------ | :------ | :------ |
|
|
2300
|
-
| `o` | `Object` | Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. |
|
|
2211
|
+
• **o**
|
|
2301
2212
|
|
|
2302
|
-
|
|
2213
|
+
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
2214
|
+
|
|
2215
|
+
##### Returns
|
|
2303
2216
|
|
|
2304
2217
|
`string`[]
|
|
2305
2218
|
|
|
2306
|
-
|
|
2219
|
+
##### Inherited from
|
|
2307
2220
|
|
|
2308
|
-
[ToolFunc](ToolFunc.md).[keys](ToolFunc.md#keys)
|
|
2221
|
+
[`ToolFunc`](ToolFunc.md).[`keys`](ToolFunc.md#keys)
|
|
2309
2222
|
|
|
2310
|
-
|
|
2223
|
+
##### Defined in
|
|
2311
2224
|
|
|
2312
|
-
|
|
2225
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:325
|
|
2313
2226
|
|
|
2314
|
-
|
|
2227
|
+
***
|
|
2315
2228
|
|
|
2316
|
-
### list
|
|
2229
|
+
### list()
|
|
2317
2230
|
|
|
2318
|
-
|
|
2231
|
+
> `static` **list**(): [`Funcs`](../interfaces/Funcs.md)
|
|
2319
2232
|
|
|
2320
2233
|
#### Returns
|
|
2321
2234
|
|
|
@@ -2323,31 +2236,29 @@ ___
|
|
|
2323
2236
|
|
|
2324
2237
|
#### Inherited from
|
|
2325
2238
|
|
|
2326
|
-
[ToolFunc](ToolFunc.md).[list](ToolFunc.md#list)
|
|
2239
|
+
[`ToolFunc`](ToolFunc.md).[`list`](ToolFunc.md#list)
|
|
2327
2240
|
|
|
2328
2241
|
#### Defined in
|
|
2329
2242
|
|
|
2330
|
-
[packages/ai-tool/src/tool-func.ts:81](https://github.com/isdk/ai-tool.js/blob/
|
|
2243
|
+
[packages/ai-tool/src/tool-func.ts:81](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L81)
|
|
2331
2244
|
|
|
2332
|
-
|
|
2245
|
+
***
|
|
2333
2246
|
|
|
2334
|
-
### preventExtensions
|
|
2247
|
+
### preventExtensions()
|
|
2335
2248
|
|
|
2336
|
-
|
|
2249
|
+
> `static` **preventExtensions**\<`T`\>(`o`): `T`
|
|
2337
2250
|
|
|
2338
2251
|
Prevents the addition of new properties to an object.
|
|
2339
2252
|
|
|
2340
|
-
#### Type
|
|
2253
|
+
#### Type Parameters
|
|
2341
2254
|
|
|
2342
|
-
|
|
2343
|
-
| :------ |
|
|
2344
|
-
| `T` |
|
|
2255
|
+
• **T**
|
|
2345
2256
|
|
|
2346
2257
|
#### Parameters
|
|
2347
2258
|
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2259
|
+
• **o**: `T`
|
|
2260
|
+
|
|
2261
|
+
Object to make non-extensible.
|
|
2351
2262
|
|
|
2352
2263
|
#### Returns
|
|
2353
2264
|
|
|
@@ -2355,91 +2266,93 @@ Prevents the addition of new properties to an object.
|
|
|
2355
2266
|
|
|
2356
2267
|
#### Inherited from
|
|
2357
2268
|
|
|
2358
|
-
[ToolFunc](ToolFunc.md).[preventExtensions](ToolFunc.md#preventextensions)
|
|
2269
|
+
[`ToolFunc`](ToolFunc.md).[`preventExtensions`](ToolFunc.md#preventextensions)
|
|
2359
2270
|
|
|
2360
2271
|
#### Defined in
|
|
2361
2272
|
|
|
2362
|
-
|
|
2273
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:240
|
|
2363
2274
|
|
|
2364
|
-
|
|
2275
|
+
***
|
|
2365
2276
|
|
|
2366
|
-
### register
|
|
2277
|
+
### register()
|
|
2367
2278
|
|
|
2368
|
-
|
|
2279
|
+
#### register(name, options)
|
|
2369
2280
|
|
|
2370
|
-
|
|
2281
|
+
> `static` **register**(`name`, `options`): `boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
2371
2282
|
|
|
2372
|
-
|
|
2373
|
-
| :------ | :------ |
|
|
2374
|
-
| `name` | `string` |
|
|
2375
|
-
| `options` | [`FuncItem`](../interfaces/FuncItem.md) |
|
|
2283
|
+
##### Parameters
|
|
2376
2284
|
|
|
2377
|
-
|
|
2285
|
+
• **name**: `string`
|
|
2286
|
+
|
|
2287
|
+
• **options**: [`FuncItem`](../interfaces/FuncItem.md)
|
|
2288
|
+
|
|
2289
|
+
##### Returns
|
|
2378
2290
|
|
|
2379
2291
|
`boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
2380
2292
|
|
|
2381
|
-
|
|
2293
|
+
##### Inherited from
|
|
2382
2294
|
|
|
2383
|
-
[ToolFunc](ToolFunc.md).[register](ToolFunc.md#register-1)
|
|
2295
|
+
[`ToolFunc`](ToolFunc.md).[`register`](ToolFunc.md#register-1)
|
|
2384
2296
|
|
|
2385
|
-
|
|
2297
|
+
##### Defined in
|
|
2386
2298
|
|
|
2387
|
-
[packages/ai-tool/src/tool-func.ts:172](https://github.com/isdk/ai-tool.js/blob/
|
|
2299
|
+
[packages/ai-tool/src/tool-func.ts:172](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L172)
|
|
2388
2300
|
|
|
2389
|
-
|
|
2301
|
+
#### register(func, options)
|
|
2390
2302
|
|
|
2391
|
-
|
|
2303
|
+
> `static` **register**(`func`, `options`): `boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
2392
2304
|
|
|
2393
|
-
|
|
2394
|
-
| :------ | :------ |
|
|
2395
|
-
| `func` | `Function` |
|
|
2396
|
-
| `options` | [`FuncItem`](../interfaces/FuncItem.md) |
|
|
2305
|
+
##### Parameters
|
|
2397
2306
|
|
|
2398
|
-
|
|
2307
|
+
• **func**: `Function`
|
|
2308
|
+
|
|
2309
|
+
• **options**: [`FuncItem`](../interfaces/FuncItem.md)
|
|
2310
|
+
|
|
2311
|
+
##### Returns
|
|
2399
2312
|
|
|
2400
2313
|
`boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
2401
2314
|
|
|
2402
|
-
|
|
2315
|
+
##### Inherited from
|
|
2403
2316
|
|
|
2404
|
-
[ToolFunc](ToolFunc.md).[register](ToolFunc.md#register-1)
|
|
2317
|
+
[`ToolFunc`](ToolFunc.md).[`register`](ToolFunc.md#register-1)
|
|
2405
2318
|
|
|
2406
|
-
|
|
2319
|
+
##### Defined in
|
|
2407
2320
|
|
|
2408
|
-
[packages/ai-tool/src/tool-func.ts:173](https://github.com/isdk/ai-tool.js/blob/
|
|
2321
|
+
[packages/ai-tool/src/tool-func.ts:173](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L173)
|
|
2409
2322
|
|
|
2410
|
-
|
|
2323
|
+
#### register(name, options)
|
|
2411
2324
|
|
|
2412
|
-
|
|
2325
|
+
> `static` **register**(`name`, `options`?): `boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
2413
2326
|
|
|
2414
|
-
|
|
2415
|
-
| :------ | :------ |
|
|
2416
|
-
| `name` | `string` \| `Function` \| [`ToolFunc`](ToolFunc.md) \| [`FuncItem`](../interfaces/FuncItem.md) |
|
|
2417
|
-
| `options?` | [`FuncItem`](../interfaces/FuncItem.md) |
|
|
2327
|
+
##### Parameters
|
|
2418
2328
|
|
|
2419
|
-
|
|
2329
|
+
• **name**: `string` \| `Function` \| [`ToolFunc`](ToolFunc.md) \| [`FuncItem`](../interfaces/FuncItem.md)
|
|
2330
|
+
|
|
2331
|
+
• **options?**: [`FuncItem`](../interfaces/FuncItem.md)
|
|
2332
|
+
|
|
2333
|
+
##### Returns
|
|
2420
2334
|
|
|
2421
2335
|
`boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
2422
2336
|
|
|
2423
|
-
|
|
2337
|
+
##### Inherited from
|
|
2424
2338
|
|
|
2425
|
-
[ToolFunc](ToolFunc.md).[register](ToolFunc.md#register-1)
|
|
2339
|
+
[`ToolFunc`](ToolFunc.md).[`register`](ToolFunc.md#register-1)
|
|
2426
2340
|
|
|
2427
|
-
|
|
2341
|
+
##### Defined in
|
|
2428
2342
|
|
|
2429
|
-
[packages/ai-tool/src/tool-func.ts:174](https://github.com/isdk/ai-tool.js/blob/
|
|
2343
|
+
[packages/ai-tool/src/tool-func.ts:174](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L174)
|
|
2430
2344
|
|
|
2431
|
-
|
|
2345
|
+
***
|
|
2432
2346
|
|
|
2433
|
-
### run
|
|
2347
|
+
### run()
|
|
2434
2348
|
|
|
2435
|
-
|
|
2349
|
+
> `static` **run**(`name`, `params`?): `Promise`\<`any`\>
|
|
2436
2350
|
|
|
2437
2351
|
#### Parameters
|
|
2438
2352
|
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
| `params?` | `any` |
|
|
2353
|
+
• **name**: `string`
|
|
2354
|
+
|
|
2355
|
+
• **params?**: `any`
|
|
2443
2356
|
|
|
2444
2357
|
#### Returns
|
|
2445
2358
|
|
|
@@ -2447,24 +2360,23 @@ ___
|
|
|
2447
2360
|
|
|
2448
2361
|
#### Inherited from
|
|
2449
2362
|
|
|
2450
|
-
[ToolFunc](ToolFunc.md).[run](ToolFunc.md#run-1)
|
|
2363
|
+
[`ToolFunc`](ToolFunc.md).[`run`](ToolFunc.md#run-1)
|
|
2451
2364
|
|
|
2452
2365
|
#### Defined in
|
|
2453
2366
|
|
|
2454
|
-
[packages/ai-tool/src/tool-func.ts:130](https://github.com/isdk/ai-tool.js/blob/
|
|
2367
|
+
[packages/ai-tool/src/tool-func.ts:130](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L130)
|
|
2455
2368
|
|
|
2456
|
-
|
|
2369
|
+
***
|
|
2457
2370
|
|
|
2458
|
-
### runSync
|
|
2371
|
+
### runSync()
|
|
2459
2372
|
|
|
2460
|
-
|
|
2373
|
+
> `static` **runSync**(`name`, `params`?): `any`
|
|
2461
2374
|
|
|
2462
2375
|
#### Parameters
|
|
2463
2376
|
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
| `params?` | `any` |
|
|
2377
|
+
• **name**: `string`
|
|
2378
|
+
|
|
2379
|
+
• **params?**: `any`
|
|
2468
2380
|
|
|
2469
2381
|
#### Returns
|
|
2470
2382
|
|
|
@@ -2472,24 +2384,23 @@ ___
|
|
|
2472
2384
|
|
|
2473
2385
|
#### Inherited from
|
|
2474
2386
|
|
|
2475
|
-
[ToolFunc](ToolFunc.md).[runSync](ToolFunc.md#runsync-1)
|
|
2387
|
+
[`ToolFunc`](ToolFunc.md).[`runSync`](ToolFunc.md#runsync-1)
|
|
2476
2388
|
|
|
2477
2389
|
#### Defined in
|
|
2478
2390
|
|
|
2479
|
-
[packages/ai-tool/src/tool-func.ts:138](https://github.com/isdk/ai-tool.js/blob/
|
|
2391
|
+
[packages/ai-tool/src/tool-func.ts:138](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L138)
|
|
2480
2392
|
|
|
2481
|
-
|
|
2393
|
+
***
|
|
2482
2394
|
|
|
2483
|
-
### runWithPos
|
|
2395
|
+
### runWithPos()
|
|
2484
2396
|
|
|
2485
|
-
|
|
2397
|
+
> `static` **runWithPos**(`name`, ...`params`): `Promise`\<`any`\>
|
|
2486
2398
|
|
|
2487
2399
|
#### Parameters
|
|
2488
2400
|
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
| `...params` | `any`[] |
|
|
2401
|
+
• **name**: `string`
|
|
2402
|
+
|
|
2403
|
+
• ...**params**: `any`[]
|
|
2493
2404
|
|
|
2494
2405
|
#### Returns
|
|
2495
2406
|
|
|
@@ -2497,24 +2408,23 @@ ___
|
|
|
2497
2408
|
|
|
2498
2409
|
#### Inherited from
|
|
2499
2410
|
|
|
2500
|
-
[ToolFunc](ToolFunc.md).[runWithPos](ToolFunc.md#runwithpos-1)
|
|
2411
|
+
[`ToolFunc`](ToolFunc.md).[`runWithPos`](ToolFunc.md#runwithpos-1)
|
|
2501
2412
|
|
|
2502
2413
|
#### Defined in
|
|
2503
2414
|
|
|
2504
|
-
[packages/ai-tool/src/tool-func.ts:151](https://github.com/isdk/ai-tool.js/blob/
|
|
2415
|
+
[packages/ai-tool/src/tool-func.ts:151](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L151)
|
|
2505
2416
|
|
|
2506
|
-
|
|
2417
|
+
***
|
|
2507
2418
|
|
|
2508
|
-
### runWithPosSync
|
|
2419
|
+
### runWithPosSync()
|
|
2509
2420
|
|
|
2510
|
-
|
|
2421
|
+
> `static` **runWithPosSync**(`name`, ...`params`): `any`
|
|
2511
2422
|
|
|
2512
2423
|
#### Parameters
|
|
2513
2424
|
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
| `...params` | `any`[] |
|
|
2425
|
+
• **name**: `string`
|
|
2426
|
+
|
|
2427
|
+
• ...**params**: `any`[]
|
|
2518
2428
|
|
|
2519
2429
|
#### Returns
|
|
2520
2430
|
|
|
@@ -2522,31 +2432,29 @@ ___
|
|
|
2522
2432
|
|
|
2523
2433
|
#### Inherited from
|
|
2524
2434
|
|
|
2525
|
-
[ToolFunc](ToolFunc.md).[runWithPosSync](ToolFunc.md#runwithpossync-1)
|
|
2435
|
+
[`ToolFunc`](ToolFunc.md).[`runWithPosSync`](ToolFunc.md#runwithpossync-1)
|
|
2526
2436
|
|
|
2527
2437
|
#### Defined in
|
|
2528
2438
|
|
|
2529
|
-
[packages/ai-tool/src/tool-func.ts:159](https://github.com/isdk/ai-tool.js/blob/
|
|
2439
|
+
[packages/ai-tool/src/tool-func.ts:159](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L159)
|
|
2530
2440
|
|
|
2531
|
-
|
|
2441
|
+
***
|
|
2532
2442
|
|
|
2533
|
-
### seal
|
|
2443
|
+
### seal()
|
|
2534
2444
|
|
|
2535
|
-
|
|
2445
|
+
> `static` **seal**\<`T`\>(`o`): `T`
|
|
2536
2446
|
|
|
2537
2447
|
Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
|
|
2538
2448
|
|
|
2539
|
-
#### Type
|
|
2449
|
+
#### Type Parameters
|
|
2540
2450
|
|
|
2541
|
-
|
|
2542
|
-
| :------ |
|
|
2543
|
-
| `T` |
|
|
2451
|
+
• **T**
|
|
2544
2452
|
|
|
2545
2453
|
#### Parameters
|
|
2546
2454
|
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2455
|
+
• **o**: `T`
|
|
2456
|
+
|
|
2457
|
+
Object on which to lock the attributes.
|
|
2550
2458
|
|
|
2551
2459
|
#### Returns
|
|
2552
2460
|
|
|
@@ -2554,23 +2462,21 @@ Prevents the modification of attributes of existing properties, and prevents the
|
|
|
2554
2462
|
|
|
2555
2463
|
#### Inherited from
|
|
2556
2464
|
|
|
2557
|
-
[ToolFunc](ToolFunc.md).[seal](ToolFunc.md#seal)
|
|
2465
|
+
[`ToolFunc`](ToolFunc.md).[`seal`](ToolFunc.md#seal)
|
|
2558
2466
|
|
|
2559
2467
|
#### Defined in
|
|
2560
2468
|
|
|
2561
|
-
|
|
2469
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es5.d.ts:216
|
|
2562
2470
|
|
|
2563
|
-
|
|
2471
|
+
***
|
|
2564
2472
|
|
|
2565
|
-
### setApiRoot
|
|
2473
|
+
### setApiRoot()
|
|
2566
2474
|
|
|
2567
|
-
|
|
2475
|
+
> `static` **setApiRoot**(`v`): `void`
|
|
2568
2476
|
|
|
2569
2477
|
#### Parameters
|
|
2570
2478
|
|
|
2571
|
-
|
|
2572
|
-
| :------ | :------ |
|
|
2573
|
-
| `v` | `string` |
|
|
2479
|
+
• **v**: `string`
|
|
2574
2480
|
|
|
2575
2481
|
#### Returns
|
|
2576
2482
|
|
|
@@ -2578,22 +2484,25 @@ ___
|
|
|
2578
2484
|
|
|
2579
2485
|
#### Defined in
|
|
2580
2486
|
|
|
2581
|
-
[packages/ai-tool/src/server-tools.ts:30](https://github.com/isdk/ai-tool.js/blob/
|
|
2487
|
+
[packages/ai-tool/src/server-tools.ts:30](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/server-tools.ts#L30)
|
|
2582
2488
|
|
|
2583
|
-
|
|
2489
|
+
***
|
|
2584
2490
|
|
|
2585
|
-
### setPrototypeOf
|
|
2491
|
+
### setPrototypeOf()
|
|
2586
2492
|
|
|
2587
|
-
|
|
2493
|
+
> `static` **setPrototypeOf**(`o`, `proto`): `any`
|
|
2588
2494
|
|
|
2589
2495
|
Sets the prototype of a specified object o to object proto or null. Returns the object o.
|
|
2590
2496
|
|
|
2591
2497
|
#### Parameters
|
|
2592
2498
|
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2499
|
+
• **o**: `any`
|
|
2500
|
+
|
|
2501
|
+
The object to change its prototype.
|
|
2502
|
+
|
|
2503
|
+
• **proto**: `null` \| `object`
|
|
2504
|
+
|
|
2505
|
+
The value of the new prototype or null.
|
|
2597
2506
|
|
|
2598
2507
|
#### Returns
|
|
2599
2508
|
|
|
@@ -2601,37 +2510,35 @@ Sets the prototype of a specified object o to object proto or null. Returns the
|
|
|
2601
2510
|
|
|
2602
2511
|
#### Inherited from
|
|
2603
2512
|
|
|
2604
|
-
[ToolFunc](ToolFunc.md).[setPrototypeOf](ToolFunc.md#setprototypeof)
|
|
2513
|
+
[`ToolFunc`](ToolFunc.md).[`setPrototypeOf`](ToolFunc.md#setprototypeof)
|
|
2605
2514
|
|
|
2606
2515
|
#### Defined in
|
|
2607
2516
|
|
|
2608
|
-
|
|
2517
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:339
|
|
2609
2518
|
|
|
2610
|
-
|
|
2519
|
+
***
|
|
2611
2520
|
|
|
2612
|
-
### toJSON
|
|
2521
|
+
### toJSON()
|
|
2613
2522
|
|
|
2614
|
-
|
|
2523
|
+
> `static` **toJSON**(): `object`
|
|
2615
2524
|
|
|
2616
2525
|
#### Returns
|
|
2617
2526
|
|
|
2618
|
-
`
|
|
2527
|
+
`object`
|
|
2619
2528
|
|
|
2620
2529
|
#### Defined in
|
|
2621
2530
|
|
|
2622
|
-
[packages/ai-tool/src/server-tools.ts:44](https://github.com/isdk/ai-tool.js/blob/
|
|
2531
|
+
[packages/ai-tool/src/server-tools.ts:44](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/server-tools.ts#L44)
|
|
2623
2532
|
|
|
2624
|
-
|
|
2533
|
+
***
|
|
2625
2534
|
|
|
2626
|
-
### unregister
|
|
2535
|
+
### unregister()
|
|
2627
2536
|
|
|
2628
|
-
|
|
2537
|
+
> `static` **unregister**(`name`): `undefined` \| [`ToolFunc`](ToolFunc.md)
|
|
2629
2538
|
|
|
2630
2539
|
#### Parameters
|
|
2631
2540
|
|
|
2632
|
-
|
|
2633
|
-
| :------ | :------ |
|
|
2634
|
-
| `name` | `string` |
|
|
2541
|
+
• **name**: `string`
|
|
2635
2542
|
|
|
2636
2543
|
#### Returns
|
|
2637
2544
|
|
|
@@ -2639,62 +2546,64 @@ ___
|
|
|
2639
2546
|
|
|
2640
2547
|
#### Inherited from
|
|
2641
2548
|
|
|
2642
|
-
[ToolFunc](ToolFunc.md).[unregister](ToolFunc.md#unregister-1)
|
|
2549
|
+
[`ToolFunc`](ToolFunc.md).[`unregister`](ToolFunc.md#unregister-1)
|
|
2643
2550
|
|
|
2644
2551
|
#### Defined in
|
|
2645
2552
|
|
|
2646
|
-
[packages/ai-tool/src/tool-func.ts:202](https://github.com/isdk/ai-tool.js/blob/
|
|
2553
|
+
[packages/ai-tool/src/tool-func.ts:202](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/tool-func.ts#L202)
|
|
2647
2554
|
|
|
2648
|
-
|
|
2555
|
+
***
|
|
2649
2556
|
|
|
2650
|
-
### values
|
|
2557
|
+
### values()
|
|
2651
2558
|
|
|
2652
|
-
|
|
2559
|
+
#### values(o)
|
|
2653
2560
|
|
|
2654
|
-
|
|
2561
|
+
> `static` **values**\<`T`\>(`o`): `T`[]
|
|
2655
2562
|
|
|
2656
|
-
|
|
2563
|
+
Returns an array of values of the enumerable own properties of an object
|
|
2657
2564
|
|
|
2658
|
-
|
|
2659
|
-
| :------ |
|
|
2660
|
-
| `T` |
|
|
2565
|
+
##### Type Parameters
|
|
2661
2566
|
|
|
2662
|
-
|
|
2567
|
+
• **T**
|
|
2663
2568
|
|
|
2664
|
-
|
|
2665
|
-
| :------ | :------ | :------ |
|
|
2666
|
-
| `o` | \{ `[s: string]`: `T`; } \| `ArrayLike`\<`T`\> | Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. |
|
|
2569
|
+
##### Parameters
|
|
2667
2570
|
|
|
2668
|
-
|
|
2571
|
+
• **o**: `object` \| `ArrayLike`\<`T`\>
|
|
2572
|
+
|
|
2573
|
+
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
2574
|
+
|
|
2575
|
+
##### Returns
|
|
2669
2576
|
|
|
2670
2577
|
`T`[]
|
|
2671
2578
|
|
|
2672
|
-
|
|
2579
|
+
##### Inherited from
|
|
2673
2580
|
|
|
2674
|
-
[ToolFunc](ToolFunc.md).[values](ToolFunc.md#values)
|
|
2581
|
+
[`ToolFunc`](ToolFunc.md).[`values`](ToolFunc.md#values)
|
|
2675
2582
|
|
|
2676
|
-
|
|
2583
|
+
##### Defined in
|
|
2677
2584
|
|
|
2678
|
-
|
|
2585
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es2017.object.d.ts:24
|
|
2679
2586
|
|
|
2680
|
-
|
|
2587
|
+
#### values(o)
|
|
2681
2588
|
|
|
2682
|
-
|
|
2589
|
+
> `static` **values**(`o`): `any`[]
|
|
2683
2590
|
|
|
2684
|
-
|
|
2591
|
+
Returns an array of values of the enumerable own properties of an object
|
|
2592
|
+
|
|
2593
|
+
##### Parameters
|
|
2685
2594
|
|
|
2686
|
-
|
|
2687
|
-
| :------ | :------ | :------ |
|
|
2688
|
-
| `o` | `Object` | Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. |
|
|
2595
|
+
• **o**
|
|
2689
2596
|
|
|
2690
|
-
|
|
2597
|
+
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
2598
|
+
|
|
2599
|
+
##### Returns
|
|
2691
2600
|
|
|
2692
2601
|
`any`[]
|
|
2693
2602
|
|
|
2694
|
-
|
|
2603
|
+
##### Inherited from
|
|
2695
2604
|
|
|
2696
|
-
[ToolFunc](ToolFunc.md).[values](ToolFunc.md#values)
|
|
2605
|
+
[`ToolFunc`](ToolFunc.md).[`values`](ToolFunc.md#values)
|
|
2697
2606
|
|
|
2698
|
-
|
|
2607
|
+
##### Defined in
|
|
2699
2608
|
|
|
2700
|
-
|
|
2609
|
+
node\_modules/.pnpm/typescript@5.6.2/node\_modules/typescript/lib/lib.es2017.object.d.ts:30
|