Creates a tool with a schema.
API
export declare function useTool<
const Name extends string,
Schema extends s.HashbrownType ,
Result,
>(
input: ToolOptionsWithInput <Name, Schema, Result>,
): Chat.Tool <
Name,
s.Infer <Schema>,
Result
>;
useTool
Chat.Tool<Name, s.Infer<Schema>, Result>
@param
input:
ToolOptionsWithInput<Name, Schema, Result>
The input for the tool.
@type
Name
string
@type
Schema
s.HashbrownType
@type
Result
@returns
Chat.Tool<Name, s.Infer<Schema>, Result>