This function creates an argument-less tool for the LLM to use.
function createTool<const Name extends string, Result>(
input: CreateToolInput<Name, Result>): Chat.Tool<Name, void, Result>;
@param
input
CreateToolInput<Name, Result>
@type
Name
string
@type
Result
@returns
Chat.Tool<Name, void, Result>
Examples
createTool({
name: 'getUser',
description: 'Get the current user',
handler: () => getUser(),
});