Budget Constraints
Budget-constraint status in the current SDK.
The current local TypeScript SDK does not expose BudgetExceededError or LocalBudgetEngine.
Use Guard and Charter policies for budget-like authorization today:
await veto.registerTools([
{
name: "transfer_funds",
parameters: [{ name: "amount", type: "number", required: true }],
},
]);
const res = await fetch("https://api.veto.so/v1/charter/turn", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-Veto-API-Key": process.env.VETO_API_KEY!,
},
body: JSON.stringify({
message: "Transfers over $10,000 require finance approval.",
mode: "compile",
surface: "api",
}),
});
const policy = await res.json();The resulting policy still requires review before it goes live.

