BuddyMath / tests /archive_scripts /sanity_check.py
dotandru's picture
Fix: Clean production deployment with sse-starlette
9d29c62
Raw
History Blame Contribute Delete
1.26 kB
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())