Skip to content

PersistentAI API Documentation / @persistentai/fireflow-types / portKey

Function: portKey()

portKey(nodeId, portId): string

Defined in: packages/fireflow-types/src/flow/pure-cluster.ts:117

Helper to create composite port key for flow-level uniqueness. Port IDs are only unique within a node, so we use "nodeId:portId" format.

NOTE: This key should be treated as an OPAQUE identifier. Do NOT parse it back - use direct edge references instead.

Parameters

nodeId

string

The node ID

portId

string

The port ID

Returns

string

Composite key for use in Sets/Maps

Licensed under BUSL-1.1