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