Skip to content

Conversation

@lreynaldoj
Copy link

This PR enhances the workflow-strategy branch with additional control flow examples and implementations:

Changes

  • Added mapping workflow example to control flows
  • Refactored control flow examples to define blocks directly in workflows
  • Added control flow examples and utility functions for Cue package

Purpose

These changes aim to improve the workflow control capabilities by providing more comprehensive examples and a cleaner implementation approach.

Related PR

This PR contributes to the changes in kaiban-ai#237

- Introduced new examples for various control flows: branch, parallel, sequential, do-until, do-while, and foreach.
- Created utility functions for block operations including math, parallel, branch, and loop blocks.
- Implemented logging and monitoring utilities to track workflow execution and block status.
- Enhanced the overall structure and organization of control flow examples for better clarity and usability.
- Removed utility functions for creating blocks and defined blocks directly within each control flow example (branch, parallel, sequential, do-until, do-while, foreach).
- Enhanced clarity and maintainability by consolidating block definitions with their respective workflows.
- Updated logging for block execution to ensure consistent output across examples.
- Introduced a new example demonstrating a mapping workflow using Cue, featuring multiply and add blocks.
- Defined block execution logic directly within the workflow for improved clarity and maintainability.
- Implemented logging for block execution to track input and output values during the workflow process.
- Introduced a new example demonstrating a mapping workflow using Cue, featuring multiply and add blocks.
- Defined block execution logic directly within the workflow for improved clarity and maintainability.
- Implemented logging for block execution to track input and output values during the workflow process.
- Introduced a new example demonstrating a suspend/resume workflow using Cue.
- Defined a suspend block that can pause execution and resume after a delay.
- Implemented logging to track workflow status and suspended step details.
- Enhanced example usage to illustrate the workflow's functionality and error handling.
anthonydevs17 pushed a commit that referenced this pull request Nov 21, 2025
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