feat: add silent scheduler agent tasks

This commit is contained in:
AaronZ345
2026-07-14 12:08:37 +08:00
parent eeb4b7981e
commit d5fdd644cf
3 changed files with 107 additions and 0 deletions

View File

@@ -255,6 +255,12 @@ def _execute_agent_task(task: dict, agent_bridge) -> bool:
logger.error(f"[Scheduler] Task {task['id']}: No result from agent execution")
return True # agent ran but produced nothing; don't loop
if action.get("silent", False):
logger.info(
f"[Scheduler] Task {task['id']} executed successfully in silent mode"
)
return True
from channel.channel_factory import create_channel
channel = create_channel(channel_type)
if not channel: