总是拒绝 —— 用于测试。
| 109 | |
| 110 | |
| 111 | class AlwaysDenyPrompter: |
| 112 | """总是拒绝 —— 用于测试。""" |
| 113 | def decide(self, request: PermissionRequest) -> PermissionDecision: |
| 114 | return PermissionDecision(allowed=False, reason="auto-denied for safety") |
| 115 | |
| 116 | |
| 117 | class InteractivePrompter: |