feat: compose native research workflows in QuantFlow

This commit is contained in:
yuxuanhui
2026-09-08 22:42:29 +08:00
parent 7860434b04
commit a6e36e50ec
22 changed files with 2274 additions and 85 deletions
+18
View File
@@ -184,6 +184,24 @@ async def list_flows(ctx, args):
CAPABILITIES += (
Capability(
name="search_research_workflows",
schema=AssetQuery,
description="分页查阅 QuantFlow 原生流程与版本,不启动运行。",
label="搜索研究流程",
renderer="research",
effect="query",
handler=lambda ctx, args: Assets(ctx.business.db).list("workflow", **args.model_dump()),
),
Capability(
name="get_research_workflow",
schema=FixedAssetReference,
description="读取指定研究流程版本及原生节点连接,配合 get_research_run 解释执行产物。",
label="读取流程版本",
renderer="research",
effect="query",
handler=lambda ctx, args: Assets(ctx.business.db).get(args.asset_id, args.version, "workflow"),
),
Capability(
name="get_research_run",
schema=FlowReference,