webcraft-ai-backend / deploy_tmp /test_planner_direct.py
3ssem0
fix: configuration error - aligned entry point to app.py and enforced LF/BOM-less encoding
ec47953
Raw
History Blame Contribute Delete
452 Bytes
from ai_planner import get_planner
import json
print("🧪 Testing AI Planner directly...")
planner = get_planner()
prompt = "Create a simple navigation bar with Home and Contact"
try:
workspace = planner.generate_blocks(prompt)
print("✅ SUCCESS!")
print(json.dumps(workspace, indent=2))
except Exception as e:
print(f"❌ FAILED: {e}")
# Raw response is often printed by ai_planner if it fails, but let's be sure