| # 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": []}) | |