Nouveaux composants pour l'agent conversationnel : - IntentParser: Analyse des intentions utilisateur (règles + LLM optionnel) - ConfirmationLoop: Validation avant actions critiques (niveaux de risque) - ResponseGenerator: Génération de réponses en langage naturel - ConversationManager: Gestion du contexte multi-tour Endpoint /api/chat ajouté pour le flux conversationnel complet. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
70 lines
1.5 KiB
Python
70 lines
1.5 KiB
Python
"""
|
|
RPA Vision V3 - Agent Chat
|
|
|
|
Interface conversationnelle pour communiquer avec le système RPA.
|
|
Style "Spotlight/Alfred" - minimaliste et efficace.
|
|
|
|
Composants:
|
|
- IntentParser: Compréhension des intentions utilisateur
|
|
- ConfirmationLoop: Validation avant actions critiques
|
|
- ResponseGenerator: Réponses en langage naturel
|
|
- ConversationManager: Contexte multi-tour
|
|
|
|
Auteur: Dom - Janvier 2026
|
|
"""
|
|
|
|
from .intent_parser import (
|
|
IntentParser,
|
|
IntentType,
|
|
ParsedIntent,
|
|
get_intent_parser
|
|
)
|
|
|
|
from .confirmation import (
|
|
ConfirmationLoop,
|
|
PendingConfirmation,
|
|
ConfirmationStatus,
|
|
RiskLevel,
|
|
get_confirmation_loop
|
|
)
|
|
|
|
from .response_generator import (
|
|
ResponseGenerator,
|
|
ResponseTone,
|
|
GeneratedResponse,
|
|
get_response_generator
|
|
)
|
|
|
|
from .conversation_manager import (
|
|
ConversationManager,
|
|
ConversationSession,
|
|
ConversationTurn,
|
|
ConversationContext,
|
|
get_conversation_manager
|
|
)
|
|
|
|
__all__ = [
|
|
# Intent Parser
|
|
"IntentParser",
|
|
"IntentType",
|
|
"ParsedIntent",
|
|
"get_intent_parser",
|
|
# Confirmation
|
|
"ConfirmationLoop",
|
|
"PendingConfirmation",
|
|
"ConfirmationStatus",
|
|
"RiskLevel",
|
|
"get_confirmation_loop",
|
|
# Response Generator
|
|
"ResponseGenerator",
|
|
"ResponseTone",
|
|
"GeneratedResponse",
|
|
"get_response_generator",
|
|
# Conversation Manager
|
|
"ConversationManager",
|
|
"ConversationSession",
|
|
"ConversationTurn",
|
|
"ConversationContext",
|
|
"get_conversation_manager",
|
|
]
|