Commit graph

15,597 commits

Author SHA1 Message Date
Cristhian Zanforlin Lousa
f4a07fac69
feat: add customization components (#7419)
*  (webhookFieldComponent): Add support for ENABLE_DATASTAX_LANGFLOW feature flag to conditionally show generate token button
🐛 (use-get-config): Set default value for webhook polling interval if not provided in data
♻️ (custom-secret-key-modal-button): Refactor to pass modal props as a separate object to improve readability and maintainability
🔧 (use-generate-token): Add new file for generating token function
🔧 (secretKeyModal): Refactor to use generate token function based on ENABLE_DATASTAX_LANGFLOW flag and separate modal props into a dedicated interface

*  (constants.ts): add default polling interval and timeout constants for better code readability and maintainability
♻️ (use-get-config.ts): refactor to use the newly added default constants for polling interval and timeout to improve code consistency and reduce duplication

* 🐛 (typescript_test.yml): update the maximum shard count calculation to be 25 instead of 10 to improve test distribution and efficiency

* ⚙️ (typescript_test.yml): adjust optimal shard count calculation to ensure a maximum of 10 shards for test execution
♻️ (index.tsx): refactor modalConfigProps assignment to handle cases where modalProps is null or undefined

---------

Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
2025-04-03 18:56:46 +00:00
Mike Fortman
59f74e894f
fix: move home assistants to bundle (#7430)
* move home assistants to bundle

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-03 18:34:28 +00:00
Mendon Kissling
225eb8c7d7
docs: mcp integration claude path (#7409)
* clarify-path-instructions

* will

* Apply suggestions from code review

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* paths-numbered-steps-not-bullets

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2025-04-03 17:15:32 +00:00
Jason Liu
cd04a5e123
fix: Fixed typo in mcp host setup (#7423)
Update mcp.py

-fix: holst name error,alter :holst->host
2025-04-03 13:12:44 +00:00
Lucas Oliveira
4dcbd7c168
fix: removed handle from sortableinput and connectinput (#7404)
Added sortableList and connect to frontend types constant
2025-04-03 12:57:53 +00:00
Garrett George
9ec37f92c9
Fix: Fixes bug with RedisCache init and serialization (#7092)
* Fixes bug with RedisCache init and serialization

* [autofix.ci] apply automated fixes

* Removes duplicate get_service call

---------

Co-authored-by: Garrett George <ggeorge@pros.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-02 20:28:17 +00:00
Mendon Kissling
f261b739a9
docs: update arize phoenix variable (#7383)
* phoenix-api-key

* space

* add-tabs

* finish-sentence

* numbering

* code-review
2025-04-02 20:26:17 +00:00
Lucas Oliveira
f11a89c701
fix: removed dependency from useEffect that causes chat input to be cleared (#7393)
* Removed flowPool from dependencies of function that clears chat input

* remove console.log

---------

Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
2025-04-02 20:03:54 +00:00
dependabot[bot]
ea6022d757
build(deps): bump image-size from 1.2.0 to 1.2.1 in /docs (#7408)
Bumps [image-size](https://github.com/image-size/image-size) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/image-size/image-size/releases)
- [Commits](https://github.com/image-size/image-size/compare/v1.2.0...v1.2.1)

---
updated-dependencies:
- dependency-name: image-size
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-02 19:58:12 +00:00
Deon Sanchez
b0a9b6e8ab
fix: fixes dropdown refreshList not working properly (#7395)
* feat: add nodeId, nodeClass, and handleNodeClass props to dropdown and string render components

* fix: remove extraneous flag from package-lock.json and add nodeId, nodeClass, handleNodeClass props to ParameterRenderComponent

---------

Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
2025-04-02 19:32:52 +00:00
Gabriel Luiz Freitas Almeida
43bdfdc7ac
feat: Enhance StructuredOutputComponent and add trustcall dependency (#7249)
* chore: Add trustcall dependency to pyproject.toml

* fix: Update bind_tools method to include optional tool_choice parameter for enhanced flexibility in tool binding

* refactor: Update StructuredOutputComponent to utilize create_extractor for structured output and enhance result handling

* Replaced direct call to with_structured_output with create_extractor for improved flexibility.
* Added handling for "responses" in result to ensure proper data extraction.
* Introduced is_last_pydantic_output_parser method to check parser type in structured output processing.

* test: Add comprehensive tests for StructuredOutputComponent with OpenAI and NVIDIA models

* Implemented multiple test cases for StructuredOutputComponent using real OpenAI and NVIDIA models.
* Added tests for simple, complex, and nested schemas to validate structured output extraction.
* Included error handling tests to ensure proper response to model limitations and API errors.
* Utilized pytest for conditional test execution based on environment variables for API keys.

* refactor: Update JSON starter projects to include StructuredOutputComponent with enhanced input and output handling

* Integrated StructuredOutputComponent into Financial Report Parser and Portfolio Website Code Generator starter projects.
* Updated input fields to include detailed descriptions and requirements for structured output generation.
* Ensured consistent schema definitions and improved error handling for model limitations.
* Enhanced documentation for better clarity on component usage and expected outputs.

* [autofix.ci] apply automated fixes

* refactor: Remove unused PydanticOutputParser method from StructuredOutputComponent

* Deleted is_last_pydantic_output_parser method as it was no longer necessary for structured output processing.
* Cleaned up the code to enhance maintainability and readability.

* refactor: Update JSON starter projects to enhance StructuredOutputComponent integration

* Refactored Financial Report Parser and Portfolio Website Code Generator to streamline the StructuredOutputComponent.
* Removed unused PydanticOutputParser method to improve code clarity and maintainability.
* Enhanced input descriptions and requirements for structured output generation.
* Improved error handling and documentation for better user guidance.

* [autofix.ci] apply automated fixes

* refactor: Simplify response handling in StructuredOutputComponent

* Updated the response extraction logic to use the walrus operator for cleaner code.
* Improved readability by replacing the previous conditional check with a more concise approach.
* Ensured consistent handling of structured output results.

* [autofix.ci] apply automated fixes

* refactor: Remove unnecessary TYPE_CHECKING import and simplify type casting in StructuredOutputComponent

* Eliminated the TYPE_CHECKING import for improved clarity.
* Simplified the type casting of the language model in the response extraction logic.
* Enhanced code readability and maintainability.

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* refactor: reorder response handling in StructuredOutputComponent for clarity

* refactor: unify StructuredOutputComponent code across multiple starter projects for consistency

* Standardized the implementation of StructuredOutputComponent in Financial Report Parser, Image Sentiment Analysis, Market Research, and Portfolio Website Code Generator.
* Enhanced code clarity and maintainability by ensuring uniformity in input and output definitions across these components.

* refactor: update build_structured_output method in StructuredOutputComponent to include text_key

* Modified the build_structured_output method to return a Data object with a text_key for improved clarity in output structure.
* Ensured consistency across various starter projects by aligning the output format of StructuredOutputComponent.

* [autofix.ci] apply automated fixes

* 🔧 (structured_output.py): refactor create_extractor function to support structured data extraction in a specific format specified by schema_name
💡 (structured_output.py): add tool_description variable to provide a description for the structured data extraction tool

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* ♻️ (structured_output.py): refactor code to simplify the creation of extractor with tools parameter and remove unnecessary tool_description and schema_name variables.

* [autofix.ci] apply automated fixes

*  (structured_output.py): enhance documentation by adding a dynamic docstring to the output model creation, improving clarity on the schema's purpose.

*  (structured_output.py): update structured output component across multiple starter projects to enhance consistency and clarity in output schema definitions. Improved documentation and dynamic docstring integration for better understanding of the structured data extraction process.

* 🔧 (typescript_test.yml): enhance test command by adding retries to Playwright tests for improved stability and reliability during CI runs. Cleaned up whitespace for better readability.

* feat: add sample resume for testing and update test to use new file

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
2025-04-02 18:50:28 +00:00
Lucas Oliveira
0d00fe8f12
fix: add correct amber colors and button design (#7413)
* Fix amber color

* Fix button and voice assistant button to use correct design and colors

* Fixed button design to include bg

* remove bg definition from voice assistant
2025-04-02 18:41:01 +00:00
Deon Sanchez
eed0a5c404
fix: Update Composio icon (#7407)
fix: update Composio icon dimensions and simplify SVG structure
2025-04-02 15:58:09 +00:00
Gabriel Luiz Freitas Almeida
aa49028fae
chore: bump langflow for 1.3.1 (#7392)
* bump langflow and langflow-base

* bump langflow frontend
2025-04-01 20:18:11 +00:00
Ítalo Johnny
31f95820d6
fix: typo in Alembic enum type declaration (#7380)
fix: typo in alembic enum type
2025-04-01 19:49:02 +00:00
YAMON.IO
e2d0ec865a
feat: add HomeAssistant components (#5803)
* Add Homeassistant Component

https://www.home-assistant.io/

* Add files via upload

* Add files via upload

* refactor: rename Home Assistant control and state listing components

Introduced two new components for Home Assistant integration:
1. HomeAssistantControl: A tool for controlling Home Assistant devices, allowing actions like turn_on, turn_off, and toggle with specified entity IDs.
2. ListHomeAssistantStates: A tool to retrieve the current states of Home Assistant entities, with optional filtering by domain.

Both components include necessary input fields and documentation links for user guidance.

* refactor: format Home Assistant SVG component and index file for consistency

* fix: spread props in Home Assistant SVG component for better customization

* refactor: update Home Assistant icon and improve SVG structure for better readability

---------

Co-authored-by: Nadir J <31660040+NadirJ@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-04-01 19:47:53 +00:00
Mendon Kissling
413e855d22
docs: move mcp up in integrations sidebar (#7389)
integrations-sidebar-move-mcp
2025-04-01 19:44:31 +00:00
Cristhian Zanforlin Lousa
c1c6bfa478
fix: centralize OpenAI voice definitions and fix voice array state loading in voice assistant (#7390)
 (constants.ts): add new constants for OpenAI voices to be used in the application
🔧 (audio-settings-dialog.tsx, voice-select.tsx, check-provider.ts, voiceStore.ts): import and use the newly added OpenAI voices constants in various components and store to improve maintainability and consistency in voice selection functionality
2025-04-01 19:22:25 +00:00
Lucas Oliveira
e58f764f3d
fix: handle backend connection errors on build (#7387)
* Changed polling build error handling

* Awaited pollBuildEvents for error to be thrown

* fix: enhance error handling and logging in get_flow_events_response

* fix: introduce custom exception for job queue not found error

* fix: replace ValueError with custom JobQueueNotFoundError in get_flow_events_response

* ️ Speed up method `JobQueueService.get_queue_data` by 1,704% in PR #7387 (`fix/be_connection_errors`) (#7388)

To optimize the `JobQueueService` implementation for better runtime and memory efficiency, we can implement some optimizations focused mainly on avoiding redundant checks and streamlining the handling of job queues. The most significant improvement that can be made without altering the functionality would be to remove redundant error logging and to optimize our coroutine handling.

Here is the optimized version.



### Key Changes.
1. **Removed Redundant Logging**: The error logging inside the `get_queue_data` method was removed. In a production system where performance is critical, it’s often better to rely on exception handling rather than logging each potential error before raising the exception, especially for common errors which can be anticipated by the system. Instead, we directly raise `JobQueueNotFoundError`.
   
2. **Streamlined Exception Handling**: Replaced the dictionary lookup and manual check with a try-except block, simplifying the code and ensuring that the KeyError is handled efficiently. This avoids checking the condition and then looking up the dictionary again.

3. **Retained Essential Functionality**: All core functionalities and method signatures have been maintained, ensuring that the refactored code behaves identically to before. This includes maintaining the `self._closed` check to prevent operations on a closed service and handling of exceptions to provide appropriate error messages.

By focusing on reducing redundant operations like extra logging and double-checking conditions, we improve the software’s runtime performance and maintain cleaner code.

Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>

* fix: improve error handling in JobQueueService by raising JobQueueNotFoundError with original exception context

* fix: update error message for job not found in test cases

* fix: enhance error handling in cancel_build by adding JobQueueNotFoundError exception

* fix: improve error handling in cancel_build by logging JobQueueNotFoundError details

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
2025-04-01 19:04:54 +00:00
Jordan Frazier
4162d11710
docs: fix localhost address for NIM docs (#7391)
Fix localhost address for NIM docs
2025-04-01 18:37:58 +00:00
Deon Sanchez
6dac50a3fc
feat: composio clean up 🧹 (#7371)
* feat: enhance animations and improve ListSelectionComponent functionality

- Added overlay and content animations to tailwind.config.mjs for smoother transitions.
- Updated ListSelectionComponent to reset search input when the dialog opens and improved item display styling.
- Refactored ConnectionComponent to utilize the new onSelection prop in ListSelectionComponent for better selection handling.

* fix: refine animation timings and enhance ListSelectionComponent layout

- Adjusted animation durations in tailwind.config.mjs for smoother transitions.
- Updated ListSelectionComponent to increase maximum height for improved content display.

* feat: enhance ListSelectionComponent with hover functionality and keyboard navigation

- Added mouse enter and leave handlers to ListItem for improved user interaction.
- Implemented keyboard navigation to select items using the Enter key when an item is hovered.
- Updated styling for ListItem to enhance visual feedback during hover states.

* feat: enhance ListItem with hover state and selection feedback

- Added hover state management to ListItem, allowing visual feedback when an item is hovered.
- Updated the rendering logic to display a "Select" label and an icon when the item is hovered.
- Improved the selection indicator for better user experience.

* feat: enhance ListSelectionComponent with keyboard navigation and focus management

- Added keyboard navigation to allow users to select items using the Arrow keys and Enter key.
- Implemented focus management to highlight the currently focused item in the list.
- Updated the component to reset focus and search input when the dialog opens or the filtered list changes.
- Improved item rendering to visually indicate focus state.

* feat: enhance ListSelectionComponent with improved keyboard navigation and hover management

- Added state management for keyboard navigation to improve user experience when selecting items.
- Implemented hover state clearing during keyboard navigation to prevent visual conflicts.
- Updated ListItem to conditionally apply hover styles based on keyboard navigation state.
- Enhanced focus management to reset when the filtered list changes or when the dialog opens.

* fix: refine animation timings and update ListSelectionComponent layout

- Adjusted clipPath values in tailwind.config.mjs for improved overlay animations.
- Increased animation durations for overlay and content transitions to enhance smoothness.
- Removed unnecessary padding in ListSelectionComponent for a cleaner layout.

* refactor: update ListSelectionComponent styles for improved visual consistency

- Changed text color and background color classes in ListItem to enhance readability and maintain design consistency.
- Updated icon color to align with the new text styling for better visual integration.

* [autofix.ci] apply automated fixes

* fix: improve ListSelectionComponent behavior and cleanup event listeners

* fix: adjust minimum height of ListSelectionComponent dialog for better usability

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-01 18:28:06 +00:00
Gabriel Luiz Freitas Almeida
7a87880e49
tests: add tests for streaming calls on api/v1/run (#7385)
* test: add concurrent streaming request tests for chat input type

Implemented a new test for concurrent streaming requests to the run endpoint with chat input type. Added a helper coroutine to validate the streaming response, ensuring proper event handling and result verification. This enhances the test coverage for the streaming functionality.

* refactor: replace session_getter with session_scope in API key CRUD operations

Updated the API key CRUD operations to utilize session_scope instead of session_getter for better session management. This change enhances the clarity and robustness of the database interactions.

* test: enhance assertions and error handling in streaming tests

Refactored assertions in the streaming tests to provide clearer error messages and improve robustness. Added error handling for JSON parsing in the stream response and ensured that all expected fields are validated with informative messages. Updated the test for concurrent streaming requests to use the correct project ID and modified input values for better clarity.

* test: refactor get_starter_project fixture for improved session management and data handling

Updated the `get_starter_project` fixture to use `session_scope` for better session management. Enhanced the flow data processing by replacing the OpenAI API key and ensuring the `load_from_db` flag is set to false, improving robustness and clarity in test setup.

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-01 17:31:26 +00:00
Mendon Kissling
9660d50867
docs: update global variable page (#7264)
* update-page

* h3-anchor

* set-fallback-value

* no-wills

* add-additional-method-for-json-list
2025-04-01 17:19:50 +00:00
Lucas Oliveira
ad0cc67bfc
fix: made global variables apply to fields not overwrite fields on refresh (#7368)
Added value check to not overwrite fields
2025-04-01 15:26:16 +00:00
dependabot[bot]
7691b0eb8d
build(deps):(deps): bump actions/checkout from 3 to 4 (#7379)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-01 14:32:17 +00:00
Lucas Oliveira
2b3ea5604c
fix: make sure public flow endpoint is correctly identified (#7381)
Fixed public flow api endpoint on frontend
2025-04-01 14:25:33 +00:00
Mendon Kissling
a04b0b19b4
docs: rename tutorials to sample-flows (#7307)
* builds-and-serves-no-errors

* Apply suggestions from code review

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* update-links

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2025-04-01 14:04:20 +00:00
Mendon Kissling
21870d3618
docs: update API and authentication pages (#7271)
* add-secure-server-guide

* auth-page-complete

* end-sentence

* end-sentence-remove-content

* docs: Update API keys documentation for clarity and structure

* docs: Enhance configuration documentation for API keys and secret key generation

* swap-end-sentences

* Apply suggestions from code review

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* fields-bold-and-ui-location

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2025-04-01 13:36:35 +00:00
Mendon Kissling
1b65f98465
docs: update composio integration (#7337)
update-task-and-screenshot
2025-03-31 21:53:04 +00:00
Gabriel Luiz Freitas Almeida
6c2ff92ccf
docs: Update documentation and add TAVILY_API_KEY to environment variables (#7366)
* feat: add TAVILY_API_KEY to environment variables list

* feat: update global variables documentation to include new API keys

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-31 19:30:12 +00:00
Mendon Kissling
c76aeb6e9e
docs: mcp server component and integrations (#7286)
* mcp-server-component-update

* update-image

* step-number

* more-content

* astra-npx

* mcp-see-mode-and-env-var

* fix-build

* docs-add-mcp-inspector

* create-section-for-mcp

* code-review
2025-03-31 19:19:09 +00:00
Mendon Kissling
37fc581472
docs: v1.3 (#7160)
* lint-plaintext

* Squashed commit of the following:

commit 0820877007091550e196c1ec9189580a1adcfe80
Author: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Date:   Wed Feb 19 17:34:54 2025 -0500

    fix-links

commit b47fbfe04e3f3c2239147df59b14626839f6b07c
Merge: 22987155fa 02617ffad2
Author: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Date:   Wed Feb 19 17:18:18 2025 -0500

    Merge branch 'main' into docs-publish-v0

commit 22987155fa3bbf39ab2f2a31fe6db643cb98f43f
Merge: bf01a75e72 e8529eaecb
Author: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Date:   Wed Feb 19 16:25:52 2025 -0500

    Merge branch 'main' into docs-publish-v0

commit bf01a75e7252f61303c237c7f39c35b6e9831278
Merge: 85770ae167 b43bf8f783
Author: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Date:   Wed Feb 19 14:42:10 2025 -0500

    Merge branch 'main' into docs-publish-v0

commit 85770ae167914837a2e0eb5b8848d79726507f3e
Merge: fda54f8f43 e970cdbca3
Author: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Date:   Wed Feb 19 11:19:11 2025 -0500

    Merge branch 'main' into docs-publish-v0

commit fda54f8f4344ea629ef8028c388ce65ebc0cac51
Merge: 3027a9c3a4 25ac555e8f
Author: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Date:   Tue Feb 18 11:43:21 2025 -0500

    Merge branch 'main' into docs-publish-v0

commit 3027a9c3a44a0c270333d033394eda9b8cd521de
Merge: 0046d1884e 45e2f739d5
Author: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Date:   Fri Feb 14 13:20:44 2025 -0500

    Merge branch 'main' into docs-publish-v0

commit 0046d1884e30794f9e372ecba2c484a00675be9a
Author: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Date:   Thu Feb 13 13:31:22 2025 -0500

    delete-site-and-redirect

commit 1bf763b3b102b2a7cffb75705c5614a114f3a50a
Author: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Date:   Thu Feb 13 13:17:49 2025 -0500

    docs: Add information about sharing the Langflow application's Playground endpoint

commit 4eb34bd746fe16c1e81c92d74640d803d0473dcd
Author: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Date:   Thu Feb 13 13:06:46 2025 -0500

    docs: Update references from "API pane" to "Publish pane" in documentation

* s3-bucket-init

* add-bundles-page

* output-parser-component

* language-model-component

* legacy-components

* update-file-component

* parser-component

* publish-doc

* update-agent-starter-flows

* voice-mode

* webhook-component-update

* file-management

* update-env-vars

* make-env-var-table-more-readable

* file-management-link

* bump-version

* add-graph-rag-component

* docs-lambda-filter-component

* docs-add-watsonx-model-component

* add-langchain-links-for-watson-package

* remove-s3-bucket-data-component

* docs: publish-flows introduction

* docs: update voice mode instructions for clarity and detail

* Apply suggestions from code review

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* plurals

* docs-review

* Apply suggestions from code review

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* steps-for-file-component

* parse-data-and-dataframe-in-legacy

* remove-beta-from-parser-component

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2025-03-31 16:05:23 -03:00
dependabot[bot]
3a5dbb2aa2
chore(deps-dev): bump vite from 5.4.14 to 5.4.16 in /src/frontend (#7365)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.14 to 5.4.16.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.16/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.16/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-31 18:49:45 +00:00
Cristhian Zanforlin Lousa
a84335af78
fix: add secret key loading functionality to basic templates (#7363)
* add secret keys to templates

* 🐛 (Simple Agent.json): fix load_from_db value to true to correctly load data from the database instead of false

* 🐛 (Vector Store RAG.json): Fix load_from_db value to true for API Endpoint configuration to correctly load from database
🐛 (Vector Store RAG.json): Fix value to "ASTRA_DB_API_ENDPOINT" for api_endpoint configuration to set the correct default value
🐛 (Vector Store RAG.json): Fix load_from_db value to true for API Endpoint configuration to correctly load from database
🐛 (Vector Store RAG.json): Fix value to "ASTRA_DB_APPLICATION_TOKEN" for application_token configuration to set the correct default value

* 🐛 (Meeting Summary.json, Search agent.json): Fix issue where load_from_db was incorrectly set to false instead of true for certain fields in JSON files
2025-03-31 18:20:54 +00:00
Mendon Kissling
d0b6299beb
docs: platform content (#7091)
* initial-content

* fix-url-errors

* update platform build instructions for environment variable setup

* code-review

* code-review

* naming-and-cleanup

* fix-broken-link-for-build

* typo-and-confirm-windows-path

* local-memory-update

* memory-introduction

* no-deploy

* fix-build-error

* title-anchors-correctly

* more-overview-and-walkthrough

* reorder-pages-fix-link

* another-link

* Apply suggestions from code review

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* page-titles

* numbered-list-to-bullets

* trailing-spaces

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2025-03-31 17:54:10 +00:00
Cristhian Zanforlin Lousa
5ef13d98d1
chore: bump langflow and langflow-base for 1.3.0 release (#7362)
* ⬆️ (pyproject.toml): update package version to 1.3.0 and langflow-base dependency to 0.3.0
♻️ (LoopTemplate.json): change legacy flag from true to false for ParseData component to align with updated logic and functionality

* uv sync package

*  (frontend/package.json): update version from 1.2.0 to 1.3.0 to reflect the latest changes and improvements in the frontend application.

* 🐛 (LoopTemplate.json): set "legacy" property to true for ParseData component to handle legacy functionality and improve compatibility with older versions.

* ⬆️ (pyproject.toml): upgrade package version from 0.2.0 to 0.3.0
2025-03-31 17:41:20 +00:00
Ronnie Miller
bdcd76d5cd
docs: ensure asset paths update on draft rebuilds (#7355) 2025-03-31 10:18:46 -07:00
Gabriel Luiz Freitas Almeida
b4124a4027
fix: Prevent API key banner from displaying when key is unavailable (#7356)
fix: prevent displaying API key banner when key is not available

- Added a conditional check to ensure the API key banner is only displayed if a valid API key is retrieved. This improves user experience by avoiding unnecessary prompts.
2025-03-31 16:38:13 +00:00
Edwin Jose
2007495ec4
fix: MCP SSE Model tool mode issue (#7360)
Update mcp_component.py
2025-03-31 13:59:23 -03:00
Edwin Jose
017a0a463b
feat: deprecate Parsing component and replace them in starter projects (#6697)
* fix: fixed the parser component

* fix: fixed parser component test

* fix: ruff error

* chore: rename input

* chore: remove beta attribute

* update

* updated template with legacy as true

* updated templates

* [autofix.ci] apply automated fixes

*  (freeze.spec.ts): add new test steps to check sidebar options and legacy switch functionality
 (similarity.spec.ts): add new test steps to check sidebar options and legacy switch functionality
 (loop-component.spec.ts): add new test steps to check sidebar options and legacy switch functionality, as well as zoom out and expand button modal functionality

* remove-copy-numbers-from-template-titles

* update-blog-writer-template-readme

* update-document-qa-template-notes

* update-market-research-template-notes

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

*  (filterEdge-shard-0.spec.ts, freeze.spec.ts, Portfolio Website Code Generator.spec.ts, decisionFlow.spec.ts, similarity.spec.ts, generalBugs-shard-9.spec.ts, codeAreaModalComponent.spec.ts, fileUploadComponent.spec.ts, nestedComponent.spec.ts, filterEdge-shard-1.spec.ts, loop-component.spec.ts, generalBugs-shard-12.spec.ts, add-legacy-components.ts): add function to handle legacy components in tests for improved test readability and maintainability

* remove duplicated graph rag template

* update changes

* update Templates with new parser component

* [autofix.ci] apply automated fixes

* fix: remove name attribute

* fix: autofix.ci patch

*  (stop-building.spec.ts): add new function addLegacyComponents to include legacy components in the test scenario
🔧 (decisionFlow.spec.ts): increase timeout from 500ms to 2000ms for better stability and reliability in waiting for selectors to appear

---------

Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2025-03-31 13:57:30 -03:00
Ítalo Johnny
85787cf53e
fix: fixed the parser component (#7303)
* fix: fixed the parser component

* fix: fixed parser component test

* fix: ruff error

* chore: rename input

* chore: remove beta attribute

* fix: remove name attribute

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-03-31 15:47:52 +00:00
Jordan Frazier
6c36f4895b
ref: split ast parsing / class exec loops (#7248)
* Split ast parsing / class exec loops

* remove unnecessary module check

* remove comment

* [autofix.ci] apply automated fixes

* ruff

* [autofix.ci] apply automated fixes

* Ruff

* [autofix.ci] apply automated fixes

* ruff

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-31 15:43:23 +00:00
Desiree Sng
2407fe39d6
feat: Update AgentQL templates (#7165)
Update AgentQL templates

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
2025-03-31 15:30:37 +00:00
Rodrigo Nader
fecd2b5598
feat: add a unified local vector store (#6995)
* add a unified local vector store

* [autofix.ci] apply automated fixes

* fixed lint Error

* [autofix.ci] apply automated fixes

* Update src/backend/base/langflow/components/vectorstores/local_db.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor: Enhance type hints and clean up imports in LocalDBComponent

- Added type hints for the `update_build_config` method parameters and return type.
- Removed unused import of `override`.
- Cleaned up the `build_vector_store` method by removing the import error handling for `Chroma`, as it is now assumed to be handled elsewhere.

* test: Add unit tests for LocalDBComponent functionality

- Introduced comprehensive tests for the LocalDBComponent, covering database creation, data ingestion, similarity search, and duplicate handling.
- Implemented fixtures for default parameters and collection mappings.
- Verified the behavior of various search types and ensured correct handling of duplicates.
- Added tests for configuration updates and listing existing collections.

* feat: Implement equality comparison for DataFrame class

- Added an __eq__ method to the DataFrame class to handle comparisons with empty DataFrames and non-DataFrame objects.
- Ensures that empty DataFrames and empty lists are treated as unequal, improving the robustness of DataFrame comparisons.

* Update local_db.py

* [autofix.ci] apply automated fixes

* removed data output

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
2025-03-31 15:15:06 +00:00
Lucas Oliveira
57524d538c
fix: update currentflow to be fetched from Flow Store for icon to be rendered correctly (#7354)
* Updated current flow to be fetched from FlowStore

* Changed setPlaygroundPage's place because of console error
2025-03-31 15:00:51 +00:00
Ítalo Johnny
cac85c62b4
feat: expose serialization truncation constants in /config route (#7316)
* test: validate truncation logic and response structure

* feat: expose serialization truncation constants in /config route

* chore: tidy up redundant import from module
2025-03-31 14:46:40 +00:00
Edwin Jose
aea98a4019
feat: lmprove MCP langflow port selection and error handling (#7327)
* langflow port search and error handling

* [autofix.ci] apply automated fixes

* Update mcp_component.py

* Update util.py

*  (test_mcp_component.py): add support for validating URL and setting max retries to improve connection handling
🐛 (test_mcp_component.py): fix incorrect exception type in test_connect_timeout method to match expected behavior

* [autofix.ci] apply automated fixes

*  (test_mcp_component.py): refactor test_connect_to_server method for better readability and maintainability
🔧 (test_mcp_component.py): refactor test_connect_timeout method for improved error message formatting

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-03-31 14:43:17 +00:00
Lucas Oliveira
7ba4bff956
fix: adds priority sorting for sidebar components and makes LanguageModel appear first (#7322)
* Added priority field to components

* Added priority as 0 to LanguageModelComponent

* Adds sorting based on priority

* refactor: remove redundant name attribute from LanguageModelComponent

* Updated custom component to include priority

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-03-31 14:29:34 +00:00
Edwin Jose
58b12b40e1
fix: make agent work with new tool mode backend updates (#7314)
* update tools in agents

* fix: update tool status check to default to True

* refactor: rename to_toolkit method to _get_tools and remove deprecated code

* [autofix.ci] apply automated fixes

* fix: makes agent tool metadata be correctly generated

* Update agent JSON files with new code for Agent component

* Enhance Financial Agent JSON configuration with updated code for the Agent component, including improved memory handling, tool validation, and error logging for better robustness and async functionality.

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-31 14:23:19 +00:00
Gabriel Luiz Freitas Almeida
7ff6b1ae34
chore: fix small typo in grep command (#7353)
* fix: ensure consistent version extraction for langflow-base in workflows

Updated version extraction commands in multiple workflow files to consistently use 'head -n 1' for retrieving the first occurrence of the langflow-base version. This change improves reliability in version detection across docker-build, nightly_build, python_test, release_nightly, and release workflows.

* fix: correct version extraction command in nightly build workflow

Removed an extraneous quote from the version extraction command in the nightly_build.yml workflow file to ensure proper execution and reliability in retrieving the langflow-base version.
2025-03-31 09:44:27 -03:00