Misc improvements
This commit is contained in:
@@ -17,9 +17,12 @@ router = APIRouter(prefix="/api/v1/dialogflow", tags=["conversation"])
|
||||
@router.post("/detect-intent")
|
||||
async def detect_intent(
|
||||
request: ConversationRequest,
|
||||
conversation_manager: Annotated[ConversationManagerService, Depends(
|
||||
get_conversation_manager,
|
||||
)],
|
||||
conversation_manager: Annotated[
|
||||
ConversationManagerService,
|
||||
Depends(
|
||||
get_conversation_manager,
|
||||
),
|
||||
],
|
||||
) -> DetectIntentResponse:
|
||||
"""Detect user intent and manage conversation.
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ from fastapi import APIRouter, Depends, HTTPException
|
||||
|
||||
from capa_de_integracion.dependencies import get_notification_manager
|
||||
from capa_de_integracion.models.notification import ExternalNotificationRequest
|
||||
from capa_de_integracion.services.notification_manager import NotificationManagerService
|
||||
from capa_de_integracion.services import NotificationManagerService
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
router = APIRouter(prefix="/api/v1/dialogflow", tags=["notifications"])
|
||||
@@ -16,9 +16,12 @@ router = APIRouter(prefix="/api/v1/dialogflow", tags=["notifications"])
|
||||
@router.post("/notification", status_code=200)
|
||||
async def process_notification(
|
||||
request: ExternalNotificationRequest,
|
||||
notification_manager: Annotated[NotificationManagerService, Depends(
|
||||
get_notification_manager,
|
||||
)],
|
||||
notification_manager: Annotated[
|
||||
NotificationManagerService,
|
||||
Depends(
|
||||
get_notification_manager,
|
||||
),
|
||||
],
|
||||
) -> None:
|
||||
"""Process push notification from external system.
|
||||
|
||||
|
||||
@@ -10,9 +10,7 @@ from capa_de_integracion.dependencies import (
|
||||
get_quick_reply_session_service,
|
||||
)
|
||||
from capa_de_integracion.models.quick_replies import QuickReplyScreen
|
||||
from capa_de_integracion.services.quick_reply_session_service import (
|
||||
QuickReplySessionService,
|
||||
)
|
||||
from capa_de_integracion.services import QuickReplySessionService
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
router = APIRouter(prefix="/api/v1/quick-replies", tags=["quick-replies"])
|
||||
@@ -45,7 +43,8 @@ class QuickReplyScreenResponse(BaseModel):
|
||||
async def start_quick_reply_session(
|
||||
request: QuickReplyScreenRequest,
|
||||
quick_reply_session_service: Annotated[
|
||||
QuickReplySessionService, Depends(get_quick_reply_session_service),
|
||||
QuickReplySessionService,
|
||||
Depends(get_quick_reply_session_service),
|
||||
],
|
||||
) -> QuickReplyScreenResponse:
|
||||
"""Start a quick reply FAQ session for a specific screen.
|
||||
|
||||
Reference in New Issue
Block a user