File size: 1,257 Bytes
9d29c62
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import asyncio
from orchestrator import orchestrator

async def run_sanity():
    print("--- ๐ŸŸข SANITY CHECK ALGEBRA (SMADAR) ---")
    res_alg = await orchestrator.smart_solve(
        problem_text="ืกืžื“ืจ ืงื ืชื” ืžื—ื‘ืจื•ืช ื—ืฉื‘ื•ืŸ ื‘-4 ืฉืงืœื™ื ื•ื—ืœืงื•ืช ื‘-5 ืฉืงืœื™ื. ื›ืžื” ืงื ืชื”?",
        data_anchor={"function_equations": ["4x + 5y = 120", "y = x + 6"]},
        grade="ื–'",
        category="ALGEBRA",
        image_data=None,
        ambiguity_warning=False
    )
    print("ALGEBRA RESPONSE SUCCESS:")
    print("Final Answer:", res_alg.get("final_answer"))
    print("Logic Error:", res_alg.get("logic_error"))

    print("\n--- ๐ŸŸข SANITY CHECK GEOMETRY (CIRCLE AREA) ---")
    res_geom = await orchestrator.smart_solve(
         problem_text="ื—ืฉื‘ ืืช ืฉื˜ื— ื”ืžืขื’ืœ ืฉืžืฉื•ื•ืืชื• (x-3)**2 + (y-4)**2 = 25",
         data_anchor={"function_equations": ["(x-3)**2 + (y-4)**2 = 25"]},
         grade="ื™'",
         category="GEOMETRY",
         image_data=None,
         ambiguity_warning=False
    )
    print("GEOMETRY RESPONSE SUCCESS:")
    print("Final Answer:", res_geom.get("final_answer"))
    print("Logic Error:", res_geom.get("logic_error"))

if __name__ == "__main__":
    asyncio.run(run_sanity())