Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /GRID-INTELLIGENCE_GRID /src /search /guardrail /models.py
| """Shared models for guardrail system.""" | |
| from __future__ import annotations | |
| from dataclasses import dataclass, field | |
| class GuardrailProfile: | |
| """Persona-based guardrail configuration.""" | |
| name: str | |
| patterns: dict[str, list[str]] = field(default_factory=dict) # Pattern names to regex strings | |
| budget_limits: dict[str, int] = field(default_factory=dict) # Tool -> character limit | |
| safety_rules: dict[str, bool] = field(default_factory=dict) # Rule -> enabled | |
| phase_overrides: dict[str, list[str]] = field(default_factory=dict) # Phase -> tool overrides | |
| allowed_indices: list[str] = field(default_factory=list) # List of allowed index names | |
| allowed_fields: dict[str, list[str]] = field(default_factory=dict) # Index -> list of allowed fields | |
Xet Storage Details
- Size:
- 791 Bytes
- Xet hash:
- 9dcfd58a8d8c3322118efa0deb6170f5ade599b2106233ad82d0da4c0276fa43
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.