@uservane/vercel-ai: createRequestUserFeedbackTool
Function: createRequestUserFeedbackTool()
Section titled “Function: createRequestUserFeedbackTool()”createRequestUserFeedbackTool(
controller):RequestUserFeedbackTool
Defined in: @[email protected]_ai@[email protected]__react@19.2.3/node_modules/@uservane/vercel-ai/dist/index.d.ts:37
Build a Vercel AI SDK tool that requests in-conversation feedback.
The tool is only effective when the issuer minted a show-token with allowModelRequested (amr) and bound it on the controller. While a task is open the handler returns a structured “not now” result (never throws).
Parameters
Section titled “Parameters”controller
Section titled “controller”Returns
Section titled “Returns”RequestUserFeedbackTool
Example
Section titled “Example”import { createRequestUserFeedbackTool } from "@uservane/vercel-ai";import { generateText } from "ai";
const tools = { request_user_feedback: createRequestUserFeedbackTool(controller),};await generateText({ model, tools, ... });