uni-flow 公开 API(中文注解) / WorkflowMessage
Type Alias: WorkflowMessage
WorkflowMessage = {
data:AgentOutput;sourceUnitId:UnitId;timestamp:number;type:"unit-output"; } | {sourceUnitId:UnitId;targetUnitId:UnitId;task:string;timestamp:number;type:"delegation"; } | {content:string;targetUnitId:UnitId;timestamp:number;type:"steering"; } | {content:string;targetUnitId:UnitId;timestamp:number;type:"followup"; } | {content:string;sourceUnitId:UnitId;timestamp:number;type:"broadcast"; } | {key:string;timestamp:number;type:"state-update";value:unknown; } | {runId:string;snapshotId:string;timestamp:number;type:"checkpoint"; } | {timestamp:number;type:"policy-violation";unitId:UnitId;violation:string; } | {action:string;payload:unknown;timestamp:number;type:"hitl-request";unitId:UnitId; } | {approved:boolean;responder:string;timestamp:number;type:"hitl-response"; } | {cost:number;timestamp:number;tokens:number;type:"cost-update";unitId:UnitId; }
Defined in: core/types.ts:128
工作流消息总线事件联合类型。