-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add flow_id, self.name for instance names of Flows and Nodes an…
…d 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
- Loading branch information
Showing
4 changed files
with
339 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fasdasdasd |
Oops, something went wrong.