briefcase-python 2.4.1

Python bindings for Briefcase AI
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from abc import ABC, abstractmethod
from dataclasses import dataclass
from typing import Any, Optional


@dataclass
class RoutingDecision:
    action: str  # "auto" or "human_review"
    source: str  # "internal", "opa", etc.
    eval_time_ms: float
    reason: Optional[str] = None


class BaseRouter(ABC):
    @abstractmethod
    async def route(self, decision_context: Any) -> RoutingDecision: ...