Skip to content

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


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

Interface: WorkflowSnapshot ​

Defined in: layer4/types.ts:74

可持久化的工作流快照(SharedState、游标、消息历史与可选 HITL)。

Properties ​

completedUnits ​

completedUnits: string[]

Defined in: layer4/types.ts:80


controlFlowCursor ​

controlFlowCursor: ControlFlowCursor

Defined in: layer4/types.ts:79


messageBusHistory ​

messageBusHistory: WorkflowMessage[]

Defined in: layer4/types.ts:81


metadata ​

metadata: object

Defined in: layer4/types.ts:83

cost ​

cost: number

duration ​

duration: number

tokenUsage ​

tokenUsage: number


pendingHITL? ​

optional pendingHITL?: HITLRequest

Defined in: layer4/types.ts:82


runId ​

runId: string

Defined in: layer4/types.ts:75


sharedState ​

sharedState: Record<string, unknown>

Defined in: layer4/types.ts:78


timestamp ​

timestamp: number

Defined in: layer4/types.ts:77


workflowId ​

workflowId: string

Defined in: layer4/types.ts:76

MIT Licensed