Skip to content

@uservane/vercel-ai: 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).

AgentController

RequestUserFeedbackTool

import { createRequestUserFeedbackTool } from "@uservane/vercel-ai";
import { generateText } from "ai";
const tools = {
request_user_feedback: createRequestUserFeedbackTool(controller),
};
await generateText({ model, tools, ... });