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())
|