Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /dislovelhl_enhanced-agent-bus /_compat /policy /models.py
| """Shim for src.core.shared.policy.models.""" | |
| from __future__ import annotations | |
| from dataclasses import dataclass, field | |
| from typing import Any | |
| try: | |
| from src.core.shared.policy.models import * # noqa: F403 | |
| except ImportError: | |
| class PolicySpecification: | |
| id: str = "" | |
| name: str = "" | |
| version: str = "1.0" | |
| description: str = "" | |
| rules: list[dict[str, Any]] = field(default_factory=list) | |
| metadata: dict[str, Any] = field(default_factory=dict) | |
| enabled: bool = True | |
| class PolicyDecisionResult: | |
| allowed: bool = False | |
| reason: str = "" | |
| policy_id: str = "" | |
| details: dict[str, Any] = field(default_factory=dict) | |
| class PolicyEvaluationContext: | |
| agent_id: str = "" | |
| action: str = "" | |
| resource: str = "" | |
| environment: dict[str, Any] = field(default_factory=dict) | |
Xet Storage Details
- Size:
- 932 Bytes
- Xet hash:
- 303a4f1d69e189f41de3517fae5595e67f96bcc23ff9da8506abd91609b7f227
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.