Quick Start
Prerequisites: Python 3.12+, OpenAI API key, AgentControl serverhttp://localhost:8501 and click test buttons to see safety controls in action.
Available Demos
Interactive Demo
Customer support agent with PII blocking and SQL injection prevention. Shows real-time safety checks inStreamlit UI.
Steering Demo
Banking email agent with PII redaction. Combines AgentControl Hook (deny on tool calls) and Strands Steering (steer on LLM draft) for layered governance. Uses a two-phase draft to send flow so steer can guide before tool calls.How It Works
AgentControlHook provides automatic safety without code changes.Guide() retry.
Controls
LLM Controls
Apply to all model interactions:Tool Controls
Target specific tools:Architecture
Integration Patterns
Basic Setup
Steering Integration
AgentControlHookfor tool-stage deny (hard blocks)AgentControlSteeringHandlerfor LLM steer toGuide()(corrective guidance)
steering_demo/README.md for a complete implementation.
Source Code
View the complete example with all scripts and setup instructions:Strands Agents Integration Examples
Troubleshooting
AgentControl not initialized
Runagent_control.init() before creating the hook.
Controls not triggering
- Server running?
curl http://localhost:8000/health - Controls exist? Re-run
setup_*_controls.py
Import errors
Install dependencies:uv sync or pip install -e .
Files
interactive_demo/- Customer support demo with PII/SQL injection blockingsteering_demo/- Banking email demo with PII redaction