feat(examples): refine flow examples with clean import structure#51
Merged
feat(examples): refine flow examples with clean import structure#51
Conversation
- Add __init__.py to flow directories for easy imports
- Enable clean imports like
- Update READMEs to document new import structure
- Improve modularity for major pipeline integration
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
WinstonLiyt
approved these changes
Aug 14, 2025
keli-wen
added a commit
that referenced
this pull request
Sep 18, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR refines the flow examples structure by adding
__init__.pyfiles to each customized flow directory, enabling cleaner and more modular imports for major pipelines. #36Key Changes
Added
__init__.pyfiles to flow directories:examples/flow/01_custom_flow/flows/greeting_flow/__init__.py- exportsGreetingFlowandGreetingFlowConfigexamples/flow/02_summary_flow/flows/summary_flow/__init__.py- exportsDemoSummaryFlowUpdated import structure in pipeline files:
from flows.greeting_flow.flow import GreetingFlowtofrom flows.greeting_flow import GreetingFlowEnhanced documentation across all README files:
__init__.pyfilesBenefits
from flows.greeting_flow import GreetingFlowBefore/After Import Comparison
Before:
After:
This change makes the flow system more intuitive and follows Python packaging best practices.
Checklist
feat(examples): refine flow examples with clean import structure