-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add loop component 🎁🎄 #5429
Open
rodrigosnader
wants to merge
6
commits into
main
Choose a base branch
from
loop-component
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+89
−0
Conversation
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
dosubot
bot
added
size:M
This PR changes 30-99 lines, ignoring generated files.
enhancement
New feature or request
labels
Dec 24, 2024
Oh, I wonder how it would work, can't wait to test it :-) Thanks for great work! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
github-actions
bot
added
enhancement
New feature or request
and removed
enhancement
New feature or request
labels
Jan 6, 2025
The component works well in UI, Test case: #5615 |
- Renamed 'loop' input to 'loop_input' for clarity. - Simplified logic for checking loop input and aggregating results. - Enhanced type hints for better code readability and maintainability.
ogabrielluiz
force-pushed
the
loop-component
branch
from
January 10, 2025 15:56
e839deb
to
2385623
Compare
github-actions
bot
added
enhancement
New feature or request
and removed
enhancement
New feature or request
labels
Jan 10, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
This pull request introduces a new component,
LoopComponent
, to the logic module in the backend. The changes include adding the new component to the module's imports, registration, and defining the component's functionality.New component addition:
src/backend/base/langflow/components/logic/__init__.py
: AddedLoopComponent
to the list of imports and registered it in the__all__
list. [1] [2]Definition of
LoopComponent
:src/backend/base/langflow/components/logic/loop.py
: Defined theLoopComponent
class, which iterates over a list ofData
objects, outputting one item at a time and aggregating results. This includes methods for initializing data, outputting items, and returning aggregated results.