Skip to content

uni-flow 公开 API(中文注解)


uni-flow 公开 API(中文注解) / AgentInput

Interface: AgentInput

Defined in: core/types.ts:38

Unit / RuntimeAdapter 的标准输入契约。

Engine 与跨项目 HTTP Unit 均使用本形状。业务旋钮放在 params勿把 secrets 写入 params(密钥走安全层 / SecretRef)。

Properties

context?

optional context?: string

Defined in: core/types.ts:42

可选补充上下文文本。


delegatedBy?

optional delegatedBy?: string

Defined in: core/types.ts:50

若由委托产生,记录委托方 Unit id。


params?

optional params?: Record<string, unknown>

Defined in: core/types.ts:48

业务策略信封:引擎原样透传,不做领域解释。 常见键如 mode$profile;跨 Unit 传业务旋钮用本字段。 不要放 API Key、口令等 secrets。


task

task: string

Defined in: core/types.ts:40

主任务描述(必填)。

MIT Licensed