Installation
Clients
Theuseveto package ships two clients with identical APIs — choose based on whether your application is synchronous or asynchronous.
Both accept the same constructor parameters:
Sync client
Async client
Authorization
authorize is the primary method. It checks whether an agent is permitted to call a tool with the given parameters.
AuthorizationResult has these fields:
If no policy matches the agent and tool, Veto denies by default. You must explicitly create a policy that allows an action for it to be permitted.
Agent management
Policy management
Audit logs
LangChain integration
Wrap any LangChain tool function with Veto authorization. If the action is denied, the wrapper returns the denial reason as a string instead of executing the tool.CrewAI integration
Usebefore_tool_callback to intercept every tool call in a CrewAI agent. Return False to block execution.