orka.orchestrator.decision_engine module
Decision Engine
Final decision-making logic for path selection. Implements commit margin analysis, confidence thresholds, and decision types.
- class orka.orchestrator.decision_engine.DecisionEngine(config: Any)[source]
Bases:
object
Final decision-making engine for path selection.
Analyzes scored candidates and makes final routing decisions based on: - Score margins between top candidates - Confidence thresholds - Budget constraints - Safety requirements
- async make_decision(scored_candidates: List[Dict[str, Any]], context: Dict[str, Any]) Dict[str, Any] [source]
Make final routing decision based on scored candidates.
- Parameters:
scored_candidates – List of candidates with scores
context – Execution context
- Returns:
Decision object with type, target, confidence, and reasoning