SysOps: deploy-all — 2026-06-09 10:41 UTC
This commit is contained in:
@@ -177,6 +177,25 @@ def run_research() -> dict[str, Any]:
|
||||
title="Full research cycle completed",
|
||||
metadata={"briefs": 3, "snapshots": len(snapshot_ids)},
|
||||
)
|
||||
|
||||
from app.connectors.project_assets import register_agent_output
|
||||
|
||||
for brief, domain in [
|
||||
(crm_brief, "crm"),
|
||||
(retail_brief, "retail"),
|
||||
(social_brief, "social"),
|
||||
]:
|
||||
try:
|
||||
register_agent_output(
|
||||
asset_type="research_brief",
|
||||
title=brief.get("title") or f"Research {domain}",
|
||||
ref_id=str(brief.get("id")),
|
||||
payload={"domain": domain, "summary": brief.get("summary"), "brief_id": brief.get("id")},
|
||||
source_agent="research",
|
||||
)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
return {
|
||||
"snapshots": snapshot_ids,
|
||||
"briefs": [crm_brief["id"], retail_brief["id"], social_brief["id"]],
|
||||
|
||||
Reference in New Issue
Block a user