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