Skip to content

@uservane/vercel-ai: createRequestUserFeedbackTool

createRequestUserFeedbackTool(controller): RequestUserFeedbackTool

Defined in: products/uservane/vercel-ai/src/request-user-feedback-tool.ts:46

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, ... });