@isdk/ai-tool 0.0.2

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