Spaces:
Running
Running
Commit ·
670e027
1
Parent(s): a735114
fyp
Browse files- __pycache__/main.cpython-313.pyc +0 -0
- app/__pycache__/config.cpython-313.pyc +0 -0
- app/__pycache__/database.cpython-313.pyc +0 -0
- app/ai/agent/__pycache__/graph.cpython-313.pyc +0 -0
- app/ai/agent/__pycache__/schemas.cpython-313.pyc +0 -0
- app/ai/agent/__pycache__/state.cpython-313.pyc +0 -0
- app/ai/agent/nodes/__pycache__/casual_chat.cpython-313.pyc +0 -0
- app/ai/agent/nodes/__pycache__/classify_intent.cpython-313.pyc +0 -0
- app/ai/agent/nodes/__pycache__/greeting.cpython-313.pyc +0 -0
- app/ai/agent/nodes/__pycache__/listing_collect.cpython-313.pyc +0 -0
- app/ai/agent/nodes/__pycache__/listing_publish.cpython-313.pyc +0 -0
- app/ai/agent/nodes/__pycache__/listing_validate.cpython-313.pyc +0 -0
- app/ai/agent/nodes/__pycache__/respond.cpython-313.pyc +0 -0
- app/ai/agent/nodes/__pycache__/search_query.cpython-313.pyc +0 -0
- app/ai/agent/nodes/__pycache__/validate_output.cpython-313.pyc +0 -0
- app/ai/routes/__pycache__/chat.cpython-313.pyc +0 -0
- app/ai/services/__pycache__/search_service.cpython-313.pyc +0 -0
- app/ai/tools/__pycache__/greeting_tool.cpython-313.pyc +0 -0
- app/ai/tools/__pycache__/intent_detector_tool.cpython-313.pyc +0 -0
- app/guards/__pycache__/jwt_guard.cpython-313.pyc +0 -0
- app/routes/__pycache__/auth.cpython-313.pyc +0 -0
- app/routes/__pycache__/listing.cpython-313.pyc +0 -0
- app/routes/__pycache__/user_public.cpython-313.pyc +0 -0
- app/routes/__pycache__/websocket_listings.cpython-313.pyc +0 -0
- debug_routes.py +34 -0
__pycache__/main.cpython-313.pyc
CHANGED
|
Binary files a/__pycache__/main.cpython-313.pyc and b/__pycache__/main.cpython-313.pyc differ
|
|
|
app/__pycache__/config.cpython-313.pyc
CHANGED
|
Binary files a/app/__pycache__/config.cpython-313.pyc and b/app/__pycache__/config.cpython-313.pyc differ
|
|
|
app/__pycache__/database.cpython-313.pyc
CHANGED
|
Binary files a/app/__pycache__/database.cpython-313.pyc and b/app/__pycache__/database.cpython-313.pyc differ
|
|
|
app/ai/agent/__pycache__/graph.cpython-313.pyc
CHANGED
|
Binary files a/app/ai/agent/__pycache__/graph.cpython-313.pyc and b/app/ai/agent/__pycache__/graph.cpython-313.pyc differ
|
|
|
app/ai/agent/__pycache__/schemas.cpython-313.pyc
CHANGED
|
Binary files a/app/ai/agent/__pycache__/schemas.cpython-313.pyc and b/app/ai/agent/__pycache__/schemas.cpython-313.pyc differ
|
|
|
app/ai/agent/__pycache__/state.cpython-313.pyc
CHANGED
|
Binary files a/app/ai/agent/__pycache__/state.cpython-313.pyc and b/app/ai/agent/__pycache__/state.cpython-313.pyc differ
|
|
|
app/ai/agent/nodes/__pycache__/casual_chat.cpython-313.pyc
CHANGED
|
Binary files a/app/ai/agent/nodes/__pycache__/casual_chat.cpython-313.pyc and b/app/ai/agent/nodes/__pycache__/casual_chat.cpython-313.pyc differ
|
|
|
app/ai/agent/nodes/__pycache__/classify_intent.cpython-313.pyc
CHANGED
|
Binary files a/app/ai/agent/nodes/__pycache__/classify_intent.cpython-313.pyc and b/app/ai/agent/nodes/__pycache__/classify_intent.cpython-313.pyc differ
|
|
|
app/ai/agent/nodes/__pycache__/greeting.cpython-313.pyc
CHANGED
|
Binary files a/app/ai/agent/nodes/__pycache__/greeting.cpython-313.pyc and b/app/ai/agent/nodes/__pycache__/greeting.cpython-313.pyc differ
|
|
|
app/ai/agent/nodes/__pycache__/listing_collect.cpython-313.pyc
CHANGED
|
Binary files a/app/ai/agent/nodes/__pycache__/listing_collect.cpython-313.pyc and b/app/ai/agent/nodes/__pycache__/listing_collect.cpython-313.pyc differ
|
|
|
app/ai/agent/nodes/__pycache__/listing_publish.cpython-313.pyc
CHANGED
|
Binary files a/app/ai/agent/nodes/__pycache__/listing_publish.cpython-313.pyc and b/app/ai/agent/nodes/__pycache__/listing_publish.cpython-313.pyc differ
|
|
|
app/ai/agent/nodes/__pycache__/listing_validate.cpython-313.pyc
CHANGED
|
Binary files a/app/ai/agent/nodes/__pycache__/listing_validate.cpython-313.pyc and b/app/ai/agent/nodes/__pycache__/listing_validate.cpython-313.pyc differ
|
|
|
app/ai/agent/nodes/__pycache__/respond.cpython-313.pyc
CHANGED
|
Binary files a/app/ai/agent/nodes/__pycache__/respond.cpython-313.pyc and b/app/ai/agent/nodes/__pycache__/respond.cpython-313.pyc differ
|
|
|
app/ai/agent/nodes/__pycache__/search_query.cpython-313.pyc
CHANGED
|
Binary files a/app/ai/agent/nodes/__pycache__/search_query.cpython-313.pyc and b/app/ai/agent/nodes/__pycache__/search_query.cpython-313.pyc differ
|
|
|
app/ai/agent/nodes/__pycache__/validate_output.cpython-313.pyc
CHANGED
|
Binary files a/app/ai/agent/nodes/__pycache__/validate_output.cpython-313.pyc and b/app/ai/agent/nodes/__pycache__/validate_output.cpython-313.pyc differ
|
|
|
app/ai/routes/__pycache__/chat.cpython-313.pyc
CHANGED
|
Binary files a/app/ai/routes/__pycache__/chat.cpython-313.pyc and b/app/ai/routes/__pycache__/chat.cpython-313.pyc differ
|
|
|
app/ai/services/__pycache__/search_service.cpython-313.pyc
CHANGED
|
Binary files a/app/ai/services/__pycache__/search_service.cpython-313.pyc and b/app/ai/services/__pycache__/search_service.cpython-313.pyc differ
|
|
|
app/ai/tools/__pycache__/greeting_tool.cpython-313.pyc
CHANGED
|
Binary files a/app/ai/tools/__pycache__/greeting_tool.cpython-313.pyc and b/app/ai/tools/__pycache__/greeting_tool.cpython-313.pyc differ
|
|
|
app/ai/tools/__pycache__/intent_detector_tool.cpython-313.pyc
CHANGED
|
Binary files a/app/ai/tools/__pycache__/intent_detector_tool.cpython-313.pyc and b/app/ai/tools/__pycache__/intent_detector_tool.cpython-313.pyc differ
|
|
|
app/guards/__pycache__/jwt_guard.cpython-313.pyc
CHANGED
|
Binary files a/app/guards/__pycache__/jwt_guard.cpython-313.pyc and b/app/guards/__pycache__/jwt_guard.cpython-313.pyc differ
|
|
|
app/routes/__pycache__/auth.cpython-313.pyc
CHANGED
|
Binary files a/app/routes/__pycache__/auth.cpython-313.pyc and b/app/routes/__pycache__/auth.cpython-313.pyc differ
|
|
|
app/routes/__pycache__/listing.cpython-313.pyc
CHANGED
|
Binary files a/app/routes/__pycache__/listing.cpython-313.pyc and b/app/routes/__pycache__/listing.cpython-313.pyc differ
|
|
|
app/routes/__pycache__/user_public.cpython-313.pyc
CHANGED
|
Binary files a/app/routes/__pycache__/user_public.cpython-313.pyc and b/app/routes/__pycache__/user_public.cpython-313.pyc differ
|
|
|
app/routes/__pycache__/websocket_listings.cpython-313.pyc
CHANGED
|
Binary files a/app/routes/__pycache__/websocket_listings.cpython-313.pyc and b/app/routes/__pycache__/websocket_listings.cpython-313.pyc differ
|
|
|
debug_routes.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
import sys
|
| 3 |
+
import os
|
| 4 |
+
import asyncio
|
| 5 |
+
from fastapi.routing import APIRoute
|
| 6 |
+
|
| 7 |
+
# Add project root to sys.path
|
| 8 |
+
sys.path.append(os.getcwd())
|
| 9 |
+
|
| 10 |
+
try:
|
| 11 |
+
from main import app
|
| 12 |
+
|
| 13 |
+
print("="*50)
|
| 14 |
+
print("INSPECTING APP ROUTES")
|
| 15 |
+
print("="*50)
|
| 16 |
+
|
| 17 |
+
found_ai_ask = False
|
| 18 |
+
|
| 19 |
+
for route in app.routes:
|
| 20 |
+
if isinstance(route, APIRoute):
|
| 21 |
+
methods = ", ".join(route.methods)
|
| 22 |
+
print(f"Path: {route.path} | Methods: {methods} | Name: {route.name}")
|
| 23 |
+
|
| 24 |
+
if route.path == "/ai/ask":
|
| 25 |
+
found_ai_ask = True
|
| 26 |
+
print(f"!!! FOUND /ai/ask: Methods={methods}")
|
| 27 |
+
|
| 28 |
+
if not found_ai_ask:
|
| 29 |
+
print("!!! ERROR: /ai/ask NOT FOUND in routes")
|
| 30 |
+
else:
|
| 31 |
+
print("!!! SUCCESS: /ai/ask is registered")
|
| 32 |
+
|
| 33 |
+
except Exception as e:
|
| 34 |
+
print(f"Error inspecting routes: {e}")
|