src.ai.decisions.hybrid_framework module#
Hybrid Decision Framework for Marcus AI.
Merges rule-based safety constraints with AI intelligence to make optimal task assignment decisions while never compromising safety.
- class src.ai.decisions.hybrid_framework.AIEngine[source]#
Bases:
objectMock AI engine interface for hybrid framework.
- async analyze_assignment_optimality(task, context)[source]#
Analyze assignment optimality using AI.
- Parameters:
task (
Task)context (
AssignmentContext)
- Return type:
- Returns:
AI optimization result
- class src.ai.decisions.hybrid_framework.HybridDecisionFramework[source]#
Bases:
objectHybrid decision framework that merges rule-based safety with AI optimization.
Core principle: Rules provide mandatory safety constraints that AI cannot override. AI provides optimization and enhancement when rules allow the assignment.
- async make_assignment_decision(task, context)[source]#
Make hybrid assignment decision combining rules with AI optimization.
- Parameters:
task (
Task)context (
AssignmentContext)
- Return type:
- Returns:
Assignment decision with reasoning and AI enhancements
- async evaluate_assignment_quality(task, agent_id, assignment_outcome)[source]#
Evaluate the quality of a completed assignment for learning.