Interface: BaseTool<Input>
Simple Tool interface. Likely to change.
Type parameters
Name | Type |
---|---|
Input | any |
Implemented by
Properties
call
• Optional
call: (input
: Input
) => JSONValue
| Promise
<JSONValue
>
This could be undefined if the implementation is not provided, which might be the case when communicating with a llm.
Type declaration
▸ (input
): JSONValue
| Promise
<JSONValue
>
Parameters
Name | Type |
---|---|
input | Input |
Returns
JSONValue
| Promise
<JSONValue
>
Defined in
metadata
• metadata: Input
extends Known
? ToolMetadata
<JSONSchemaType
<Input
<Input
>>> : ToolMetadata
<Record
<string
, unknown
>>