You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add flow_id, self.name for instance names of Flows and Nodes and easy isolated storage for nested flows
This change introduces several improvements to BaseNode and Flow classes:
1. Added instance name tracking with get_instance_name()
2. Simplified UUID format to 8-character hex without hyphens
3. Added flow hierarchy tracking with flow.name and flow.id
4. Improved flow name lookup with explicit naming support
These changes enable:
- Better debugging with named instances and flows
- Simplified flow identification with shorter UUIDs
- Flow hierarchy awareness for nested flows
- Consistent naming across nodes and flows
The improvements include:
- Automatic instance name lookup walking up the call stack
- Simplified 8-character flow IDs for easier reference
- Flow name tracking with explicit naming support
- Parent flow tracking for nested flows
This is particularly useful for:
- Debugging complex flows with named components
- Tracking flow execution in logs
- Visualizing flow hierarchies
- Maintaining backward compatibility
feat: Add flow_storage attribute to BaseNode
feat: Add instance name tracking to BaseNode for better debugging
fix: add base case to prevent infinite recursion in `_propagate_flow_id`
fix: prevent infinite recursion in flow propagation with visited set
fix: improve instance name lookup by walking up call stack
feat: Add rework flow with file processing and LLM integration
refactor: enhance debug output in GetOpinion.prep with class name
feat: Add name parameter to GetOpinion node initialization
feat: Add debug print statement to BaseNode key discovery
refactor: improve instance name lookup and GetOpinion initialization
feat: Add debug print statement for opinion2_Node name
feat: Add flow hierarchy tracking to BaseNode
feat: add flow name and id tracking with alias support
refactor: Simplify flow UUIDs and improve naming consistency
draft: Just a example to check if it works, it needs some cleaning!
docs: Add pocketflow.txt documentation
feat: Add instance tracking, simplified UUIDs, and flow hierarchy in BaseNode
0 commit comments