SDF logoSafety Definition Framework
SDF logo

SDF Plan Docs

v0.2.9
GitHub

Integration Recipes

Reference patterns for embedding ToolGate in real workflows.

Runtime loop pattern

  • Call `propose(...)` before executing any tool side effect.
  • If decision requires confirmation, collect user intent then call `confirm(...)`.
  • Resume with the confirmed token in `meta` for deterministic continuation.

Adapter flow

  • Extract tool name and args from framework event.
  • Pass context through `GateContext`.
  • Map decisions into framework pause or continue semantics.