Example

Stop a LangGraph agent before the wrong Salesforce update

Agent → Check Write → Salesforce update only on ALLOW.

Try Check Write Developers Download example.py

Files

Run

pip install -r requirements.txt
cp .env.example .env
python example.py

Without an API key the example uses sandbox mock decisions. Live keys use action=check_write on agentops-api.php.