@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,2124 @@
1
+ [@isdk/ai-tool](../README.md) / [Exports](../modules.md) / ToolFunc
2
+
3
+ # Class: ToolFunc
4
+
5
+ ## Hierarchy
6
+
7
+ - [`BaseFunc`](../interfaces/BaseFunc.md)
8
+
9
+ - `AdvancePropertyManager`
10
+
11
+ ↳ **`ToolFunc`**
12
+
13
+ ↳↳ [`ClientTools`](ClientTools.md)
14
+
15
+ ↳↳ [`ServerTools`](ServerTools.md)
16
+
17
+ ↳↳ [`EventToolFunc`](EventToolFunc.md)
18
+
19
+ ## Indexable
20
+
21
+ ▪ [name: `string`]: `any`
22
+
23
+ ## Table of contents
24
+
25
+ ### Constructors
26
+
27
+ - [constructor](ToolFunc.md#constructor)
28
+
29
+ ### Properties
30
+
31
+ - [$attributes](ToolFunc.md#$attributes)
32
+ - [constructor](ToolFunc.md#constructor-1)
33
+ - [defaultOptions](ToolFunc.md#defaultoptions)
34
+ - [name](ToolFunc.md#name)
35
+ - [nonExported1stChar](ToolFunc.md#nonexported1stchar)
36
+ - [params](ToolFunc.md#params)
37
+ - [result](ToolFunc.md#result)
38
+ - [scope](ToolFunc.md#scope)
39
+ - [setup](ToolFunc.md#setup)
40
+ - [should](ToolFunc.md#should)
41
+ - [tags](ToolFunc.md#tags)
42
+ - [dataPath](ToolFunc.md#datapath)
43
+ - [items](ToolFunc.md#items)
44
+
45
+ ### Methods
46
+
47
+ - [arr2ObjParams](ToolFunc.md#arr2objparams)
48
+ - [assign](ToolFunc.md#assign)
49
+ - [assignProperty](ToolFunc.md#assignproperty)
50
+ - [assignPropertyTo](ToolFunc.md#assignpropertyto)
51
+ - [assignTo](ToolFunc.md#assignto)
52
+ - [clone](ToolFunc.md#clone)
53
+ - [cloneTo](ToolFunc.md#cloneto)
54
+ - [defineProperties](ToolFunc.md#defineproperties)
55
+ - [exportTo](ToolFunc.md#exportto)
56
+ - [func](ToolFunc.md#func)
57
+ - [getFunc](ToolFunc.md#getfunc)
58
+ - [getFuncWithPos](ToolFunc.md#getfuncwithpos)
59
+ - [getProperties](ToolFunc.md#getproperties)
60
+ - [hasOwnProperty](ToolFunc.md#hasownproperty)
61
+ - [initialize](ToolFunc.md#initialize)
62
+ - [isPrototypeOf](ToolFunc.md#isprototypeof)
63
+ - [isSame](ToolFunc.md#issame)
64
+ - [mergeTo](ToolFunc.md#mergeto)
65
+ - [obj2ArrParams](ToolFunc.md#obj2arrparams)
66
+ - [propertyIsEnumerable](ToolFunc.md#propertyisenumerable)
67
+ - [register](ToolFunc.md#register)
68
+ - [run](ToolFunc.md#run)
69
+ - [runAs](ToolFunc.md#runas)
70
+ - [runAsSync](ToolFunc.md#runassync)
71
+ - [runSync](ToolFunc.md#runsync)
72
+ - [runWithPos](ToolFunc.md#runwithpos)
73
+ - [runWithPosAs](ToolFunc.md#runwithposas)
74
+ - [runWithPosAsSync](ToolFunc.md#runwithposassync)
75
+ - [runWithPosSync](ToolFunc.md#runwithpossync)
76
+ - [toJSON](ToolFunc.md#tojson)
77
+ - [toLocaleString](ToolFunc.md#tolocalestring)
78
+ - [toObject](ToolFunc.md#toobject)
79
+ - [toString](ToolFunc.md#tostring)
80
+ - [unregister](ToolFunc.md#unregister)
81
+ - [valueOf](ToolFunc.md#valueof)
82
+ - [assign](ToolFunc.md#assign-1)
83
+ - [create](ToolFunc.md#create)
84
+ - [defineProperties](ToolFunc.md#defineproperties-1)
85
+ - [defineProperty](ToolFunc.md#defineproperty)
86
+ - [entries](ToolFunc.md#entries)
87
+ - [freeze](ToolFunc.md#freeze)
88
+ - [fromEntries](ToolFunc.md#fromentries)
89
+ - [get](ToolFunc.md#get)
90
+ - [getAllByTag](ToolFunc.md#getallbytag)
91
+ - [getByTag](ToolFunc.md#getbytag)
92
+ - [getFunc](ToolFunc.md#getfunc-1)
93
+ - [getFuncWithPos](ToolFunc.md#getfuncwithpos-1)
94
+ - [getOwnPropertyDescriptor](ToolFunc.md#getownpropertydescriptor)
95
+ - [getOwnPropertyDescriptors](ToolFunc.md#getownpropertydescriptors)
96
+ - [getOwnPropertyNames](ToolFunc.md#getownpropertynames)
97
+ - [getOwnPropertySymbols](ToolFunc.md#getownpropertysymbols)
98
+ - [getProperties](ToolFunc.md#getproperties-1)
99
+ - [getPrototypeOf](ToolFunc.md#getprototypeof)
100
+ - [hasOwn](ToolFunc.md#hasown)
101
+ - [is](ToolFunc.md#is)
102
+ - [isExtensible](ToolFunc.md#isextensible)
103
+ - [isFrozen](ToolFunc.md#isfrozen)
104
+ - [isSealed](ToolFunc.md#issealed)
105
+ - [keys](ToolFunc.md#keys)
106
+ - [list](ToolFunc.md#list)
107
+ - [preventExtensions](ToolFunc.md#preventextensions)
108
+ - [register](ToolFunc.md#register-1)
109
+ - [run](ToolFunc.md#run-1)
110
+ - [runSync](ToolFunc.md#runsync-1)
111
+ - [runWithPos](ToolFunc.md#runwithpos-1)
112
+ - [runWithPosSync](ToolFunc.md#runwithpossync-1)
113
+ - [seal](ToolFunc.md#seal)
114
+ - [setPrototypeOf](ToolFunc.md#setprototypeof)
115
+ - [unregister](ToolFunc.md#unregister-1)
116
+ - [values](ToolFunc.md#values)
117
+
118
+ ## Constructors
119
+
120
+ ### constructor
121
+
122
+ • **new ToolFunc**(`name`, `options?`): [`ToolFunc`](ToolFunc.md)
123
+
124
+ #### Parameters
125
+
126
+ | Name | Type |
127
+ | :------ | :------ |
128
+ | `name` | `string` \| `Function` \| [`FuncItem`](../interfaces/FuncItem.md) |
129
+ | `options` | `any` |
130
+
131
+ #### Returns
132
+
133
+ [`ToolFunc`](ToolFunc.md)
134
+
135
+ #### Inherited from
136
+
137
+ BaseFunc.constructor
138
+
139
+ #### Defined in
140
+
141
+ [packages/ai-tool/src/tool-func.ts:175](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L175)
142
+
143
+ ## Properties
144
+
145
+ ### $attributes
146
+
147
+ • **$attributes**: `Properties`
148
+
149
+ #### Defined in
150
+
151
+ node_modules/.pnpm/property-manager@2.0.0-alpha.5/node_modules/property-manager/lib/advance.d.ts:5
152
+
153
+ ___
154
+
155
+ ### constructor
156
+
157
+ • **constructor**: `Function`
158
+
159
+ The initial value of Object.prototype.constructor is the standard built-in Object constructor.
160
+
161
+ #### Defined in
162
+
163
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:125
164
+
165
+ ___
166
+
167
+ ### defaultOptions
168
+
169
+ • **defaultOptions**: `Object`
170
+
171
+ The default options for export and assign
172
+
173
+ #### Type declaration
174
+
175
+ | Name | Type |
176
+ | :------ | :------ |
177
+ | `assign?` | `IMergeOptions` |
178
+ | `export?` | `IMergeOptions` |
179
+
180
+ #### Defined in
181
+
182
+ node_modules/.pnpm/property-manager@2.0.0-alpha.5/node_modules/property-manager/lib/abstract.d.ts:74
183
+
184
+ ___
185
+
186
+ ### name
187
+
188
+ • `Optional` **name**: `string`
189
+
190
+ #### Inherited from
191
+
192
+ [BaseFunc](../interfaces/BaseFunc.md).[name](../interfaces/BaseFunc.md#name)
193
+
194
+ #### Defined in
195
+
196
+ [packages/ai-tool/src/tool-func.ts:21](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L21)
197
+
198
+ ___
199
+
200
+ ### nonExported1stChar
201
+
202
+ • **nonExported1stChar**: `string`
203
+
204
+ the property with the default prefix '$' will not be exported.
205
+
206
+ #### Defined in
207
+
208
+ node_modules/.pnpm/property-manager@2.0.0-alpha.5/node_modules/property-manager/lib/abstract.d.ts:78
209
+
210
+ ___
211
+
212
+ ### params
213
+
214
+ • `Optional` **params**: [`FuncParams`](../interfaces/FuncParams.md) \| [`FuncParam`](../interfaces/FuncParam.md)[]
215
+
216
+ #### Inherited from
217
+
218
+ [BaseFunc](../interfaces/BaseFunc.md).[params](../interfaces/BaseFunc.md#params)
219
+
220
+ #### Defined in
221
+
222
+ [packages/ai-tool/src/tool-func.ts:22](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L22)
223
+
224
+ ___
225
+
226
+ ### result
227
+
228
+ • `Optional` **result**: `string`
229
+
230
+ #### Inherited from
231
+
232
+ [BaseFunc](../interfaces/BaseFunc.md).[result](../interfaces/BaseFunc.md#result)
233
+
234
+ #### Defined in
235
+
236
+ [packages/ai-tool/src/tool-func.ts:23](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L23)
237
+
238
+ ___
239
+
240
+ ### scope
241
+
242
+ • `Optional` **scope**: `any`
243
+
244
+ #### Inherited from
245
+
246
+ [BaseFunc](../interfaces/BaseFunc.md).[scope](../interfaces/BaseFunc.md#scope)
247
+
248
+ #### Defined in
249
+
250
+ [packages/ai-tool/src/tool-func.ts:24](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L24)
251
+
252
+ ___
253
+
254
+ ### setup
255
+
256
+ • `Optional` **setup**: (`this`: [`ToolFunc`](ToolFunc.md), `options?`: [`FuncItem`](../interfaces/FuncItem.md)) => `void`
257
+
258
+ #### Type declaration
259
+
260
+ ▸ (`this`, `options?`): `void`
261
+
262
+ ##### Parameters
263
+
264
+ | Name | Type |
265
+ | :------ | :------ |
266
+ | `this` | [`ToolFunc`](ToolFunc.md) |
267
+ | `options?` | [`FuncItem`](../interfaces/FuncItem.md) |
268
+
269
+ ##### Returns
270
+
271
+ `void`
272
+
273
+ #### Inherited from
274
+
275
+ [BaseFunc](../interfaces/BaseFunc.md).[setup](../interfaces/BaseFunc.md#setup)
276
+
277
+ #### Defined in
278
+
279
+ [packages/ai-tool/src/tool-func.ts:26](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L26)
280
+
281
+ ___
282
+
283
+ ### should
284
+
285
+ • **should**: `Assertion`
286
+
287
+ #### Defined in
288
+
289
+ node_modules/.pnpm/@types+chai@4.3.16/node_modules/@types/chai/index.d.ts:2100
290
+
291
+ ___
292
+
293
+ ### tags
294
+
295
+ • `Optional` **tags**: `string` \| `string`[]
296
+
297
+ #### Inherited from
298
+
299
+ [BaseFunc](../interfaces/BaseFunc.md).[tags](../interfaces/BaseFunc.md#tags)
300
+
301
+ #### Defined in
302
+
303
+ [packages/ai-tool/src/tool-func.ts:25](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L25)
304
+
305
+ ___
306
+
307
+ ### dataPath
308
+
309
+ ▪ `Static` **dataPath**: `string`
310
+
311
+ #### Defined in
312
+
313
+ [packages/ai-tool/src/tool-func.ts:47](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L47)
314
+
315
+ ___
316
+
317
+ ### items
318
+
319
+ ▪ `Static` **items**: [`Funcs`](../interfaces/Funcs.md) = `{}`
320
+
321
+ #### Defined in
322
+
323
+ [packages/ai-tool/src/tool-func.ts:46](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L46)
324
+
325
+ ## Methods
326
+
327
+ ### arr2ObjParams
328
+
329
+ ▸ **arr2ObjParams**(`params`): `any`[]
330
+
331
+ #### Parameters
332
+
333
+ | Name | Type |
334
+ | :------ | :------ |
335
+ | `params` | `any`[] |
336
+
337
+ #### Returns
338
+
339
+ `any`[]
340
+
341
+ #### Defined in
342
+
343
+ [packages/ai-tool/src/tool-func.ts:219](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L219)
344
+
345
+ ___
346
+
347
+ ### assign
348
+
349
+ ▸ **assign**(`src`, `options?`): `this`
350
+
351
+ Assign the values from the src object.
352
+
353
+ #### Parameters
354
+
355
+ | Name | Type | Description |
356
+ | :------ | :------ | :------ |
357
+ | `src` | `any` | the source object |
358
+ | `options?` | `IMergeOptions` | - |
359
+
360
+ #### Returns
361
+
362
+ `this`
363
+
364
+ this object
365
+
366
+ #### Defined in
367
+
368
+ node_modules/.pnpm/property-manager@2.0.0-alpha.5/node_modules/property-manager/lib/abstract.d.ts:106
369
+
370
+ ___
371
+
372
+ ### assignProperty
373
+
374
+ ▸ **assignProperty**(`src`, `name`, `value`, `attrs?`, `options?`): `void`
375
+
376
+ Assign a property of src to this object.
377
+
378
+ #### Parameters
379
+
380
+ | Name | Type | Description |
381
+ | :------ | :------ | :------ |
382
+ | `src` | `any` | the src object |
383
+ | `name` | `string` | the property name to assign |
384
+ | `value` | `any` | the property value to assign |
385
+ | `attrs?` | `any` | the attributes object |
386
+ | `options?` | `IMergeOptions` | |
387
+
388
+ #### Returns
389
+
390
+ `void`
391
+
392
+ #### Defined in
393
+
394
+ node_modules/.pnpm/property-manager@2.0.0-alpha.5/node_modules/property-manager/lib/abstract.d.ts:117
395
+
396
+ ___
397
+
398
+ ### assignPropertyTo
399
+
400
+ ▸ **assignPropertyTo**(`dest`, `src`, `name`, `value`, `attrs?`, `options?`): `void`
401
+
402
+ Assign the property value from the src to destination object.
403
+
404
+ #### Parameters
405
+
406
+ | Name | Type | Description |
407
+ | :------ | :------ | :------ |
408
+ | `dest` | `any` | The destination object |
409
+ | `src` | `any` | The src object |
410
+ | `name` | `string` | The property name |
411
+ | `value` | `any` | The property value |
412
+ | `attrs?` | `any` | The attributes object of the property |
413
+ | `options?` | `IMergeOptions` | |
414
+
415
+ #### Returns
416
+
417
+ `void`
418
+
419
+ **`Abstract`**
420
+
421
+ #### Defined in
422
+
423
+ node_modules/.pnpm/property-manager@2.0.0-alpha.5/node_modules/property-manager/lib/abstract.d.ts:131
424
+
425
+ ___
426
+
427
+ ### assignTo
428
+
429
+ ▸ **assignTo**(`dest?`, `options?`): `any`
430
+
431
+ Assign this attributes to the dest object
432
+
433
+ #### Parameters
434
+
435
+ | Name | Type | Description |
436
+ | :------ | :------ | :------ |
437
+ | `dest?` | `any` | the destination object |
438
+ | `options?` | `IMergeOptions` | - |
439
+
440
+ #### Returns
441
+
442
+ `any`
443
+
444
+ the dest object
445
+
446
+ #### Defined in
447
+
448
+ node_modules/.pnpm/property-manager@2.0.0-alpha.5/node_modules/property-manager/lib/abstract.d.ts:191
449
+
450
+ ___
451
+
452
+ ### clone
453
+
454
+ ▸ **clone**(`options?`): `any`
455
+
456
+ Create a new object with the same values of attributes.
457
+
458
+ #### Parameters
459
+
460
+ | Name | Type |
461
+ | :------ | :------ |
462
+ | `options?` | `IMergeOptions` |
463
+
464
+ #### Returns
465
+
466
+ `any`
467
+
468
+ the new object
469
+
470
+ #### Defined in
471
+
472
+ node_modules/.pnpm/property-manager@2.0.0-alpha.5/node_modules/property-manager/lib/abstract.d.ts:155
473
+
474
+ ___
475
+
476
+ ### cloneTo
477
+
478
+ ▸ **cloneTo**(`dest`, `options?`): `any`
479
+
480
+ Create and assign the values to the destination object.
481
+
482
+ #### Parameters
483
+
484
+ | Name | Type | Description |
485
+ | :------ | :------ | :------ |
486
+ | `dest` | `any` | the destination object |
487
+ | `options?` | `IMergeOptions` | |
488
+
489
+ #### Returns
490
+
491
+ `any`
492
+
493
+ the new dest object
494
+
495
+ #### Defined in
496
+
497
+ node_modules/.pnpm/property-manager@2.0.0-alpha.5/node_modules/property-manager/lib/abstract.d.ts:148
498
+
499
+ ___
500
+
501
+ ### defineProperties
502
+
503
+ ▸ **defineProperties**(`aProperties`): `any`
504
+
505
+ Define the attributes of this object.
506
+
507
+ #### Parameters
508
+
509
+ | Name | Type | Description |
510
+ | :------ | :------ | :------ |
511
+ | `aProperties` | `SimplePropDescriptors` | the defined attributes of the object |
512
+
513
+ #### Returns
514
+
515
+ `any`
516
+
517
+ **`Abstract`**
518
+
519
+ #### Defined in
520
+
521
+ node_modules/.pnpm/property-manager@2.0.0-alpha.5/node_modules/property-manager/lib/abstract.d.ts:89
522
+
523
+ ___
524
+
525
+ ### exportTo
526
+
527
+ ▸ **exportTo**(`dest`, `options?`): `any`
528
+
529
+ Export attributes to the dest json object.
530
+
531
+ #### Parameters
532
+
533
+ | Name | Type | Description |
534
+ | :------ | :------ | :------ |
535
+ | `dest` | `any` | the destination object |
536
+ | `options?` | `IExportOptions` | - |
537
+
538
+ #### Returns
539
+
540
+ `any`
541
+
542
+ the dest object.
543
+
544
+ #### Defined in
545
+
546
+ node_modules/.pnpm/property-manager@2.0.0-alpha.5/node_modules/property-manager/lib/abstract.d.ts:173
547
+
548
+ ___
549
+
550
+ ### func
551
+
552
+ ▸ **func**(`...params`): `any`
553
+
554
+ #### Parameters
555
+
556
+ | Name | Type |
557
+ | :------ | :------ |
558
+ | `...params` | `any` |
559
+
560
+ #### Returns
561
+
562
+ `any`
563
+
564
+ #### Inherited from
565
+
566
+ [BaseFunc](../interfaces/BaseFunc.md).[func](../interfaces/BaseFunc.md#func)
567
+
568
+ #### Defined in
569
+
570
+ [packages/ai-tool/src/tool-func.ts:34](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L34)
571
+
572
+ ___
573
+
574
+ ### getFunc
575
+
576
+ ▸ **getFunc**(`name?`): `any`
577
+
578
+ #### Parameters
579
+
580
+ | Name | Type |
581
+ | :------ | :------ |
582
+ | `name?` | `string` |
583
+
584
+ #### Returns
585
+
586
+ `any`
587
+
588
+ #### Defined in
589
+
590
+ [packages/ai-tool/src/tool-func.ts:273](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L273)
591
+
592
+ ___
593
+
594
+ ### getFuncWithPos
595
+
596
+ ▸ **getFuncWithPos**(`name?`): `any`
597
+
598
+ #### Parameters
599
+
600
+ | Name | Type |
601
+ | :------ | :------ |
602
+ | `name?` | `string` |
603
+
604
+ #### Returns
605
+
606
+ `any`
607
+
608
+ #### Defined in
609
+
610
+ [packages/ai-tool/src/tool-func.ts:299](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L299)
611
+
612
+ ___
613
+
614
+ ### getProperties
615
+
616
+ ▸ **getProperties**(): `PropDescriptors`
617
+
618
+ Get the defined attributes.
619
+
620
+ #### Returns
621
+
622
+ `PropDescriptors`
623
+
624
+ the descriptors of properties object
625
+
626
+ **`Abstract`**
627
+
628
+ #### Defined in
629
+
630
+ node_modules/.pnpm/property-manager@2.0.0-alpha.5/node_modules/property-manager/lib/abstract.d.ts:98
631
+
632
+ ___
633
+
634
+ ### hasOwnProperty
635
+
636
+ ▸ **hasOwnProperty**(`v`): `boolean`
637
+
638
+ Determines whether an object has a property with the specified name.
639
+
640
+ #### Parameters
641
+
642
+ | Name | Type | Description |
643
+ | :------ | :------ | :------ |
644
+ | `v` | `PropertyKey` | A property name. |
645
+
646
+ #### Returns
647
+
648
+ `boolean`
649
+
650
+ #### Defined in
651
+
652
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:140
653
+
654
+ ___
655
+
656
+ ### initialize
657
+
658
+ ▸ **initialize**(`src?`): `this`
659
+
660
+ Initialize object and assign attribute values from src if src exists.
661
+
662
+ #### Parameters
663
+
664
+ | Name | Type |
665
+ | :------ | :------ |
666
+ | `src?` | `any` |
667
+
668
+ #### Returns
669
+
670
+ `this`
671
+
672
+ this object.
673
+
674
+ #### Defined in
675
+
676
+ node_modules/.pnpm/property-manager@2.0.0-alpha.5/node_modules/property-manager/lib/abstract.d.ts:139
677
+
678
+ ___
679
+
680
+ ### isPrototypeOf
681
+
682
+ ▸ **isPrototypeOf**(`v`): `boolean`
683
+
684
+ Determines whether an object exists in another object's prototype chain.
685
+
686
+ #### Parameters
687
+
688
+ | Name | Type | Description |
689
+ | :------ | :------ | :------ |
690
+ | `v` | `Object` | Another object whose prototype chain is to be checked. |
691
+
692
+ #### Returns
693
+
694
+ `boolean`
695
+
696
+ #### Defined in
697
+
698
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:146
699
+
700
+ ___
701
+
702
+ ### isSame
703
+
704
+ ▸ **isSame**(`src`, `options?`): `boolean`
705
+
706
+ Check the src object whether “equals” this object.
707
+
708
+ #### Parameters
709
+
710
+ | Name | Type | Description |
711
+ | :------ | :------ | :------ |
712
+ | `src` | `any` | The source object |
713
+ | `options?` | `IMergeOptions` | - |
714
+
715
+ #### Returns
716
+
717
+ `boolean`
718
+
719
+ #### Defined in
720
+
721
+ node_modules/.pnpm/property-manager@2.0.0-alpha.5/node_modules/property-manager/lib/abstract.d.ts:200
722
+
723
+ ___
724
+
725
+ ### mergeTo
726
+
727
+ ▸ **mergeTo**(`dest`, `options?`): `any`
728
+
729
+ Merge this attributes to dest object.
730
+
731
+ #### Parameters
732
+
733
+ | Name | Type | Description |
734
+ | :------ | :------ | :------ |
735
+ | `dest` | `any` | The destination object |
736
+ | `options?` | `IMergeOptions` | - |
737
+
738
+ #### Returns
739
+
740
+ `any`
741
+
742
+ the dest object.
743
+
744
+ #### Defined in
745
+
746
+ node_modules/.pnpm/property-manager@2.0.0-alpha.5/node_modules/property-manager/lib/abstract.d.ts:164
747
+
748
+ ___
749
+
750
+ ### obj2ArrParams
751
+
752
+ ▸ **obj2ArrParams**(`params?`): `any`[]
753
+
754
+ #### Parameters
755
+
756
+ | Name | Type |
757
+ | :------ | :------ |
758
+ | `params?` | `any` |
759
+
760
+ #### Returns
761
+
762
+ `any`[]
763
+
764
+ #### Defined in
765
+
766
+ [packages/ai-tool/src/tool-func.ts:232](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L232)
767
+
768
+ ___
769
+
770
+ ### propertyIsEnumerable
771
+
772
+ ▸ **propertyIsEnumerable**(`v`): `boolean`
773
+
774
+ Determines whether a specified property is enumerable.
775
+
776
+ #### Parameters
777
+
778
+ | Name | Type | Description |
779
+ | :------ | :------ | :------ |
780
+ | `v` | `PropertyKey` | A property name. |
781
+
782
+ #### Returns
783
+
784
+ `boolean`
785
+
786
+ #### Defined in
787
+
788
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:152
789
+
790
+ ___
791
+
792
+ ### register
793
+
794
+ ▸ **register**(): `boolean` \| [`ToolFunc`](ToolFunc.md)
795
+
796
+ #### Returns
797
+
798
+ `boolean` \| [`ToolFunc`](ToolFunc.md)
799
+
800
+ #### Defined in
801
+
802
+ [packages/ai-tool/src/tool-func.ts:202](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L202)
803
+
804
+ ___
805
+
806
+ ### run
807
+
808
+ ▸ **run**(`params?`): `Promise`\<`any`\>
809
+
810
+ #### Parameters
811
+
812
+ | Name | Type |
813
+ | :------ | :------ |
814
+ | `params?` | `any` |
815
+
816
+ #### Returns
817
+
818
+ `Promise`\<`any`\>
819
+
820
+ #### Defined in
821
+
822
+ [packages/ai-tool/src/tool-func.ts:259](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L259)
823
+
824
+ ___
825
+
826
+ ### runAs
827
+
828
+ ▸ **runAs**(`name`, `params?`): `Promise`\<`any`\>
829
+
830
+ #### Parameters
831
+
832
+ | Name | Type |
833
+ | :------ | :------ |
834
+ | `name` | `string` |
835
+ | `params?` | `any` |
836
+
837
+ #### Returns
838
+
839
+ `Promise`\<`any`\>
840
+
841
+ #### Defined in
842
+
843
+ [packages/ai-tool/src/tool-func.ts:263](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L263)
844
+
845
+ ___
846
+
847
+ ### runAsSync
848
+
849
+ ▸ **runAsSync**(`name`, `params?`): `any`
850
+
851
+ #### Parameters
852
+
853
+ | Name | Type |
854
+ | :------ | :------ |
855
+ | `name` | `string` |
856
+ | `params?` | `any` |
857
+
858
+ #### Returns
859
+
860
+ `any`
861
+
862
+ #### Defined in
863
+
864
+ [packages/ai-tool/src/tool-func.ts:268](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L268)
865
+
866
+ ___
867
+
868
+ ### runSync
869
+
870
+ ▸ **runSync**(`params?`): `any`
871
+
872
+ #### Parameters
873
+
874
+ | Name | Type |
875
+ | :------ | :------ |
876
+ | `params?` | `any` |
877
+
878
+ #### Returns
879
+
880
+ `any`
881
+
882
+ #### Defined in
883
+
884
+ [packages/ai-tool/src/tool-func.ts:245](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L245)
885
+
886
+ ___
887
+
888
+ ### runWithPos
889
+
890
+ ▸ **runWithPos**(`...params`): `Promise`\<`any`\>
891
+
892
+ #### Parameters
893
+
894
+ | Name | Type |
895
+ | :------ | :------ |
896
+ | `...params` | `any`[] |
897
+
898
+ #### Returns
899
+
900
+ `Promise`\<`any`\>
901
+
902
+ #### Defined in
903
+
904
+ [packages/ai-tool/src/tool-func.ts:289](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L289)
905
+
906
+ ___
907
+
908
+ ### runWithPosAs
909
+
910
+ ▸ **runWithPosAs**(`name`, `...params`): `Promise`\<`any`\>
911
+
912
+ #### Parameters
913
+
914
+ | Name | Type |
915
+ | :------ | :------ |
916
+ | `name` | `string` |
917
+ | `...params` | `any`[] |
918
+
919
+ #### Returns
920
+
921
+ `Promise`\<`any`\>
922
+
923
+ #### Defined in
924
+
925
+ [packages/ai-tool/src/tool-func.ts:294](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L294)
926
+
927
+ ___
928
+
929
+ ### runWithPosAsSync
930
+
931
+ ▸ **runWithPosAsSync**(`name`, `...params`): `any`
932
+
933
+ #### Parameters
934
+
935
+ | Name | Type |
936
+ | :------ | :------ |
937
+ | `name` | `string` |
938
+ | `...params` | `any`[] |
939
+
940
+ #### Returns
941
+
942
+ `any`
943
+
944
+ #### Defined in
945
+
946
+ [packages/ai-tool/src/tool-func.ts:285](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L285)
947
+
948
+ ___
949
+
950
+ ### runWithPosSync
951
+
952
+ ▸ **runWithPosSync**(`...params`): `any`
953
+
954
+ #### Parameters
955
+
956
+ | Name | Type |
957
+ | :------ | :------ |
958
+ | `...params` | `any`[] |
959
+
960
+ #### Returns
961
+
962
+ `any`
963
+
964
+ #### Defined in
965
+
966
+ [packages/ai-tool/src/tool-func.ts:278](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L278)
967
+
968
+ ___
969
+
970
+ ### toJSON
971
+
972
+ ▸ **toJSON**(): `any`
973
+
974
+ #### Returns
975
+
976
+ `any`
977
+
978
+ #### Defined in
979
+
980
+ node_modules/.pnpm/property-manager@2.0.0-alpha.5/node_modules/property-manager/lib/abstract.d.ts:182
981
+
982
+ ___
983
+
984
+ ### toLocaleString
985
+
986
+ ▸ **toLocaleString**(): `string`
987
+
988
+ Returns a date converted to a string using the current locale.
989
+
990
+ #### Returns
991
+
992
+ `string`
993
+
994
+ #### Defined in
995
+
996
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:131
997
+
998
+ ___
999
+
1000
+ ### toObject
1001
+
1002
+ ▸ **toObject**(`options?`): `any`
1003
+
1004
+ Convert the attributes to the json object
1005
+
1006
+ #### Parameters
1007
+
1008
+ | Name | Type |
1009
+ | :------ | :------ |
1010
+ | `options?` | `any` |
1011
+
1012
+ #### Returns
1013
+
1014
+ `any`
1015
+
1016
+ the json object.
1017
+
1018
+ #### Defined in
1019
+
1020
+ node_modules/.pnpm/property-manager@2.0.0-alpha.5/node_modules/property-manager/lib/abstract.d.ts:181
1021
+
1022
+ ___
1023
+
1024
+ ### toString
1025
+
1026
+ ▸ **toString**(): `string`
1027
+
1028
+ Returns a string representation of an object.
1029
+
1030
+ #### Returns
1031
+
1032
+ `string`
1033
+
1034
+ #### Defined in
1035
+
1036
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:128
1037
+
1038
+ ___
1039
+
1040
+ ### unregister
1041
+
1042
+ ▸ **unregister**(): `any`
1043
+
1044
+ #### Returns
1045
+
1046
+ `any`
1047
+
1048
+ #### Defined in
1049
+
1050
+ [packages/ai-tool/src/tool-func.ts:215](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L215)
1051
+
1052
+ ___
1053
+
1054
+ ### valueOf
1055
+
1056
+ ▸ **valueOf**(): `Object`
1057
+
1058
+ Returns the primitive value of the specified object.
1059
+
1060
+ #### Returns
1061
+
1062
+ `Object`
1063
+
1064
+ #### Defined in
1065
+
1066
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:134
1067
+
1068
+ ___
1069
+
1070
+ ### assign
1071
+
1072
+ ▸ **assign**\<`T`, `U`\>(`target`, `source`): `T` & `U`
1073
+
1074
+ Copy the values of all of the enumerable own properties from one or more source objects to a
1075
+ target object. Returns the target object.
1076
+
1077
+ #### Type parameters
1078
+
1079
+ | Name | Type |
1080
+ | :------ | :------ |
1081
+ | `T` | extends `Object` |
1082
+ | `U` | `U` |
1083
+
1084
+ #### Parameters
1085
+
1086
+ | Name | Type | Description |
1087
+ | :------ | :------ | :------ |
1088
+ | `target` | `T` | The target object to copy to. |
1089
+ | `source` | `U` | The source object from which to copy properties. |
1090
+
1091
+ #### Returns
1092
+
1093
+ `T` & `U`
1094
+
1095
+ #### Defined in
1096
+
1097
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts:284
1098
+
1099
+ ▸ **assign**\<`T`, `U`, `V`\>(`target`, `source1`, `source2`): `T` & `U` & `V`
1100
+
1101
+ Copy the values of all of the enumerable own properties from one or more source objects to a
1102
+ target object. Returns the target object.
1103
+
1104
+ #### Type parameters
1105
+
1106
+ | Name | Type |
1107
+ | :------ | :------ |
1108
+ | `T` | extends `Object` |
1109
+ | `U` | `U` |
1110
+ | `V` | `V` |
1111
+
1112
+ #### Parameters
1113
+
1114
+ | Name | Type | Description |
1115
+ | :------ | :------ | :------ |
1116
+ | `target` | `T` | The target object to copy to. |
1117
+ | `source1` | `U` | The first source object from which to copy properties. |
1118
+ | `source2` | `V` | The second source object from which to copy properties. |
1119
+
1120
+ #### Returns
1121
+
1122
+ `T` & `U` & `V`
1123
+
1124
+ #### Defined in
1125
+
1126
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts:293
1127
+
1128
+ ▸ **assign**\<`T`, `U`, `V`, `W`\>(`target`, `source1`, `source2`, `source3`): `T` & `U` & `V` & `W`
1129
+
1130
+ Copy the values of all of the enumerable own properties from one or more source objects to a
1131
+ target object. Returns the target object.
1132
+
1133
+ #### Type parameters
1134
+
1135
+ | Name | Type |
1136
+ | :------ | :------ |
1137
+ | `T` | extends `Object` |
1138
+ | `U` | `U` |
1139
+ | `V` | `V` |
1140
+ | `W` | `W` |
1141
+
1142
+ #### Parameters
1143
+
1144
+ | Name | Type | Description |
1145
+ | :------ | :------ | :------ |
1146
+ | `target` | `T` | The target object to copy to. |
1147
+ | `source1` | `U` | The first source object from which to copy properties. |
1148
+ | `source2` | `V` | The second source object from which to copy properties. |
1149
+ | `source3` | `W` | The third source object from which to copy properties. |
1150
+
1151
+ #### Returns
1152
+
1153
+ `T` & `U` & `V` & `W`
1154
+
1155
+ #### Defined in
1156
+
1157
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts:303
1158
+
1159
+ ▸ **assign**(`target`, `...sources`): `any`
1160
+
1161
+ Copy the values of all of the enumerable own properties from one or more source objects to a
1162
+ target object. Returns the target object.
1163
+
1164
+ #### Parameters
1165
+
1166
+ | Name | Type | Description |
1167
+ | :------ | :------ | :------ |
1168
+ | `target` | `object` | The target object to copy to. |
1169
+ | `...sources` | `any`[] | One or more source objects from which to copy properties |
1170
+
1171
+ #### Returns
1172
+
1173
+ `any`
1174
+
1175
+ #### Defined in
1176
+
1177
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts:311
1178
+
1179
+ ___
1180
+
1181
+ ### create
1182
+
1183
+ ▸ **create**(`o`): `any`
1184
+
1185
+ Creates an object that has the specified prototype or that has null prototype.
1186
+
1187
+ #### Parameters
1188
+
1189
+ | Name | Type | Description |
1190
+ | :------ | :------ | :------ |
1191
+ | `o` | ``null`` \| `object` | Object to use as a prototype. May be null. |
1192
+
1193
+ #### Returns
1194
+
1195
+ `any`
1196
+
1197
+ #### Defined in
1198
+
1199
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:188
1200
+
1201
+ ▸ **create**(`o`, `properties`): `any`
1202
+
1203
+ Creates an object that has the specified prototype, and that optionally contains specified properties.
1204
+
1205
+ #### Parameters
1206
+
1207
+ | Name | Type | Description |
1208
+ | :------ | :------ | :------ |
1209
+ | `o` | ``null`` \| `object` | Object to use as a prototype. May be null |
1210
+ | `properties` | `PropertyDescriptorMap` & `ThisType`\<`any`\> | JavaScript object that contains one or more property descriptors. |
1211
+
1212
+ #### Returns
1213
+
1214
+ `any`
1215
+
1216
+ #### Defined in
1217
+
1218
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:195
1219
+
1220
+ ___
1221
+
1222
+ ### defineProperties
1223
+
1224
+ ▸ **defineProperties**(`aTarget`, `aProperties`, `recreate?`): `any`
1225
+
1226
+ #### Parameters
1227
+
1228
+ | Name | Type |
1229
+ | :------ | :------ |
1230
+ | `aTarget` | `any` |
1231
+ | `aProperties` | `PropDescriptors` |
1232
+ | `recreate?` | `boolean` |
1233
+
1234
+ #### Returns
1235
+
1236
+ `any`
1237
+
1238
+ #### Defined in
1239
+
1240
+ node_modules/.pnpm/property-manager@2.0.0-alpha.5/node_modules/property-manager/lib/advance.d.ts:11
1241
+
1242
+ ___
1243
+
1244
+ ### defineProperty
1245
+
1246
+ ▸ **defineProperty**\<`T`\>(`o`, `p`, `attributes`): `T`
1247
+
1248
+ Adds a property to an object, or modifies attributes of an existing property.
1249
+
1250
+ #### Type parameters
1251
+
1252
+ | Name |
1253
+ | :------ |
1254
+ | `T` |
1255
+
1256
+ #### Parameters
1257
+
1258
+ | Name | Type | Description |
1259
+ | :------ | :------ | :------ |
1260
+ | `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. |
1261
+ | `p` | `PropertyKey` | The property name. |
1262
+ | `attributes` | `PropertyDescriptor` & `ThisType`\<`any`\> | Descriptor for the property. It can be for a data property or an accessor property. |
1263
+
1264
+ #### Returns
1265
+
1266
+ `T`
1267
+
1268
+ #### Defined in
1269
+
1270
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:203
1271
+
1272
+ ___
1273
+
1274
+ ### entries
1275
+
1276
+ ▸ **entries**\<`T`\>(`o`): [`string`, `T`][]
1277
+
1278
+ Returns an array of key/values of the enumerable properties of an object
1279
+
1280
+ #### Type parameters
1281
+
1282
+ | Name |
1283
+ | :------ |
1284
+ | `T` |
1285
+
1286
+ #### Parameters
1287
+
1288
+ | Name | Type | Description |
1289
+ | :------ | :------ | :------ |
1290
+ | `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. |
1291
+
1292
+ #### Returns
1293
+
1294
+ [`string`, `T`][]
1295
+
1296
+ #### Defined in
1297
+
1298
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2017.object.d.ts:36
1299
+
1300
+ ▸ **entries**(`o`): [`string`, `any`][]
1301
+
1302
+ Returns an array of key/values of the enumerable properties of an object
1303
+
1304
+ #### Parameters
1305
+
1306
+ | Name | Type | Description |
1307
+ | :------ | :------ | :------ |
1308
+ | `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. |
1309
+
1310
+ #### Returns
1311
+
1312
+ [`string`, `any`][]
1313
+
1314
+ #### Defined in
1315
+
1316
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2017.object.d.ts:42
1317
+
1318
+ ___
1319
+
1320
+ ### freeze
1321
+
1322
+ ▸ **freeze**\<`T`\>(`f`): `T`
1323
+
1324
+ Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
1325
+
1326
+ #### Type parameters
1327
+
1328
+ | Name | Type |
1329
+ | :------ | :------ |
1330
+ | `T` | extends `Function` |
1331
+
1332
+ #### Parameters
1333
+
1334
+ | Name | Type | Description |
1335
+ | :------ | :------ | :------ |
1336
+ | `f` | `T` | Object on which to lock the attributes. |
1337
+
1338
+ #### Returns
1339
+
1340
+ `T`
1341
+
1342
+ #### Defined in
1343
+
1344
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:222
1345
+
1346
+ ▸ **freeze**\<`T`, `U`\>(`o`): `Readonly`\<`T`\>
1347
+
1348
+ Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
1349
+
1350
+ #### Type parameters
1351
+
1352
+ | Name | Type |
1353
+ | :------ | :------ |
1354
+ | `T` | extends `Object` |
1355
+ | `U` | extends `string` \| `number` \| `bigint` \| `boolean` \| `symbol` |
1356
+
1357
+ #### Parameters
1358
+
1359
+ | Name | Type | Description |
1360
+ | :------ | :------ | :------ |
1361
+ | `o` | `T` | Object on which to lock the attributes. |
1362
+
1363
+ #### Returns
1364
+
1365
+ `Readonly`\<`T`\>
1366
+
1367
+ #### Defined in
1368
+
1369
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:228
1370
+
1371
+ ▸ **freeze**\<`T`\>(`o`): `Readonly`\<`T`\>
1372
+
1373
+ Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
1374
+
1375
+ #### Type parameters
1376
+
1377
+ | Name |
1378
+ | :------ |
1379
+ | `T` |
1380
+
1381
+ #### Parameters
1382
+
1383
+ | Name | Type | Description |
1384
+ | :------ | :------ | :------ |
1385
+ | `o` | `T` | Object on which to lock the attributes. |
1386
+
1387
+ #### Returns
1388
+
1389
+ `Readonly`\<`T`\>
1390
+
1391
+ #### Defined in
1392
+
1393
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:234
1394
+
1395
+ ___
1396
+
1397
+ ### fromEntries
1398
+
1399
+ ▸ **fromEntries**\<`T`\>(`entries`): `Object`
1400
+
1401
+ Returns an object created by key-value entries for properties and methods
1402
+
1403
+ #### Type parameters
1404
+
1405
+ | Name | Type |
1406
+ | :------ | :------ |
1407
+ | `T` | `any` |
1408
+
1409
+ #### Parameters
1410
+
1411
+ | Name | Type | Description |
1412
+ | :------ | :------ | :------ |
1413
+ | `entries` | `Iterable`\<readonly [`PropertyKey`, `T`]\> | An iterable object that contains key-value entries for properties and methods. |
1414
+
1415
+ #### Returns
1416
+
1417
+ `Object`
1418
+
1419
+ #### Defined in
1420
+
1421
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.object.d.ts:26
1422
+
1423
+ ▸ **fromEntries**(`entries`): `any`
1424
+
1425
+ Returns an object created by key-value entries for properties and methods
1426
+
1427
+ #### Parameters
1428
+
1429
+ | Name | Type | Description |
1430
+ | :------ | :------ | :------ |
1431
+ | `entries` | `Iterable`\<readonly `any`[]\> | An iterable object that contains key-value entries for properties and methods. |
1432
+
1433
+ #### Returns
1434
+
1435
+ `any`
1436
+
1437
+ #### Defined in
1438
+
1439
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.object.d.ts:32
1440
+
1441
+ ___
1442
+
1443
+ ### get
1444
+
1445
+ ▸ **get**(`name`): [`ToolFunc`](ToolFunc.md)
1446
+
1447
+ #### Parameters
1448
+
1449
+ | Name | Type |
1450
+ | :------ | :------ |
1451
+ | `name` | `string` |
1452
+
1453
+ #### Returns
1454
+
1455
+ [`ToolFunc`](ToolFunc.md)
1456
+
1457
+ #### Defined in
1458
+
1459
+ [packages/ai-tool/src/tool-func.ts:49](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L49)
1460
+
1461
+ ___
1462
+
1463
+ ### getAllByTag
1464
+
1465
+ ▸ **getAllByTag**(`tagName`): [`ToolFunc`](ToolFunc.md)[]
1466
+
1467
+ #### Parameters
1468
+
1469
+ | Name | Type |
1470
+ | :------ | :------ |
1471
+ | `tagName` | `string` |
1472
+
1473
+ #### Returns
1474
+
1475
+ [`ToolFunc`](ToolFunc.md)[]
1476
+
1477
+ #### Defined in
1478
+
1479
+ [packages/ai-tool/src/tool-func.ts:77](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L77)
1480
+
1481
+ ___
1482
+
1483
+ ### getByTag
1484
+
1485
+ ▸ **getByTag**(`tagName`): `undefined` \| [`ToolFunc`](ToolFunc.md)
1486
+
1487
+ #### Parameters
1488
+
1489
+ | Name | Type |
1490
+ | :------ | :------ |
1491
+ | `tagName` | `string` |
1492
+
1493
+ #### Returns
1494
+
1495
+ `undefined` \| [`ToolFunc`](ToolFunc.md)
1496
+
1497
+ #### Defined in
1498
+
1499
+ [packages/ai-tool/src/tool-func.ts:57](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L57)
1500
+
1501
+ ___
1502
+
1503
+ ### getFunc
1504
+
1505
+ ▸ **getFunc**(`name`): `any`
1506
+
1507
+ #### Parameters
1508
+
1509
+ | Name | Type |
1510
+ | :------ | :------ |
1511
+ | `name` | `string` |
1512
+
1513
+ #### Returns
1514
+
1515
+ `any`
1516
+
1517
+ #### Defined in
1518
+
1519
+ [packages/ai-tool/src/tool-func.ts:111](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L111)
1520
+
1521
+ ___
1522
+
1523
+ ### getFuncWithPos
1524
+
1525
+ ▸ **getFuncWithPos**(`name`): `any`
1526
+
1527
+ #### Parameters
1528
+
1529
+ | Name | Type |
1530
+ | :------ | :------ |
1531
+ | `name` | `string` |
1532
+
1533
+ #### Returns
1534
+
1535
+ `any`
1536
+
1537
+ #### Defined in
1538
+
1539
+ [packages/ai-tool/src/tool-func.ts:132](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L132)
1540
+
1541
+ ___
1542
+
1543
+ ### getOwnPropertyDescriptor
1544
+
1545
+ ▸ **getOwnPropertyDescriptor**(`o`, `p`): `undefined` \| `PropertyDescriptor`
1546
+
1547
+ Gets the own property descriptor of the specified object.
1548
+ An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
1549
+
1550
+ #### Parameters
1551
+
1552
+ | Name | Type | Description |
1553
+ | :------ | :------ | :------ |
1554
+ | `o` | `any` | Object that contains the property. |
1555
+ | `p` | `PropertyKey` | Name of the property. |
1556
+
1557
+ #### Returns
1558
+
1559
+ `undefined` \| `PropertyDescriptor`
1560
+
1561
+ #### Defined in
1562
+
1563
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:175
1564
+
1565
+ ___
1566
+
1567
+ ### getOwnPropertyDescriptors
1568
+
1569
+ ▸ **getOwnPropertyDescriptors**\<`T`\>(`o`): \{ [P in string \| number \| symbol]: TypedPropertyDescriptor\<T[P]\> } & \{ `[x: string]`: `PropertyDescriptor`; }
1570
+
1571
+ Returns an object containing all own property descriptors of an object
1572
+
1573
+ #### Type parameters
1574
+
1575
+ | Name |
1576
+ | :------ |
1577
+ | `T` |
1578
+
1579
+ #### Parameters
1580
+
1581
+ | Name | Type | Description |
1582
+ | :------ | :------ | :------ |
1583
+ | `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. |
1584
+
1585
+ #### Returns
1586
+
1587
+ \{ [P in string \| number \| symbol]: TypedPropertyDescriptor\<T[P]\> } & \{ `[x: string]`: `PropertyDescriptor`; }
1588
+
1589
+ #### Defined in
1590
+
1591
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2017.object.d.ts:48
1592
+
1593
+ ___
1594
+
1595
+ ### getOwnPropertyNames
1596
+
1597
+ ▸ **getOwnPropertyNames**(`o`): `string`[]
1598
+
1599
+ Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
1600
+ on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
1601
+
1602
+ #### Parameters
1603
+
1604
+ | Name | Type | Description |
1605
+ | :------ | :------ | :------ |
1606
+ | `o` | `any` | Object that contains the own properties. |
1607
+
1608
+ #### Returns
1609
+
1610
+ `string`[]
1611
+
1612
+ #### Defined in
1613
+
1614
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:182
1615
+
1616
+ ___
1617
+
1618
+ ### getOwnPropertySymbols
1619
+
1620
+ ▸ **getOwnPropertySymbols**(`o`): `symbol`[]
1621
+
1622
+ Returns an array of all symbol properties found directly on object o.
1623
+
1624
+ #### Parameters
1625
+
1626
+ | Name | Type | Description |
1627
+ | :------ | :------ | :------ |
1628
+ | `o` | `any` | Object to retrieve the symbols from. |
1629
+
1630
+ #### Returns
1631
+
1632
+ `symbol`[]
1633
+
1634
+ #### Defined in
1635
+
1636
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts:317
1637
+
1638
+ ___
1639
+
1640
+ ### getProperties
1641
+
1642
+ ▸ **getProperties**(): `PropDescriptors`
1643
+
1644
+ get all properties descriptor include inherited.
1645
+
1646
+ #### Returns
1647
+
1648
+ `PropDescriptors`
1649
+
1650
+ #### Defined in
1651
+
1652
+ node_modules/.pnpm/property-manager@2.0.0-alpha.5/node_modules/property-manager/lib/advance.d.ts:10
1653
+
1654
+ ___
1655
+
1656
+ ### getPrototypeOf
1657
+
1658
+ ▸ **getPrototypeOf**(`o`): `any`
1659
+
1660
+ Returns the prototype of an object.
1661
+
1662
+ #### Parameters
1663
+
1664
+ | Name | Type | Description |
1665
+ | :------ | :------ | :------ |
1666
+ | `o` | `any` | The object that references the prototype. |
1667
+
1668
+ #### Returns
1669
+
1670
+ `any`
1671
+
1672
+ #### Defined in
1673
+
1674
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:167
1675
+
1676
+ ___
1677
+
1678
+ ### hasOwn
1679
+
1680
+ ▸ **hasOwn**(`o`, `v`): `boolean`
1681
+
1682
+ Determines whether an object has a property with the specified name.
1683
+
1684
+ #### Parameters
1685
+
1686
+ | Name | Type | Description |
1687
+ | :------ | :------ | :------ |
1688
+ | `o` | `object` | An object. |
1689
+ | `v` | `PropertyKey` | A property name. |
1690
+
1691
+ #### Returns
1692
+
1693
+ `boolean`
1694
+
1695
+ #### Defined in
1696
+
1697
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2022.object.d.ts:25
1698
+
1699
+ ___
1700
+
1701
+ ### is
1702
+
1703
+ ▸ **is**(`value1`, `value2`): `boolean`
1704
+
1705
+ Returns true if the values are the same value, false otherwise.
1706
+
1707
+ #### Parameters
1708
+
1709
+ | Name | Type | Description |
1710
+ | :------ | :------ | :------ |
1711
+ | `value1` | `any` | The first value. |
1712
+ | `value2` | `any` | The second value. |
1713
+
1714
+ #### Returns
1715
+
1716
+ `boolean`
1717
+
1718
+ #### Defined in
1719
+
1720
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts:330
1721
+
1722
+ ___
1723
+
1724
+ ### isExtensible
1725
+
1726
+ ▸ **isExtensible**(`o`): `boolean`
1727
+
1728
+ Returns a value that indicates whether new properties can be added to an object.
1729
+
1730
+ #### Parameters
1731
+
1732
+ | Name | Type | Description |
1733
+ | :------ | :------ | :------ |
1734
+ | `o` | `any` | Object to test. |
1735
+
1736
+ #### Returns
1737
+
1738
+ `boolean`
1739
+
1740
+ #### Defined in
1741
+
1742
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:258
1743
+
1744
+ ___
1745
+
1746
+ ### isFrozen
1747
+
1748
+ ▸ **isFrozen**(`o`): `boolean`
1749
+
1750
+ Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
1751
+
1752
+ #### Parameters
1753
+
1754
+ | Name | Type | Description |
1755
+ | :------ | :------ | :------ |
1756
+ | `o` | `any` | Object to test. |
1757
+
1758
+ #### Returns
1759
+
1760
+ `boolean`
1761
+
1762
+ #### Defined in
1763
+
1764
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:252
1765
+
1766
+ ___
1767
+
1768
+ ### isSealed
1769
+
1770
+ ▸ **isSealed**(`o`): `boolean`
1771
+
1772
+ Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
1773
+
1774
+ #### Parameters
1775
+
1776
+ | Name | Type | Description |
1777
+ | :------ | :------ | :------ |
1778
+ | `o` | `any` | Object to test. |
1779
+
1780
+ #### Returns
1781
+
1782
+ `boolean`
1783
+
1784
+ #### Defined in
1785
+
1786
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:246
1787
+
1788
+ ___
1789
+
1790
+ ### keys
1791
+
1792
+ ▸ **keys**(`o`): `string`[]
1793
+
1794
+ Returns the names of the enumerable string properties and methods of an object.
1795
+
1796
+ #### Parameters
1797
+
1798
+ | Name | Type | Description |
1799
+ | :------ | :------ | :------ |
1800
+ | `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. |
1801
+
1802
+ #### Returns
1803
+
1804
+ `string`[]
1805
+
1806
+ #### Defined in
1807
+
1808
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:264
1809
+
1810
+ ▸ **keys**(`o`): `string`[]
1811
+
1812
+ Returns the names of the enumerable string properties and methods of an object.
1813
+
1814
+ #### Parameters
1815
+
1816
+ | Name | Type | Description |
1817
+ | :------ | :------ | :------ |
1818
+ | `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. |
1819
+
1820
+ #### Returns
1821
+
1822
+ `string`[]
1823
+
1824
+ #### Defined in
1825
+
1826
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts:323
1827
+
1828
+ ___
1829
+
1830
+ ### list
1831
+
1832
+ ▸ **list**(): [`Funcs`](../interfaces/Funcs.md)
1833
+
1834
+ #### Returns
1835
+
1836
+ [`Funcs`](../interfaces/Funcs.md)
1837
+
1838
+ #### Defined in
1839
+
1840
+ [packages/ai-tool/src/tool-func.ts:53](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L53)
1841
+
1842
+ ___
1843
+
1844
+ ### preventExtensions
1845
+
1846
+ ▸ **preventExtensions**\<`T`\>(`o`): `T`
1847
+
1848
+ Prevents the addition of new properties to an object.
1849
+
1850
+ #### Type parameters
1851
+
1852
+ | Name |
1853
+ | :------ |
1854
+ | `T` |
1855
+
1856
+ #### Parameters
1857
+
1858
+ | Name | Type | Description |
1859
+ | :------ | :------ | :------ |
1860
+ | `o` | `T` | Object to make non-extensible. |
1861
+
1862
+ #### Returns
1863
+
1864
+ `T`
1865
+
1866
+ #### Defined in
1867
+
1868
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:240
1869
+
1870
+ ___
1871
+
1872
+ ### register
1873
+
1874
+ ▸ **register**(`name`, `options`): `boolean` \| [`ToolFunc`](ToolFunc.md)
1875
+
1876
+ #### Parameters
1877
+
1878
+ | Name | Type |
1879
+ | :------ | :------ |
1880
+ | `name` | `string` |
1881
+ | `options` | [`FuncItem`](../interfaces/FuncItem.md) |
1882
+
1883
+ #### Returns
1884
+
1885
+ `boolean` \| [`ToolFunc`](ToolFunc.md)
1886
+
1887
+ #### Defined in
1888
+
1889
+ [packages/ai-tool/src/tool-func.ts:137](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L137)
1890
+
1891
+ ▸ **register**(`func`, `options`): `boolean` \| [`ToolFunc`](ToolFunc.md)
1892
+
1893
+ #### Parameters
1894
+
1895
+ | Name | Type |
1896
+ | :------ | :------ |
1897
+ | `func` | `Function` |
1898
+ | `options` | [`FuncItem`](../interfaces/FuncItem.md) |
1899
+
1900
+ #### Returns
1901
+
1902
+ `boolean` \| [`ToolFunc`](ToolFunc.md)
1903
+
1904
+ #### Defined in
1905
+
1906
+ [packages/ai-tool/src/tool-func.ts:138](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L138)
1907
+
1908
+ ▸ **register**(`name`, `options?`): `boolean` \| [`ToolFunc`](ToolFunc.md)
1909
+
1910
+ #### Parameters
1911
+
1912
+ | Name | Type |
1913
+ | :------ | :------ |
1914
+ | `name` | `string` \| `Function` \| [`ToolFunc`](ToolFunc.md) \| [`FuncItem`](../interfaces/FuncItem.md) |
1915
+ | `options?` | [`FuncItem`](../interfaces/FuncItem.md) |
1916
+
1917
+ #### Returns
1918
+
1919
+ `boolean` \| [`ToolFunc`](ToolFunc.md)
1920
+
1921
+ #### Defined in
1922
+
1923
+ [packages/ai-tool/src/tool-func.ts:139](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L139)
1924
+
1925
+ ___
1926
+
1927
+ ### run
1928
+
1929
+ ▸ **run**(`name`, `params?`): `Promise`\<`any`\>
1930
+
1931
+ #### Parameters
1932
+
1933
+ | Name | Type |
1934
+ | :------ | :------ |
1935
+ | `name` | `string` |
1936
+ | `params?` | `any` |
1937
+
1938
+ #### Returns
1939
+
1940
+ `Promise`\<`any`\>
1941
+
1942
+ #### Defined in
1943
+
1944
+ [packages/ai-tool/src/tool-func.ts:95](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L95)
1945
+
1946
+ ___
1947
+
1948
+ ### runSync
1949
+
1950
+ ▸ **runSync**(`name`, `params?`): `any`
1951
+
1952
+ #### Parameters
1953
+
1954
+ | Name | Type |
1955
+ | :------ | :------ |
1956
+ | `name` | `string` |
1957
+ | `params?` | `any` |
1958
+
1959
+ #### Returns
1960
+
1961
+ `any`
1962
+
1963
+ #### Defined in
1964
+
1965
+ [packages/ai-tool/src/tool-func.ts:103](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L103)
1966
+
1967
+ ___
1968
+
1969
+ ### runWithPos
1970
+
1971
+ ▸ **runWithPos**(`name`, `...params`): `Promise`\<`any`\>
1972
+
1973
+ #### Parameters
1974
+
1975
+ | Name | Type |
1976
+ | :------ | :------ |
1977
+ | `name` | `string` |
1978
+ | `...params` | `any`[] |
1979
+
1980
+ #### Returns
1981
+
1982
+ `Promise`\<`any`\>
1983
+
1984
+ #### Defined in
1985
+
1986
+ [packages/ai-tool/src/tool-func.ts:116](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L116)
1987
+
1988
+ ___
1989
+
1990
+ ### runWithPosSync
1991
+
1992
+ ▸ **runWithPosSync**(`name`, `...params`): `any`
1993
+
1994
+ #### Parameters
1995
+
1996
+ | Name | Type |
1997
+ | :------ | :------ |
1998
+ | `name` | `string` |
1999
+ | `...params` | `any`[] |
2000
+
2001
+ #### Returns
2002
+
2003
+ `any`
2004
+
2005
+ #### Defined in
2006
+
2007
+ [packages/ai-tool/src/tool-func.ts:124](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L124)
2008
+
2009
+ ___
2010
+
2011
+ ### seal
2012
+
2013
+ ▸ **seal**\<`T`\>(`o`): `T`
2014
+
2015
+ Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
2016
+
2017
+ #### Type parameters
2018
+
2019
+ | Name |
2020
+ | :------ |
2021
+ | `T` |
2022
+
2023
+ #### Parameters
2024
+
2025
+ | Name | Type | Description |
2026
+ | :------ | :------ | :------ |
2027
+ | `o` | `T` | Object on which to lock the attributes. |
2028
+
2029
+ #### Returns
2030
+
2031
+ `T`
2032
+
2033
+ #### Defined in
2034
+
2035
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:216
2036
+
2037
+ ___
2038
+
2039
+ ### setPrototypeOf
2040
+
2041
+ ▸ **setPrototypeOf**(`o`, `proto`): `any`
2042
+
2043
+ Sets the prototype of a specified object o to object proto or null. Returns the object o.
2044
+
2045
+ #### Parameters
2046
+
2047
+ | Name | Type | Description |
2048
+ | :------ | :------ | :------ |
2049
+ | `o` | `any` | The object to change its prototype. |
2050
+ | `proto` | ``null`` \| `object` | The value of the new prototype or null. |
2051
+
2052
+ #### Returns
2053
+
2054
+ `any`
2055
+
2056
+ #### Defined in
2057
+
2058
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts:337
2059
+
2060
+ ___
2061
+
2062
+ ### unregister
2063
+
2064
+ ▸ **unregister**(`name`): `undefined` \| [`ToolFunc`](ToolFunc.md)
2065
+
2066
+ #### Parameters
2067
+
2068
+ | Name | Type |
2069
+ | :------ | :------ |
2070
+ | `name` | `string` |
2071
+
2072
+ #### Returns
2073
+
2074
+ `undefined` \| [`ToolFunc`](ToolFunc.md)
2075
+
2076
+ #### Defined in
2077
+
2078
+ [packages/ai-tool/src/tool-func.ts:167](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/tool-func.ts#L167)
2079
+
2080
+ ___
2081
+
2082
+ ### values
2083
+
2084
+ ▸ **values**\<`T`\>(`o`): `T`[]
2085
+
2086
+ Returns an array of values of the enumerable properties of an object
2087
+
2088
+ #### Type parameters
2089
+
2090
+ | Name |
2091
+ | :------ |
2092
+ | `T` |
2093
+
2094
+ #### Parameters
2095
+
2096
+ | Name | Type | Description |
2097
+ | :------ | :------ | :------ |
2098
+ | `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. |
2099
+
2100
+ #### Returns
2101
+
2102
+ `T`[]
2103
+
2104
+ #### Defined in
2105
+
2106
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2017.object.d.ts:24
2107
+
2108
+ ▸ **values**(`o`): `any`[]
2109
+
2110
+ Returns an array of values of the enumerable properties of an object
2111
+
2112
+ #### Parameters
2113
+
2114
+ | Name | Type | Description |
2115
+ | :------ | :------ | :------ |
2116
+ | `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. |
2117
+
2118
+ #### Returns
2119
+
2120
+ `any`[]
2121
+
2122
+ #### Defined in
2123
+
2124
+ node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2017.object.d.ts:30