Interface: Tool
batteries/use-tools.Tool
Represents a tool that can be provided for the Large Language Model.
Hierarchy
↳
Tool
Properties
func
• func: Component
<any
>
A function that invokes the tool.
Remarks
The function will be treated as an AI.JSX component: the tool parameters
will be passed as fields on the first argument (props) and the function
can return a string
or any AI.JSX Node, synchronously or
asynchronously.
Defined in
ai-jsx/src/batteries/use-tools.tsx:25
parameters
• parameters: JSONSchema7
& { type?
: "object"
}
Inherited from
Defined in
ai-jsx/src/core/completion.tsx:71
description
• Optional
description: string
Inherited from
FunctionDefinition.description