Setting Up Policies

Basic

Python
agent.set_policy(max_per_tx=100, max_daily=1000, enforcement_mode="enforce")

Advanced

TypeScript
await agent.setPolicy({ maxPerTx: 100, maxDaily: 1000, maxWeekly: 5000, maxMonthly: 15000, counterpartyWhitelist: ['0xabc...'], enforcementMode: 'enforce' })

Simulation

Python
sim = agent.simulate_payment(amount=75) if sim.passed: print("Will succeed") else: print(sim.violated_rules)

Modes

StageMode
Developmentaudit_only
Stagingwarn
Productionenforce