Class: FunctionTool<T>
Simple Tool interface. Likely to change.
Type parameters
Name | Type |
---|---|
T | any |
Implements
Constructors
constructor
• new FunctionTool<T
>(fn
, metadata
): FunctionTool
<T
>
Type parameters
Name | Type |
---|---|
T | any |
Parameters
Name | Type |
---|---|
fn | (...args : any []) => any |
metadata | Metadata |
Returns
FunctionTool
<T
>
Defined in
packages/core/src/tools/functionTool.ts:13
Properties
_fn
• Private
_fn: (...args
: any
[]) => any
Type declaration
▸ (...args
): any
Parameters
Name | Type |
---|---|
...args | any [] |
Returns
any
Defined in
packages/core/src/tools/functionTool.ts:10