Class: FunctionTool<T, R>
Simple Tool interface. Likely to change.
Type parameters
• T
• R extends JSONValue
| Promise
<JSONValue
>
Implements
BaseTool
<T
>
Constructors
new FunctionTool()
new FunctionTool<
T
,R
>(_fn
,_metadata
):FunctionTool
<T
,R
>
Parameters
• _fn
• _metadata: ToolMetadata
<JSONSchemaType
<T
>>
Returns
FunctionTool
<T
, R
>
Source
packages/core/src/tools/functionTool.ts:7