PersistentAI API Documentation / @persistentai/fireflow-types / FusedClusterUnit
Interface: FusedClusterUnit
Defined in: packages/fireflow-types/src/flow/pure-cluster.ts:70
A fused execution unit that executes all nodes in a cluster as a single atomic operation.
Benefits of fusion:
- No intermediate serialization - values stay in memory/registers
- Cache locality - all operations in tight loop
- Reduced overhead - single execution context, single try-catch
- Easier to optimize - compiler can see full computation
Properties
cluster
cluster:
PureCluster
Defined in: packages/fireflow-types/src/flow/pure-cluster.ts:74
The cluster this unit represents
execute()
execute: (
context) =>Promise<Map<string,NodeExecutionResult>>
Defined in: packages/fireflow-types/src/flow/pure-cluster.ts:83
Execute all nodes in the cluster atomically. Returns a map of node ID to execution result.
Parameters
context
Execution context for the flow
Returns
Promise<Map<string, NodeExecutionResult>>
Map of node ID to execution result