Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /amabito_veronica /src /veronica /protocols.py
| # src/veronica/protocols.py | |
| """VERONICA OS protocols -- runtime_checkable interfaces for pipeline stages.""" | |
| from __future__ import annotations | |
| from typing import Any, Mapping, Protocol, Sequence, runtime_checkable | |
| from veronica_core.containment.execution_context import ContextSnapshot | |
| from veronica.types import ( | |
| AnalysisResult, | |
| BudgetState, | |
| CostEstimate, | |
| DecisionMeta, | |
| DesiredPolicy, | |
| HistoryView, | |
| PolicyConfig, | |
| StepIntent, | |
| StepOutcome, | |
| ) | |
| class CollectorProtocol(Protocol): | |
| def collect(self, snapshot: ContextSnapshot) -> StepOutcome: ... | |
| class AnalyzerProtocol(Protocol): | |
| def analyze( | |
| self, | |
| intent: StepIntent, | |
| outcome: StepOutcome, | |
| history: HistoryView, | |
| ) -> AnalysisResult: ... | |
| class CostModelProtocol(Protocol): | |
| def estimate( | |
| self, | |
| intent: StepIntent, | |
| history: HistoryView, | |
| last_analysis: AnalysisResult | None, | |
| ) -> CostEstimate: ... | |
| class PlannerProtocol(Protocol): | |
| def plan( | |
| self, | |
| analysis: AnalysisResult | None, | |
| cost: CostEstimate, | |
| budget: BudgetState, | |
| ) -> DesiredPolicy: ... | |
| class ArbiterProtocol(Protocol): | |
| def arbitrate( | |
| self, | |
| desires: Sequence[DesiredPolicy], | |
| budget_remaining_usd: float, | |
| ) -> Mapping[str, PolicyConfig]: ... | |
| class StoreProtocol(Protocol): | |
| def commit( | |
| self, | |
| outcome: StepOutcome, | |
| analysis: AnalysisResult, | |
| cost: CostEstimate, | |
| desired: DesiredPolicy, | |
| policy: PolicyConfig, | |
| meta: DecisionMeta, | |
| ) -> None: ... | |
| def build_history(self, chain_id: str, limit: int = 50) -> HistoryView: ... | |
| class EventEmitterProtocol(Protocol): | |
| def emit(self, event_type: str, payload: Mapping[str, Any]) -> None: ... | |
Xet Storage Details
- Size:
- 1.94 kB
- Xet hash:
- 6c8b6a42def625c9c2db0306f7dccb1400d3dc0784b2112be424f1abbbf0e051
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.