Class: FunctionTool<T>
Type parameters
Name | Type |
---|---|
T | any |
Implements
BaseTool
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
_metadata
• Private
_metadata: ToolMetadata