uni-flow 公开 API(中文注解) / RunWorkflowAsUnitOptions
Interface: RunWorkflowAsUnitOptions
Defined in: yaml/workflow-as-unit.ts:8
runWorkflowAsUnit 的选项:继承 YAML 引擎选项,并控制如何把 WorkflowResult 映射为 AgentOutput。
Extends
Extended by
Properties
bindings?
optionalbindings?:UsesBindings
Defined in: yaml/types.ts:135
将非内建 uses 名映射到远程 HTTP Unit。 先并入 bindings 再与 registry 合并(显式 registry 冲突时胜出)。
Inherited from
CreateEngineFromYamlOptions.bindings
contentStateKey?
optionalcontentStateKey?:string
Defined in: yaml/workflow-as-unit.ts:12
作为 AgentOutput.content 的 SharedState 键(默认:第一个 output.*,否则 "done")。
engineOptions?
optionalengineOptions?:WorkflowEngineOptions
Defined in: yaml/types.ts:140
额外引擎选项,原样转发给 createWorkflowEngine (如 policyConfig、自定义 Layer4 组件)。
Inherited from
CreateEngineFromYamlOptions.engineOptions
mapResult?
optionalmapResult?: (result,input) =>AgentOutput
Defined in: yaml/workflow-as-unit.ts:16
自定义完整 AgentOutput 映射;提供时忽略默认映射逻辑。
Parameters
result
input
Returns
registry?
optionalregistry?:UnitPluginRegistry
Defined in: yaml/types.ts:130
自定义 / 覆盖 uses 插件表。 与 bindings 合并时,本字段同名键优先。