- Nouveau module autonomous_planner.py pour planification intelligente - Utilise Qwen via Ollama pour décomposer les tâches en actions - Actions supportées: open_url, click, type_text, hotkey, scroll, wait - Intégration OWL-v2 et VLM pour détection visuelle intelligente - Nouvelle interface chat conversationnelle (chat.html) - Prompt LLM générique adaptable à toute demande - Endpoints API: /api/agent/plan, /api/agent/execute, /api/agent/status Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
86 lines
1.8 KiB
Python
86 lines
1.8 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
|
|
)
|
|
|
|
from .autonomous_planner import (
|
|
AutonomousPlanner,
|
|
ExecutionPlan,
|
|
PlannedAction,
|
|
ActionResult,
|
|
ActionType,
|
|
get_autonomous_planner
|
|
)
|
|
|
|
__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",
|
|
# Autonomous Planner (Agent Libre)
|
|
"AutonomousPlanner",
|
|
"ExecutionPlan",
|
|
"PlannedAction",
|
|
"ActionResult",
|
|
"ActionType",
|
|
"get_autonomous_planner",
|
|
]
|