ToolExecuteFunction
ToolExecuteFunction
Type definition for a tool's execute function.
Signature
type ToolExecuteFunction<T extends ToolParameterType, R> = (
  ctx: AiContext,
  inputSchema: InferParameters<T>,
) => Awaitable<R>
Type definition for a tool's execute function.
type ToolExecuteFunction<T extends ToolParameterType, R> = (
  ctx: AiContext,
  inputSchema: InferParameters<T>,
) => Awaitable<R>