automation admin center integrated

This commit is contained in:
ValueOn AG 2025-11-03 00:38:50 +01:00
parent 837748dac9
commit 22974653a2

View file

@ -1,5 +1,5 @@
# modeAutomation.py
# Template mode implementation for workflows with predefined action plans
# Automation mode implementation for workflows with predefined action plans
import json
import logging
@ -14,14 +14,14 @@ from modules.workflows.processing.modes.modeBase import BaseMode
logger = logging.getLogger(__name__)
class TemplateMode(BaseMode):
"""Template mode implementation - executes workflows from predefined plans"""
class AutomationMode(BaseMode):
"""Automation mode implementation - executes workflows from predefined plans"""
def __init__(self, services, workflow):
super().__init__(services, workflow)
# Store action lists for each task (mapped by task ID)
self.taskActionMap: Dict[str, List[Dict[str, Any]]] = {}
logger.info("TemplateMode initialized - will use predefined plan from workflow")
logger.info("AutomationMode initialized - will use predefined plan from workflow")
async def generateTaskPlan(self, userInput: str, workflow: ChatWorkflow) -> TaskPlan:
"""