Files
vercel__eve/packages/eve/extension-contracts/compatibility/tool/v49.ts
T
Casey Gowrie 76d4dd84ab feat(eve): add workflow agent routing (#3485)
Signed-off-by: Casey Gowrie <ctgowrie@gmail.com>
2026-09-18 10:04:35 -04:00

18 lines
452 B
TypeScript

import { defineTool } from "#public/tools/index.js";
export default defineTool({
description: "Report a guarded value.",
inputSchema: {
type: "object",
properties: { value: { type: "string" } },
required: ["value"],
additionalProperties: false,
},
approval({ callId, toolInput, toolName }) {
return callId && toolName && toolInput?.value ? "user-approval" : "denied";
},
execute({ value }) {
return value;
},
});