P1: 步骤模板复用 — 内置常见 Pipeline 模式(llm_call / mcp_call / retry_template) #35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景
ext/call.py和pipeline_ext已经实现了 Pipeline 注册和按名引用机制:但框架层面缺少开箱即用的步骤模板库。每次写 Pipeline 都要重复定义常见模式。
需求
提供一组内置的步骤模板,用户可在 DSL 中通过简单声明引用:
llm_callmcp_callretry_templatevalidate_then_routebranch_on_field示例 DSL
实现
bixiweave/templates/目录,存放内置模板定义_pipeline_registryinput字段传入,模板内部用$input.xxx引用pipeline_ext和ext/call.py都缺文档)关联
bixiweave/ext/call.py— 已有 Pipeline 注册表bixiweave/pipeline_ext.py— 已有扩展注册机制