Skip to content

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


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

Interface: AgentOutput

Defined in: core/types.ts:56

Unit / RuntimeAdapter 的标准输出契约(Remote Unit HTTP 响应体同形)。

Properties

content

content: string

Defined in: core/types.ts:58

主文本结果。


metadata

metadata: Record<string, unknown>

Defined in: core/types.ts:64

扩展元数据(如 routedelegationsartifacts 透传等)。


stopReason

stopReason: StopReason

Defined in: core/types.ts:62

结束原因。


tokenUsage?

optional tokenUsage?: TokenUsage

Defined in: core/types.ts:66

可选 token / 成本统计。


toolCalls

toolCalls: ToolCall[]

Defined in: core/types.ts:60

本轮产生的工具调用(可为空数组)。

MIT Licensed