ref: prompt and parser component#8305
Conversation
WalkthroughThis change updates both backend and frontend components related to "Prompt" and "Parser" functionality. It standardizes the icon and output display name for Prompt components across Python and JSON files, and reorders as well as simplifies the input configuration and description for Parser components. Test selectors are also updated to match these naming changes. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant UI
participant Backend
User->>UI: Interacts with Prompt/Parser node
UI->>Backend: Sends input data/config (with new icon, output name, input order)
Backend->>Backend: ParserComponent processes input (new order/description)
Backend->>Backend: PromptComponent returns output ("Prompt", icon "braces")
Backend->>UI: Returns processed result/output
UI->>User: Displays updated node with new icon/output label
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (27)
⏰ Context from checks skipped due to timeout of 90000ms (11)
🔇 Additional comments (83)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 1
🔭 Outside diff range comments (1)
src/backend/base/langflow/initial_setup/starter_projects/Portfolio Website Code Generator.json (1)
2110-2115:⚠️ Potential issueField order keys mismatch input names.
The
field_orderis set to["stringify", "template", "input_data", "sep"]but the inputs are named"mode","pattern","input_data", and"sep". This discrepancy will break the UI ordering and dynamic show/hide logic. Please update it to use the actual input names, for example:- "field_order": ["stringify", "template", "input_data", "sep"], + "field_order": ["input_data", "mode", "pattern", "sep"],
🧹 Nitpick comments (1)
src/backend/base/langflow/initial_setup/starter_projects/Memory Chatbot.json (1)
1117-1124: Embedded PromptComponent code reflects naming changes
ThePromptComponentclass in the embedded code now usesdisplay_name = "Prompt"andicon = "braces", and its output is correctly labeled"Prompt". Everything aligns with the JSON node properties.Optional: For consistency with other components, you may remove the type annotation on
display_name:-class PromptComponent(Component): - display_name: str = "Prompt" +class PromptComponent(Component): + display_name = "Prompt"
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (27)
src/backend/base/langflow/components/processing/parser.py(1 hunks)src/backend/base/langflow/components/prompts/prompt.py(2 hunks)src/backend/base/langflow/initial_setup/starter_projects/Basic Prompt Chaining.json(9 hunks)src/backend/base/langflow/initial_setup/starter_projects/Basic Prompting.json(2 hunks)src/backend/base/langflow/initial_setup/starter_projects/Blog Writer.json(5 hunks)src/backend/base/langflow/initial_setup/starter_projects/Custom Component Maker.json(3 hunks)src/backend/base/langflow/initial_setup/starter_projects/Diet Analysis.json(3 hunks)src/backend/base/langflow/initial_setup/starter_projects/Document Q&A.json(3 hunks)src/backend/base/langflow/initial_setup/starter_projects/Financial Agent.json(6 hunks)src/backend/base/langflow/initial_setup/starter_projects/Hybrid Search RAG.json(4 hunks)src/backend/base/langflow/initial_setup/starter_projects/Image Sentiment Analysis.json(3 hunks)src/backend/base/langflow/initial_setup/starter_projects/Instagram Copywriter.json(9 hunks)src/backend/base/langflow/initial_setup/starter_projects/Invoice Summarizer.json(3 hunks)src/backend/base/langflow/initial_setup/starter_projects/Meeting Summary.json(6 hunks)src/backend/base/langflow/initial_setup/starter_projects/Memory Chatbot.json(3 hunks)src/backend/base/langflow/initial_setup/starter_projects/Portfolio Website Code Generator.json(2 hunks)src/backend/base/langflow/initial_setup/starter_projects/Research Agent.json(12 hunks)src/backend/base/langflow/initial_setup/starter_projects/Research Translation Loop.json(2 hunks)src/backend/base/langflow/initial_setup/starter_projects/SEO Keyword Generator.json(6 hunks)src/backend/base/langflow/initial_setup/starter_projects/SaaS Pricing.json(3 hunks)src/backend/base/langflow/initial_setup/starter_projects/Sequential Tasks Agents.json(9 hunks)src/backend/base/langflow/initial_setup/starter_projects/Text Sentiment Analysis.json(9 hunks)src/backend/base/langflow/initial_setup/starter_projects/Twitter Thread Generator.json(3 hunks)src/backend/base/langflow/initial_setup/starter_projects/Vector Store RAG.json(3 hunks)src/backend/base/langflow/initial_setup/starter_projects/Youtube Analysis.json(3 hunks)src/frontend/tests/core/integrations/decisionFlow.spec.ts(1 hunks)src/frontend/tests/extended/regression/generalBugs-shard-10.spec.ts(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (15)
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 5/10
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 9/10
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 8/10
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 7/10
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 1/10
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 2/10
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 10/10
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 6/10
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 4/10
- GitHub Check: Run Frontend Tests / Playwright Tests - Shard 3/10
- GitHub Check: Run Backend Tests / Unit Tests - Python 3.10 - Group 5
- GitHub Check: Run Backend Tests / Unit Tests - Python 3.10 - Group 2
- GitHub Check: Run Backend Tests / Unit Tests - Python 3.10 - Group 3
- GitHub Check: Run Backend Tests / Unit Tests - Python 3.10 - Group 4
- GitHub Check: Run Backend Tests / Unit Tests - Python 3.10 - Group 1
🔇 Additional comments (89)
src/frontend/tests/extended/regression/generalBugs-shard-10.spec.ts (1)
38-38: LGTM! Test selector correctly updated.The selector change aligns with the backend refactoring where the Prompt component's output display name was changed from "Prompt Message" to "Prompt". This ensures the test continues to function correctly.
src/frontend/tests/core/integrations/decisionFlow.spec.ts (1)
284-284: LGTM! Consistent test selector update.This selector change is consistent with the same update in the other test file and properly reflects the backend Prompt component's display name change.
src/backend/base/langflow/components/prompts/prompt.py (2)
12-12: LGTM! Icon standardization improves consistency.The icon change from "prompts" to "braces" better represents the component's functionality with template variables and aligns with the standardization effort across the codebase.
28-28: LGTM! Simplified display name improves clarity.The change from "Prompt Message" to "Prompt" reduces verbosity while maintaining clarity. This change is properly reflected in the corresponding frontend test selector updates.
src/backend/base/langflow/components/processing/parser.py (3)
17-17: LGTM! Simplified description improves clarity.The concise description "Extracts text using a template." effectively communicates the component's purpose without unnecessary verbosity.
18-18: LGTM! Icon standardization maintains consistency.The "braces" icon is appropriate for the Parser component since it works with template variables, maintaining consistency with the Prompt component icon changes.
21-27: LGTM! Input reordering improves user experience.Moving the primary "input_data" HandleInput to the beginning of the inputs list makes logical sense, as users typically want to connect the main data source before configuring other parameters.
src/backend/base/langflow/initial_setup/starter_projects/Vector Store RAG.json (3)
606-606: Update component icon from “prompts” to “braces”
This change correctly swaps the Prompt component’s icon to match the new design system. It’s consistent with the PR objective to standardize on “braces.”
619-619: Simplify output display name to “Prompt”
Changing the display_name from “Prompt Message” to “Prompt” aligns the UI terminology and removes redundancy. Good clarity improvement.
648-650: Sync embedded Python metadata with JSON updates
ThePromptComponentclass’sdisplay_nameandiconfields have been updated to reflect the JSON changes, ensuring consistency between backend code and starter‐project configuration.src/backend/base/langflow/initial_setup/starter_projects/Document Q&A.json (1)
1063-1063:Details
✅ Verification successful
Standardize Prompt icon to "braces"
The icon for the Prompt node has been updated from"prompts"to"braces", aligning with the new styling conventions across all components.Please verify there are no remaining references to the old
"prompts"icon in other starter project files:
🏁 Script executed:
#!/bin/bash # Find any starter project JSON still using the old icon rg -l '"icon": "prompts"' -g 'src/backend/base/langflow/initial_setup/starter_projects/*.json'Length of output: 96
Standardize Prompt icon to "braces"
The icon for the Prompt node has been updated from"prompts"to"braces", aligning with the new styling conventions across all components.
All starter project JSON files have been verified; no remaining references to"prompts"were found.src/backend/base/langflow/initial_setup/starter_projects/SaaS Pricing.json (3)
116-116: Standardize Prompt icon
Updated the componenticonproperty from"prompts"to"braces". This aligns with the PR objective and standardizes the UI across all starter projects.
125-125: Simplify output display name
Changed the outputdisplay_namefrom"Prompt Message"to"Prompt"to match the updated naming convention. Consistent with the PR objectives and other JSON starter projects.
155-155: Sync embedded component code
The embeddedPromptComponentclass in the"value"string now usesicon = "braces"andOutput(display_name="Prompt"), matching the JSON metadata. Verify there are no remaining references to the old icon or display name within this code snippet.src/backend/base/langflow/initial_setup/starter_projects/Basic Prompting.json (3)
395-395: Approve icon update for Prompt node
The node-leveliconfield has been updated from"prompts"to"braces", matching the change in the corePromptComponent.
403-403: Approve output display_name update
The output display name has been standardized to"Prompt", replacing the previous"Prompt Message", and aligns with the updated component API.
433-433: Approve embedded PromptComponent code update
The JSON-embedded Python code block reflects the updatedPromptComponentclass (icon = "braces"and output signature). The change is consistent and correctly encoded.src/backend/base/langflow/initial_setup/starter_projects/Sequential Tasks Agents.json (7)
1586-1586: Icon standardized to "braces"
The Prompt node icon has been updated from"prompts"to"braces"for visual consistency with other components.
1599-1599: Output display_name simplified to "Prompt"
The output display name for the Prompt node has been changed from"Prompt Message"to"Prompt", making it more concise.
1629-1629: Embedded PromptComponent code updated
The embedded Python code forPromptComponentnow usesicon = "braces"and sets its outputdisplay_nameto"Prompt", matching the JSON changes.
1719-1719: Icon standardized to "braces" (second instance)
Consistent update of the Prompt icon in the second Prompt node.
1732-1732: Output display_name simplified to "Prompt" (second instance)
Consistent naming for the second Prompt node’s output.
1855-1855: Icon standardized to "braces" (third instance)
Consistent update of the Prompt icon in the third Prompt node.
1868-1868: Output display_name simplified to "Prompt" (third instance)
Consistent naming for the third Prompt node’s output.src/backend/base/langflow/initial_setup/starter_projects/SEO Keyword Generator.json (5)
121-121: Icon property updated correctly
Changed theiconvalue from"prompts"to"braces"for the Prompt node. This aligns with the updated design tokens.
130-130: Output display_name simplified
Modified the outputdisplay_namefrom"Prompt Message"to"Prompt", which improves consistency across components.
160-160: Embedded Python code synchronization
Thevaluefield now embeds the updatedPromptComponentdefinition (usingicon = "braces"andOutput(display_name="Prompt")). Verify that the JSON string escapes and formatting remain valid so the code can be deserialized correctly.
421-421: Duplicate node icon update
Second instance of the Prompt node also hasiconupdated to"braces", ensuring consistency in duplicated nodes.
430-430: Duplicate output display_name update
Second instance of the output has itsdisplay_namechanged to"Prompt", matching the primary Prompt node.src/backend/base/langflow/initial_setup/starter_projects/Memory Chatbot.json (2)
1074-1074: Update icon for Prompt node
The node's"icon"property has been correctly switched from"prompts"to"braces"to standardize the Prompt component's icon across starter projects.
1087-1087: Standardize Prompt output display name
The output display name has been updated from"Prompt Message"to"Prompt"as intended, ensuring consistency with UI labels and tests.src/backend/base/langflow/initial_setup/starter_projects/Custom Component Maker.json (3)
497-497: Standardized icon value on Prompt node
Theiconproperty has been updated from"prompts"to"braces"to match the new visual standard for Prompt components across the project. This aligns with the PR objectives and ensures consistency.
506-506: Updated output display name for Prompt node
The output display name has been simplified from"Prompt Message"to"Prompt", ensuring uniform naming in both backend definitions and frontend tests.
651-651: Aligned embedded PromptComponent Python code
Within the embedded component template, thePromptComponentclass now declaresicon = "braces"and usesOutput(display_name="Prompt", ...), mirroring the JSON-level updates for complete consistency.src/backend/base/langflow/initial_setup/starter_projects/Meeting Summary.json (6)
847-847: Icon updated to braces
The Prompt component’siconproperty has been changed from"prompts"to"braces", aligning with the updated visual naming conventions.
861-861: Output display name updated to “Prompt”
The Prompt component’s outputdisplay_nameis now"Prompt"instead of"Prompt Message", matching the PR objectives and corresponding frontend test updates.
891-954: Embedded PromptComponent class updated consistently
The Python code string in the JSON now definesPromptComponentwith the standardizeddisplay_name,icon, andOutput(display_name="Prompt"). Core logic remains untouched.
2292-2292: Icon updated to braces (second node)
The second Prompt node’siconproperty has likewise been switched to"braces", ensuring consistency across all Prompt nodes.
2306-2306: Output display name updated to “Prompt” (second node)
The second Prompt node’s outputdisplay_namenow reads"Prompt", in line with the unified naming scheme.
2336-2425: Second embedded PromptComponent class updated consistently
The embedded Python code for the second Prompt node reflects the samedisplay_name,icon, and output renaming. No changes to business logic.src/backend/base/langflow/initial_setup/starter_projects/Image Sentiment Analysis.json (3)
841-841: Updated icon for Prompt node
Changediconfrom"prompts"to"braces"for the Prompt component—this aligns with the standardized icon convention across starter projects.
850-850: Standardized output display name
Updated the prompt outputdisplay_namefrom"Prompt Message"to"Prompt"to match the new naming scheme consistently.
880-880: Embedded PromptComponent code updated
ThePromptComponentclass in the JSON template now usesicon = "braces"andOutput(display_name="Prompt", ...). This mirrors the external metadata changes and maintains consistency.src/backend/base/langflow/initial_setup/starter_projects/Financial Agent.json (3)
3688-3689: Standardize Prompt node icon
The node’s"icon"property has been updated from"prompts"to"braces"to match the standardized icon set for Prompt components. This is purely metadata and does not affect execution.
3701-3702: Update Prompt output display name
The output’s"display_name"has been changed from"Prompt Message"to"Prompt"for consistency across starter projects. This is a cosmetic update only.
3732-3733: Mirror metadata updates in component code
Inside the embeddedPromptComponentclass, theiconattribute is now set to"braces", and theOutputdisplay name has been updated to"Prompt". These align the code snippet with the JSON metadata changes and have no functional impact.src/backend/base/langflow/initial_setup/starter_projects/Twitter Thread Generator.json (3)
1549-1550: Ensure the “braces” icon is supported in the UIThe JSON node definition’s
"icon"property was updated from"prompts"to"braces". Please verify that thebracesicon exists in the frontend icon library to prevent broken or missing icons at runtime.
1558-1559: Update output display_name to “Prompt”The output’s
"display_name"was changed from"Prompt Message"to"Prompt"for standardization across starter projects. Confirm that all downstream templates, frontend selectors, and tests have been updated to reference"Prompt"instead of the old label.
1727-1727: Align embeddedPromptComponentcode with JSON changesThe embedded Python code now sets
icon = "braces"and usesOutput(display_name="Prompt", ...), matching the JSON configuration. Implementation looks correct and consistent.src/backend/base/langflow/initial_setup/starter_projects/Instagram Copywriter.json (3)
612-613: Icon and output display name updated for Prompt component
The firstPromptnode now uses the"braces"icon and its output display name has been standardized to"Prompt", aligning with the updated conventions.Also applies to: 621-622
891-892: Standardize icon and output naming in second Prompt component
Applied the"braces"icon and changed the output display name to"Prompt"for the secondPromptnode, ensuring consistency across components.Also applies to: 900-901
1967-1968: Apply icon and display name updates to third Prompt component
The thirdPromptnode has also been updated to use the"braces"icon and its output display name set to"Prompt", matching the project-wide standard.Also applies to: 1976-1977
src/backend/base/langflow/initial_setup/starter_projects/Diet Analysis.json (2)
424-424: Standardize Prompt component icon
The icon property for the Prompt node has been updated from"prompts"to"braces", aligning this starter project with the core component’s change.
438-438: Update Prompt output display_name
The output’sdisplay_namehas been changed from"Prompt Message"to"Prompt"to maintain consistency across all Prompt components.src/backend/base/langflow/initial_setup/starter_projects/Basic Prompt Chaining.json (3)
219-229: Standardize Prompt component icon and output name
Theiconfor the Prompt node has been updated from"prompts"to"braces", and the outputdisplay_namehas been simplified from"Prompt Message"to"Prompt". These changes align with the updated component naming conventions.
945-955: Standardize Prompt component icon and output name
Theiconfor the Prompt node has been updated from"prompts"to"braces", and the outputdisplay_namehas been simplified from"Prompt Message"to"Prompt". These changes align with the updated component naming conventions.
1072-1082: Standardize Prompt component icon and output name
Theiconfor the Prompt node has been updated from"prompts"to"braces", and the outputdisplay_namehas been simplified from"Prompt Message"to"Prompt". These changes align with the updated component naming conventions.src/backend/base/langflow/initial_setup/starter_projects/Research Agent.json (4)
315-324: Consistent icon and output display_name update for first Prompt node
Theiconhas been updated from"prompts"to"braces", and the output’sdisplay_namehas been simplified from"Prompt Message"to"Prompt". This matches the corePromptComponentchanges and ensures uniformity in the flow.
764-773: Consistent icon and output display_name update for second Prompt node
Similarly, theiconand outputdisplay_namehere have been updated to"braces"and"Prompt"respectively, keeping this node in sync with the overall Prompt component standard.
1596-1605: Consistent icon and output display_name update for third Prompt node
Again, theiconchange to"braces"and the outputdisplay_namechange to"Prompt"are applied correctly for this instance of the Prompt component.
1723-1732: Consistent icon and output display_name update for fourth Prompt node
The updates toicon: "braces"anddisplay_name: "Prompt"for the output are correctly applied here as well, ensuring all Prompt nodes follow the same naming conventions.src/backend/base/langflow/initial_setup/starter_projects/Invoice Summarizer.json (2)
172-172: Standardize Prompt component icon to “braces”
This change aligns the JSON starter project with the updatedPromptComponent.iconin the backend.
185-185: Simplify Prompt output display name to “Prompt”
Matches the newOutput(display_name="Prompt", …)in thePromptComponentand keeps consistency across starter projects.src/backend/base/langflow/initial_setup/starter_projects/Youtube Analysis.json (3)
1814-1814: Standardize Prompt component icon
Theiconproperty for the Prompt node has been updated from"prompts"to"braces", aligning with the new icon naming convention across all starter projects.
1828-1828: Simplify Prompt output display name
The outputdisplay_namehas been changed from"Prompt Message"to"Prompt"for clarity and consistency with other components.
1870-1870:Details
✅ Verification successful
Sync embedded PromptComponent code
The embedded Pythoncodeblock now reflectsicon = "braces"andOutput(display_name="Prompt"). Ensure the JSON-encoded code string remains valid and that no unintended functional changes were introduced.
🏁 Script executed:
#!/bin/bash # Verify Prompt component icon and display_name in JSON jq -r '.data.nodes[] | select(.data.id=="Prompt-UAMac").data.node.icon' "src/backend/base/langflow/initial_setup/starter_projects/Youtube Analysis.json" jq -r '.data.nodes[] | select(.data.id=="Prompt-UAMac").data.node.outputs[] | select(.name=="prompt").display_name' "src/backend/base/langflow/initial_setup/starter_projects/Youtube Analysis.json"Length of output: 367
Verified Prompt component configuration
The JSON matches the embedded Python block:
iconis set tobracespromptoutput’sdisplay_nameisPromptThe JSON string remains valid and no unintended functional changes were introduced.
src/backend/base/langflow/initial_setup/starter_projects/Text Sentiment Analysis.json (9)
537-537: Standardize Prompt component icon
Changed the Prompt node’siconfrom"prompts"to"braces"to align with the updated naming convention.
551-551: Simplify Prompt output display name
Updated the Prompt component’s outputdisplay_namefrom"Prompt Message"to"Prompt"for consistency across flows.
581-581: Update embedded PromptComponent code block
Verified that the embeddedPromptComponentclass’s code string now usesicon = "braces"andOutput(display_name="Prompt"), matching the JSON metadata changes.
690-690: Standardize Prompt component icon
Changed the Prompt node’siconfrom"prompts"to"braces"to align with the updated naming convention.
704-704: Simplify Prompt output display name
Updated the Prompt component’s outputdisplay_namefrom"Prompt Message"to"Prompt"for consistency across flows.
734-734: Update embedded PromptComponent code block
Verified that the embeddedPromptComponentclass’s code string now usesicon = "braces"andOutput(display_name="Prompt"), matching the JSON metadata changes.
1623-1623: Standardize Prompt component icon
Changed the Prompt node’siconfrom"prompts"to"braces"to align with the updated naming convention.
1637-1637: Simplify Prompt output display name
Updated the Prompt component’s outputdisplay_namefrom"Prompt Message"to"Prompt"for consistency across flows.
1667-1667: Update embedded PromptComponent code block
Verified that the embeddedPromptComponentclass’s code string now usesicon = "braces"andOutput(display_name="Prompt"), matching the JSON metadata changes.src/backend/base/langflow/initial_setup/starter_projects/Hybrid Search RAG.json (4)
2037-2037: Simplified description for ParserComponent – ✅
The node’sdescriptionhas been trimmed to "Extracts text using a template.", which aligns neatly with the core component’s simplified description and improves clarity.
2088-2088: Reordered inputs in embedded ParserComponent code – verify
The Python snippet now definesinputs = [input_data, mode, pattern, sep], matching the intended reordering. Please confirm this change aligns with the component’s runtime behavior in the starter flow.
2516-2516: Consistent description update for second ParserComponent – ✅
The second instance’sdescriptionhas been updated identically to the first ("Extracts text using a template."), ensuring uniformity across nodes.
2552-2552: Embedded code snippet check for second ParserComponent – verify
Make sure the code block under this ParserComponent also reflects the input reordering and matches the latest core implementation.src/backend/base/langflow/initial_setup/starter_projects/Blog Writer.json (6)
176-176: Prompt node icon updated
Changed the Prompt node’siconfrom"prompts"to"braces"to match the core component. Ensure this is consistent across all starter projects and frontend icon mappings.
185-185: Prompt output label standardized
Updated the Prompt output’sdisplay_namefrom"Prompt Message"to"Prompt". Confirm that frontend tests and selectors are updated accordingly to use the new label.
215-215: Verify embedded PromptComponent code
The JSON’s embeddedPromptComponentcode block was refreshed. Make sure it matches the latestsrc/backend/base/langflow/components/prompts/prompt.pydefinition (icon, outputs, method names, imports).
1156-1156: Parser description simplified
Replaced the verbose Parser description with “Extracts text using a template.” This aligns with core component docs.
1167-1167: Parser node icon updated
Changed the Parser node’siconto"braces"for consistency with the Prompt icon update. Ensure all starter projects use the same icon mapping.
1208-1208: Review embedded ParserComponent code
The ParserComponent’s code block was updated (inputs reordered, imports simplified). Verify that the JSON’s UIfield_orderand the classinputsdefinition remain in sync so that the node renders fields in the intended order.src/backend/base/langflow/initial_setup/starter_projects/Research Translation Loop.json (2)
1483-1483: Streamline ParserComponent description
The description has been concise to “Extracts text using a template,” which improves readability and aligns with the updated backend definition ofParserComponent.
1536-1536: Sync ParserComponent template code with implementation
The embedded Python snippet now reflects the reordered inputs (input_data,mode,pattern,sep) and streamlined parsing logic. This ensures the starter‐project node matches the updatedParserComponentin the backend.src/backend/base/langflow/initial_setup/starter_projects/Portfolio Website Code Generator.json (2)
2106-2106: Description simplified appropriately.The new description
"Extracts text using a template."is concise and aligns with the changes in other starter projects. This improves readability and consistency.
2159-2238: Verify the updated ParserComponent template code.The component template value has been overhauled—introducing
_clean_args, refinedconvert_to_string, and dynamic pattern visibility. Please ensure:
- DataFrame vs Data handling works as expected.
- The
"Stringify"mode returns aMessageobject.- The
clean_datatoggle correctly cleans rows and lines.Also confirm that any downstream starter projects or tests referencing
ParserComponentalign with these changes.
| "allows_loop": false, | ||
| "cache": true, | ||
| "display_name": "Prompt Message", | ||
| "display_name": "Prompt", |
There was a problem hiding this comment.
💡 Verification agent
🧩 Analysis chain
Update Prompt output display name to "Prompt"
The output display name has been changed from "Prompt Message" to "Prompt" for a cleaner, consistent UX.
Ensure that all frontend selectors, tests, and documentation referencing "Prompt Message" have been updated accordingly:
🏁 Script executed:
#!/bin/bash
# Search for any lingering references to the old display name
rg -l 'Prompt Message' -g 'src/**/*'Length of output: 185
Update lingering test references from “Prompt Message” to “Prompt”
Found instances of the old display name in test data and assets—these need to be updated to match the change:
• src/backend/tests/data/MemoryChatbotNoLLM.json
• src/frontend/tests/assets/outdated_flow.json
• src/frontend/tests/assets/flow_test_drag_and_drop.json
Please replace all occurrences of "Prompt Message" with "Prompt" in these files and rerun the test suite to confirm there are no failures.
🤖 Prompt for AI Agents
In src/backend/base/langflow/initial_setup/starter_projects/Document Q&A.json at
line 1076, the output display name was changed from "Prompt Message" to "Prompt"
for consistency. To fix the issue, update all references of "Prompt Message" to
"Prompt" in the test files src/backend/tests/data/MemoryChatbotNoLLM.json,
src/frontend/tests/assets/outdated_flow.json, and
src/frontend/tests/assets/flow_test_drag_and_drop.json. After making these
replacements, rerun the test suite to ensure no tests fail.
* update prompt component * template update * update parser * [autofix.ci] apply automated fixes * update in template --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Summary by CodeRabbit
Style
Bug Fixes
Refactor