Skip to content

Commit 0cfd907

Browse files
author
AgentPatterns
committed
feat(examples/python): add guarded-policy-agent runnable example
1 parent da5b83a commit 0cfd907

File tree

1 file changed

+1
-1
lines changed
  • examples/agent-patterns/guarded-policy-agent/python

1 file changed

+1
-1
lines changed

examples/agent-patterns/guarded-policy-agent/python/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def stopped(stop_reason: str, *, phase: str, **extra: Any) -> dict[str, Any]:
113113
"policy_decision": decision.kind,
114114
"policy_reason": decision.reason,
115115
"executed_from": "none",
116-
"ok": decision.kind != "deny",
116+
"ok": False,
117117
}
118118
history_item: dict[str, Any] = {
119119
"step": idx,

0 commit comments

Comments
 (0)