Fix type errors
This commit is contained in:
@@ -84,16 +84,16 @@ class ConversationManagerService:
|
||||
await self.redis_service.save_session(session)
|
||||
|
||||
# Step 2: Check for pantallaContexto in existing session
|
||||
if session.pantallaContexto:
|
||||
if session.pantalla_contexto:
|
||||
# Check if pantallaContexto is stale (10 minutes)
|
||||
if self._is_pantalla_context_valid(session.last_modified):
|
||||
logger.info(
|
||||
"Detected 'pantallaContexto' in session: %s. "
|
||||
"Delegating to QuickReplies flow.",
|
||||
session.pantallaContexto,
|
||||
session.pantalla_contexto,
|
||||
)
|
||||
response = await self._manage_quick_reply_conversation(
|
||||
request, session.pantallaContexto,
|
||||
request, session.pantalla_contexto,
|
||||
)
|
||||
if response:
|
||||
# Save user message to Firestore
|
||||
@@ -214,9 +214,9 @@ class ConversationManagerService:
|
||||
|
||||
# Step 3i: Return response object
|
||||
return DetectIntentResponse(
|
||||
response_id=str(uuid4()),
|
||||
query_result=QueryResult(
|
||||
response_text=assistant_response,
|
||||
responseId=str(uuid4()),
|
||||
queryResult=QueryResult(
|
||||
responseText=assistant_response,
|
||||
parameters=None,
|
||||
),
|
||||
quick_replies=None,
|
||||
@@ -265,8 +265,8 @@ class ConversationManagerService:
|
||||
|
||||
# Create response with the matched quick reply answer
|
||||
return DetectIntentResponse(
|
||||
response_id=str(uuid4()),
|
||||
query_result=QueryResult(response_text=matched_answer, parameters=None),
|
||||
responseId=str(uuid4()),
|
||||
queryResult=QueryResult(responseText=matched_answer, parameters=None),
|
||||
quick_replies=quick_reply_screen,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user