Pattern-based rule for tool confirmations - no dict goop!
| 46 | |
| 47 | |
| 48 | class ToolPatternRule(BaseModel): |
| 49 | """Pattern-based rule for tool confirmations - no dict goop!""" |
| 50 | |
| 51 | pattern: str = Field(description="Glob pattern for tool names") |
| 52 | action: str = Field(description="Action: always/never or risk level") |
| 53 | |
| 54 | model_config = {"frozen": True} |
| 55 | |
| 56 | |
| 57 | class ToolConfirmationPreferences(BaseModel): |