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