Examples

April 4, 2026 ยท View on GitHub

Use this index to pick the shortest example that matches what you are trying to validate.

First-Run Demos

ExampleNeeds optional depsPurpose
attack_scenarios.pyLangGraphzero-API-key attack interception demo with clear without-vs-with framing
without_vs_with_firewall.pyNono-dependency comparison of the same risky workflow before and after AgentFirewall
langgraph_quickstart.pyLangGraphshortest official LangGraph smoke test
openai_agents_quickstart.pyOpenAI Agents SDKshortest official OpenAI Agents smoke test

Adoption And Rollout Demos

ExampleNeeds optional depsPurpose
log_only_rollout.pyNoshow log-only behavior and how original_action is preserved
policy_reuse_demo.pyOpenAI Agents SDKreuse one policy pack across the generic preview path and the OpenAI Agents official path
generic_preview_demo.pyNopreview the low-level guarded wrapper path for unsupported runtimes

Deeper Validation

ExampleNeeds optional depsPurpose
langgraph_trial_run.pyLangGraphmulti-scenario trial run with ordered audit traces
langgraph_agent.pyLangGraphbroader local adapter demo across all guarded tool types
openai_agents_demo.pyOpenAI Agents SDKattack scenarios and official helper coverage on the OpenAI Agents path
core_runtime_demo.pyNolow-level core demo without a runtime adapter

Workflow Evidence

The packaged eval suites now include more realistic multi-step tasks, not only single rule hits:

  • repo triage
  • incident triage
  • nested side-effect correlation
  • log-only observation without interruption