Define the agent role as code
Scope the action surface: targets, function selectors, parameter ranges, caps. The TypeScript SDK is ABI-typed against the contracts you permission — your IDE autocompletes the agent’s mandate.
// the trader can swap stables only
allowSwap({
sell: [USDC, USDT, PYUSD],
buy: [USDC, USDT, PYUSD],
sellAllowance: '100k-monthly',
})
