File size: 780 Bytes
9d29c62
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# strategy_policy_engine.py

STRATEGY_MAP = {
    "GEOMETRY_ANALYTIC": {
        "allowed": ["algebraic_intersection", "distance_formula", "midpoint_calculation"],
        "forbidden": ["differentiation", "calculus_modeling", "optimization"]
    },
    "SIMPLE_LINEAR_SOLVE": {
        "allowed": ["single_variable_isolation", "basic_arithmetic"],
        "forbidden": ["systems_of_equations", "substitution_method"]
    },
    "FUNCTION_ANALYSIS": {
        "allowed": ["differentiation", "extrema_finding", "intercepts"],
        "forbidden": ["integration"]
    }
}

def get_allowed_strategies(intent):
    """诪讞讝讬专 讜拽讟讜专 讗住讟专讟讙讬讜转 诪讜转专讜转 诇驻讬 讻讜讜谞转 讛诪砖转诪砖"""
    return STRATEGY_MAP.get(intent, {"allowed": ["GENERAL"], "forbidden": []})