Invoke the tool with the given input and return a result.
The provided LanguageModelToolInvocationOptions.input has been validated against the declared schema.
Optional
prepareCalled once before a tool is invoked. It's recommended to implement this to customize the progress message that appears while the tool is running, and to provide a more useful message with context from the invocation input. Can also signal that a tool needs user confirmation before running, if appropriate.
prepareInvocation
is not necessarily followed by a call to invoke
.
A tool that can be invoked by a call to a LanguageModelChat.
Stubbed