feat: 统一治理配置与通知责任人映射
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import json
|
||||
import time
|
||||
|
||||
from .governance import load_governance_config
|
||||
from .llm_provider import create_llm_provider, get_runtime_llm_config
|
||||
from .results import AgentResult
|
||||
from .structured_output import (
|
||||
@@ -184,6 +185,8 @@ def _build_notification_payload(structured_output: dict, options: dict, status:
|
||||
"task_completed" if status == "success" else "task_failed"
|
||||
)
|
||||
owners = structured_output.get("owner_roles") or []
|
||||
if not owners:
|
||||
owners = load_governance_config()["owner_mappings"]
|
||||
return {
|
||||
"batch_id": str(options.get("batch_id", "")),
|
||||
"conversation_id": str(options.get("conversation_id", "")),
|
||||
|
||||
Reference in New Issue
Block a user