Interfaces
BaseTool
Defined in: packages/core/src/llms/type.ts:236
Simple Tool interface. Likely to change.
Type Parameters
Input
Input
= any
Properties
call()?
Defined in: packages/core/src/llms/type.ts:246
This could be undefined if the implementation is not provided, which might be the case when communicating with a llm.
Parameters
input
Input
Returns
JSONValue
| Promise
<JSONValue
>
The output of the tool.
metadata
metadata:
Input
extendsKnown
?ToolMetadata
<JSONSchemaType
<Input
<Input
>>> :ToolMetadata
<Record
<string
,unknown
>>
Defined in: packages/core/src/llms/type.ts:247