Skip to content

Feature/add loop timer#533

Open
LaansDole wants to merge 11 commits intoOpenBMB:mainfrom
LaansDole:feature/add-loop-timer
Open

Feature/add loop timer#533
LaansDole wants to merge 11 commits intoOpenBMB:mainfrom
LaansDole:feature/add-loop-timer

Conversation

@LaansDole
Copy link
Contributor

What's changing

The loop_timer node is intended to provide the same loop control functionality as loop_counter, but using time-based limits instead of iteration counts.

  • Implement yaml_instance/demo_loop_timer.yaml with a structure that mirrors demo_loop_counter.yaml
  • Create docs/user_guide/en/nodes/loop_timer.md mirroring loop_counter.md structure
  • Update docs/user_guide/en/workflow_authoring.md to include loop_timer table entry

LaansDole and others added 10 commits February 7, 2026 10:58
- Add LoopTimerConfig with duration units support (seconds/minutes/hours)
- Implement LoopTimerNodeExecutor with standard and passthrough modes
- Register loop_timer node type in builtin_nodes.py
- Update documentation (execution_logic.md, YAML_FORMAT_QUICK_GUIDE.md)
- Add demo workflows for both modes

Closes: add-loop-timer change proposal
- Merge demo_loop_timer.yaml and demo_loop_timer_passthrough.yaml into single comprehensive demo
- Create dual-branch workflow demonstrating both standard and passthrough modes side-by-side
- Increase duration from 5 seconds to 2 minutes for better demonstration
- Update YAML_FORMAT_QUICK_GUIDE.md with detailed mode explanations and demo reference
- Update tasks.md in add-loop-timer proposal to reflect demo improvements
- Remove duplicate demo_loop_timer_passthrough.yaml file
- Remove invalid 'version' field
- Restructure to match DevAll YAML schema (graph at top level)
- Move start/end nodes to end of graph block
- Validation now passes: 'Workflow OK. Design is valid.'
Key fixes:
- Add proper trigger edges: Critic -> Timer Gate with trigger=true
- Add feedback loop: Timer Gate -> Writer with trigger=true
- Remove incorrect Writer -> Critic -> Timer Gate -> Writer pattern
- Follow ChatDev_v1 loop pattern: input -> gate (trigger) -> gate -> output (trigger)
- Start both branches simultaneously in start nodes

This ensures the timer gates are properly triggered and loops execute correctly.
@LaansDole LaansDole force-pushed the feature/add-loop-timer branch from 1fd24a4 to 4c59283 Compare February 8, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant