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