Context module for PocketFlow
Provides a shared context for passing data between nodes in a flow. The context stores JSON data in a key-value table.
Types
PfContext = ref object store*: TableRef[string, JsonNode]
- Shared context for flow execution. Stores arbitrary JSON data that can be accessed by any node in the flow.
Procs
proc newPfContext(): PfContext {....raises: [], tags: [], forbids: [].}
-
Creates a new PocketFlow context.
Returns: A new PfContext instance with an empty data table.