updated survey route
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
# api/models/requests.py
|
||||
from pydantic import BaseModel
|
||||
from typing import List
|
||||
from typing import List,Dict
|
||||
|
||||
class BaseRequest(BaseModel):
|
||||
pass
|
||||
@@ -17,5 +17,5 @@ class ChatRequest(BaseModel):
|
||||
|
||||
|
||||
class SurveyRequest(BaseModel):
|
||||
job_id: str
|
||||
booking_form_input: Dict
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+2
-1
@@ -46,7 +46,8 @@ async def run_survey_agent(
|
||||
):
|
||||
"""Chat with DroneBot using query and history."""
|
||||
try:
|
||||
from test2 import booking_form_input
|
||||
booking_form_input = request.booking_form_input
|
||||
#from test2 import booking_form_input
|
||||
agent = DroneAssessmentAgent()
|
||||
result = await agent.run(booking_form_input)
|
||||
return SurveyAgentResponse(
|
||||
|
||||
Reference in New Issue
Block a user