updated survey route

This commit is contained in:
OwusuBlessing
2025-08-12 15:57:07 +01:00
parent 8ea9510b90
commit 1905492f93
22 changed files with 4 additions and 3 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+2 -2
View File
@@ -1,6 +1,6 @@
# api/models/requests.py # api/models/requests.py
from pydantic import BaseModel from pydantic import BaseModel
from typing import List from typing import List,Dict
class BaseRequest(BaseModel): class BaseRequest(BaseModel):
pass pass
@@ -17,5 +17,5 @@ class ChatRequest(BaseModel):
class SurveyRequest(BaseModel): class SurveyRequest(BaseModel):
job_id: str booking_form_input: Dict
Binary file not shown.
Binary file not shown.
+2 -1
View File
@@ -46,7 +46,8 @@ async def run_survey_agent(
): ):
"""Chat with DroneBot using query and history.""" """Chat with DroneBot using query and history."""
try: try:
from test2 import booking_form_input booking_form_input = request.booking_form_input
#from test2 import booking_form_input
agent = DroneAssessmentAgent() agent = DroneAssessmentAgent()
result = await agent.run(booking_form_input) result = await agent.run(booking_form_input)
return SurveyAgentResponse( return SurveyAgentResponse(
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.