Commit graph

16,210 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
d93d95cbeb
chore(docs): remove pull script and cross-var from package.json (#8755)
chore: remove unused scripts and dependencies from package.json
2025-06-27 13:59:29 +00:00
Gabriel Luiz Freitas Almeida
03537b5dcc
test: Update regression test to use data-testid for input fields (#8762) 2025-06-27 10:08:50 -03:00
Lucas Oliveira
f4d761e63d
fix: add error handling and message on mcp servers, fixed tool mode on mcp (#8717)
* Added mcp error handling

* Added error param to servers

* Added error display on mcp servers page

* Added error display on mcp component

* Added error handling for other types of errors

* uv lock update and add error handling

* update mcp version

* fixed tool mode not working on mcp component

* update mcp to 1.9.4

* Removed server parameters custom commands on connection to stdio

* removed unused import

* disable mcp notice

* Removed drop state when home type is mcp

* Added loading before showing tools

* Updated mcp to 1.9.4

* Decreased mcp timeout

* Implemented error surfacing with exec command

* removed non default keys either way when mcp_server is used

* update to session handling

* [autofix.ci] apply automated fixes

* updated it to check if it is the same server to not clear on startup

* update to components

* Update mcp_component.py

* Update mcp_component.py

* Update mcp_component.py

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-06-26 22:22:01 +00:00
Eric Hare
e1624b8c6e
feat: Better multi-file consistency for File Component (#8625)
* feat: First pass at output changes for file component

* SQLite support and json parsing

* [autofix.ci] apply automated fixes

* Update base_file.py

* [autofix.ci] apply automated fixes

* Update file.py

* [autofix.ci] apply automated fixes

* Split text supporting messages

* [autofix.ci] apply automated fixes

* Support structured json data

* Routine for inclusion of sample data

* Couple more template updates

* [autofix.ci] apply automated fixes

* Update Text Sentiment Analysis.json

* Update Portfolio Website Code Generator.json

* Test coverage

* [autofix.ci] apply automated fixes

* Update constants.py

* Update base_file.py

* Update service.py

* Update src/backend/base/langflow/components/processing/split_text.py

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>

* [autofix.ci] apply automated fixes

* Update service.py

* Add get file size that is unimplemented

* Update service.py

* Fix return

* Remove type annotation

* Update graph for new templates

* Update test_vector_store_rag.py

* Update stop-building.spec.ts

* [autofix.ci] apply automated fixes

* Update fileUploadComponent.spec.ts

* Update fileUploadComponent.spec.ts

* Update fileUploadComponent.spec.ts

* Update fileUploadComponent.spec.ts

* Update fileUploadComponent.spec.ts

* Update fileUploadComponent.spec.ts

* [autofix.ci] apply automated fixes

* Update fileUploadComponent.spec.ts

* test update

* Update fileUploadComponent.spec.ts

* [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: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
2025-06-26 21:12:34 +00:00
Cristhian Zanforlin Lousa
65b71bec5b
feat: Clear handles from advanced fields on code update (#8754)
*  (frontend): add new function clearHandlesFromAdvancedFields to handle clearing handles from advanced fields when code is updated
📝 (frontend): update documentation and add tests for deleting handles from advanced fields when code is updated
🔧 (frontend): remove unused style for Outlook in styleUtils to clean up code
🔧 (frontend): add test for deleting handles from advanced fields when code is updated in general-bugs-delete-handle-advanced-input.spec

*  (frontend): add support for managing edges and nodes in the flowStore to improve data handling and flow visualization
♻️ (frontend): refactor cleanEdges function to accept an object with nodes, edges, componentId, and data parameters for better modularity and reusability

*  (codeAreaModal/index.tsx): Refactor import statements and function names for better clarity and organization
♻️ (flowStore.ts): Refactor cleanEdges function to accept nodes and edges as separate arguments instead of an object
♻️ (flowStore.ts): Update all calls to cleanEdges function to pass nodes and edges separately
♻️ (reactflowUtils.ts): Refactor clearHandlesFromAdvancedFields function to accept only necessary arguments and remove unnecessary logic
2025-06-26 20:41:09 +00:00
Lucas Oliveira
04f8f90649
feat: add Windsurf to MCP one-click install (#8749)
* Added Windsurf icon

* Added Windsurf as option to mcpServerTab

* Added Windsurf instalation on backend
2025-06-26 19:47:22 +00:00
Edwin Jose
3b7b701813
test(cli): refactor test_components_path to use async thread and free port (#8748)
* Refactor test_components_path to run server in thread

The test now starts the CLI server in a separate thread on a free port, allowing asynchronous startup and avoiding port conflicts. This change improves test reliability and better simulates real server behavior.

* Update src/backend/tests/unit/test_cli.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Improve error handling in run_flow CLI test helper

The run_flow function now raises a RuntimeError with a detailed message if the CLI invocation fails, making test failures easier to diagnose.

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-06-26 19:04:27 +00:00
Gabriel Luiz Freitas Almeida
e73c62636f
chore(workflow): comment out Docker build step for langflow-all in nightly release (#8727)
chore: Comment out Docker build workflow for langflow-all due to runner limitations

* Temporarily disabled the `call_docker_build_main_all` job in the nightly release workflow.
* Added a TODO note to revisit this when the runner can accommodate builds with large dependencies like PyTorch.
2025-06-26 17:27:03 +00:00
Lucas Oliveira
8bac1094c9
fix: make not filled required fields be validated before sending to the backend (#8711)
* Added validation for nodes before building, make validation message appear as toast instead of build error

* Make subgraph validation not occur in flowStore

* Added function to search for connected nodes down or upstream

* Added validation before flow starts of the connected flows

* Catch error when sending message and restore chat value

* Made enter not behave as enter on chat input text area

* made sendMessage be async and throw errors

* Added build status error to the nodes that didn't make it past validation.

* Fixed flow not running when not every edge is showed

---------

Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
2025-06-26 16:39:31 +00:00
Gabriel Luiz Freitas Almeida
a03e21018a
refactor(chunk_documents): move optional imports inside method with error handling (#8750)
fix: handle ImportError for optional chunkers and tokenizers in ChunkDoclingDocumentComponent
2025-06-26 16:34:35 +00:00
coderabbitai[bot]
ba192428f9
tests: add tests for non-ASCII characters in flow name (#8532)
* CodeRabbit Generated Unit Tests: Update unit tests in test_projects.py

* [autofix.ci] apply automated fixes

* 📝 CodeRabbit Chat: Add unit tests for projects API in test_projects.py

* [autofix.ci] apply automated fixes

* refactor(tests): streamline project tests and enhance Cyrillic character handling

- Removed redundant test cases for unauthorized project creation and duplicate project names.
- Consolidated Cyrillic character tests for clarity and improved documentation.
- Added constants for Cyrillic project name and description to enhance readability.

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-06-26 15:31:35 +00:00
Lucas Oliveira
2593e83e84
fix: changed design of Input Schema to improve usability (#8720)
* Added description and label for tweaks component

* Removed unused div

* Added edit node button size

* Added placeholder to parameter render component and reduced disabled opacity

* Changed texts and classes

* reduced opacity

---------

Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
2025-06-26 15:23:36 +00:00
Bar Nuri
fe7b7dfd27
feat: flow_runner better init and remove the depend on old load func (#7933)
* fixes

* fix: Update SQLAlchemy import to SQLModel in flow_runner.py

* [autofix.ci] apply automated fixes

* Update flow_runner tests to match new LangflowRunnerExperimental API (#1)

* Initial plan

* Update test_flow_runner.py to match new LangflowRunnerExperimental API

Co-authored-by: barnuri <13019522+barnuri@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: barnuri <13019522+barnuri@users.noreply.github.com>

* [autofix.ci] apply automated fixes

* patch-1 - fix lint

* patch-1 - tweaks_values

* patch-1 - tweaks_values

* lint

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
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 <198982749+Copilot@users.noreply.github.com>
Co-authored-by: barnuri <13019522+barnuri@users.noreply.github.com>
2025-06-26 15:14:35 +00:00
Jordan Frazier
2c74c291a8
docs: update superuser auth documentation (#8713)
* Update superuser auth documentation

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-26 15:06:23 +00:00
Mendon Kissling
ad7c11af95
docs: missing period in docker command (#8746)
* missing-period-in-docker-command

* remove-trailing-period
2025-06-26 15:02:41 +00:00
Lucas Oliveira
b08d080c67
fix: adds handling for WSL on installing MCP on Claude on Windows (#8738)
* Added handling for wsl isntallation of claude

* Fixed installed server not appearing

* Added message to restart

* fix formatting and error handling

* fixed lint
2025-06-26 14:28:17 +00:00
Lucas Oliveira
39af1ded5f
fix: implemented cycle check on isValidConnection (#8716)
* Implemented cycle check on isValidConnection

* Implemented loop check if the loop done results in a loopcomponent loop
2025-06-26 14:13:11 +00:00
Lucas Oliveira
605928d308
fix: updated timeout for blog writer (#8747)
Updated timeout for blog writer
2025-06-26 13:51:09 +00:00
Lucas Oliveira
866076cf06
fix: make not connected edges be cleared when entering flow (#8678)
* Fixed output not cleaning edges

* Added useEffect to select first output if none is selected

* updated useeffect condition

* Fixed edges connected being cleared

* added handleSelectOutput to dependencies

* Fixed loop disconnecting
2025-06-26 13:18:32 +00:00
April I. Murphy
996fdd4d0a
Docs: Add MCP to README, fix a few typos (#8691)
* Migrate PR 8379

* docstring typos

* Update README.md

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2025-06-26 12:22:14 +00:00
Gabriel Luiz Freitas Almeida
e28104c852
fix: update docling dependency to use docling_core instead (#8714)
* chore: update dependencies in pyproject.toml and uv.lock

* Updated `docling` to `docling_core>=2.38.0` in `pyproject.toml`.
* Removed outdated `docling` package entries from `uv.lock`.
* Adjusted dependency markers for `gassist` and `triton` to improve compatibility across platforms.

* chore: downgrade docling_core dependency in pyproject.toml

* Changed `docling_core` version from `>=2.38.0` to `>=2.36.1` for compatibility.
* Added optional dependency group for `docling` with the updated version.

* Added traceloop.py and initialized in service.py, also updated pyproject.toml

* updated returned callbacks list length from 5 to 6. Formatted service.py

* [autofix.ci] apply automated fixes

* OpenInference span kind replaced with Opentelemetry Span kind

* Added traceloop.py and initialized in service.py, also updated pyproject.toml

* updated returned callbacks list length from 5 to 6. Formatted service.py

* [autofix.ci] apply automated fixes

* OpenInference span kind replaced with Opentelemetry Span kind

* Added traceloop.py and initialized in service.py, also updated pyproject.toml

* updated returned callbacks list length from 5 to 6. Formatted service.py

* [autofix.ci] apply automated fixes

* OpenInference span kind replaced with Opentelemetry Span kind

* Updated as per coderabbitai suggested and tested

* Fixed deprecated NoneType

* code formatted

* revert uv.lock

* add new line to uv.lock

* updated service.py

* [autofix.ci] apply automated fixes

* fix(DoclingInlineComponent): add import error handling for missing Docling module

* Revert "Merge branch '2getsandesh/main' into remove-torch-deps"

This reverts commit b95891f0e27e8620873fbe97116709ca5de41e51, reversing
changes made to 9e0f1ae30a6655a82948546035147e0e2fc924ae.

---------

Co-authored-by: Sandesh R <2getsandesh@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Sandesh R <Sandesh.R24@ibm.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-06-25 23:55:50 +00:00
Mendon Kissling
175fc7e773
docs: update deploy_gh-pages.yml (#8741)
Update deploy_gh-pages.yml
2025-06-25 23:20:29 +00:00
Ronnie Miller
9a07876026
docs: bump node version in docs draft deploy workflow (#8742) 2025-06-25 16:11:40 -07:00
Mendon Kissling
52b8f16e78
docs: bump-docusaurus-to-3.8.1 (#8740)
* docs-bump-docusaurus-to-3.8.1

* restore-package-lock.json
2025-06-25 22:39:22 +00:00
Edwin Jose
557120df8c
fix(converter): add explicit Message type check in convert_to_data function (#8722)
* update

* update to template

* Update Meeting Summary.json

* [autofix.ci] apply automated fixes

* Update Meeting Summary.json

* Update Research Translation Loop.json

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Yuqi Tang <yuqi.tang@datastax.com>
2025-06-25 19:24:40 +00:00
Cristhian Zanforlin Lousa
d2d774d11c
fix: Add JSON sanitization to handle NaN values in streaming requests (#8736)
🔧 (api.tsx): add a helper function sanitizeJsonString to replace NaN values with null in JSON strings for proper parsing
2025-06-25 19:04:51 +00:00
Gabriel Luiz Freitas Almeida
ceb98af542
fix(components): exclude base path from component loading and refine caching (#8735)
* feat: filter out base components path in custom component loading

* revert changes to allow testing the function

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-06-25 18:17:58 +00:00
Cristhian Zanforlin Lousa
813528682c
style: Add line breaks before banner display (#8732)
📝 (langflow/__main__.py): add line breaks before printing banners for better readability and separation of content

Co-authored-by: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com>
2025-06-25 18:13:29 +00:00
Deon Sanchez
08e428d376
fix: update Textarea component to prevent resizing in textOutputView (#8688) 2025-06-25 18:06:39 +00:00
Mendon Kissling
6c76957f3e
docs: fix spacing for the quickstart curl command (#8731)
fix-curl-spacing
2025-06-25 17:37:34 +00:00
Edwin Jose
d892058759
fix: handle Message objects in build_output by extracting text attribute (#8729)
Update mcp_component.py
2025-06-25 17:26:10 +00:00
Gabriel Luiz Freitas Almeida
633b1e582a
feat(message): support sequencing of multiple streamable models (#8434)
* feat: update OpenAI model parameters handling for reasoning models

* feat: extend input_value type in LCModelComponent to support AsyncIterator and Iterator

* refactor: remove assert_streaming_sequence method and related checks from Graph class

* feat: add consume_iterator method to Message class for handling iterators

* test: add unit tests for OpenAIModelComponent functionality and integration

* feat: update OpenAIModelComponent to include temperature and seed parameters in build_model method

* feat: rename consume_iterator method to consume_iterator_in_text and update its implementation for handling text

* feat: add is_connected_to_chat_output method to Component class for improved message handling

* feat: refactor LCModelComponent methods to support asynchronous message handling and improve chat output integration

* refactor: remove consume_iterator_in_text method from Message class and clean up LCModelComponent input handling

* fix: update import paths for input components in multiple starter project JSON files

* fix: enhance error message formatting in ErrorMessage class to handle additional exception attributes

* refactor: remove validate_stream calls from generate_flow_events and Graph class to streamline flow processing

* fix: handle asyncio.CancelledError in aadd_messagetables to ensure proper session rollback and retry logic

* refactor: streamline message handling in LCModelComponent by replacing async invocation with synchronous calls and updating message text handling

* refactor: enhance message handling in LCModelComponent by introducing lf_message for improved return value management and updating properties for consistency

* feat: add _build_source method to Component class for enhanced source handling and flexibility in source object management

* feat: enhance LCModelComponent by adding _handle_stream method for improved streaming response handling and refactoring chat output integration

* feat: update MemoryComponent to enhance message retrieval and storage functionality, including new sender type handling and output options for text and dataframe formats

* test: refactor LanguageModelComponent tests to use ComponentTestBaseWithoutClient and add tests for Google model creation and error handling

* test: add fixtures for API keys and implement live API tests for OpenAI, Anthropic, and Google models

* fix: reorder JSON properties for consistency in starter projects

* Updated JSON files for various starter projects to ensure consistent ordering of properties, specifically moving "type" to follow "selected_output" for better readability and maintainability.
* Affected files: Basic Prompt Chaining.json, Blog Writer.json, Financial Report Parser.json, Hybrid Search RAG.json, SEO Keyword Generator.json.

* refactor: simplify input_value type in LCModelComponent

* Updated the input_value parameter in LCModelComponent to remove AsyncIterator and Iterator types, streamlining the input options to only str and Message for improved clarity and maintainability.
* This change enhances the documentation and understanding of the expected input types for the component.

* fix: clarify comment for handling source in Component class

* refactor: remove unnecessary mocking in OpenAI model integration tests
2025-06-25 17:14:08 +00:00
Edwin Jose
38d5885fa3
refactor(agent): standardize memory handling and update chat history logic (#8715)
* update chat history

* update to agents

* Update Simple Agent.json

* update to templates

* ruff errors

* Update agent.py

* Update test_agent_component.py

* [autofix.ci] apply automated fixes

* update templates

* test fix

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
2025-06-25 16:33:57 +00:00
Edwin Jose
0d74474e12
chore: suppress linter warning and rename variable in DataFrame operations (#8728)
* update ruff errors

* [autofix.ci] apply automated fixes

* Update events.py

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-25 15:18:00 +00:00
Gabriel Luiz Freitas Almeida
6f521e17ea
feat: improve Listen and Notify related logic and components (#7969)
* refactor: remove unused property and state management from StateVertex class

* feat: extend next runnable vertices for activated vertices in state vertices

* refactor: simplify ListenComponent by removing unused methods and updating inheritance

* refactor: update NotifyComponent to use new input/output structure and improve context handling

* feat: add is_state attribute to StateVertex for improved state management

* refactor: update input validation to exclude custom attributes from reserved words

* refactor: enhance ListenComponent and NotifyComponent with improved input types and output caching

- Updated ListenComponent to include additional input types for context_key.
- Modified NotifyComponent to use HandleInput for input_value and added input types.
- Set cache to False for the output in NotifyComponent to ensure fresh data retrieval.

* refactor: update state management in Graph class to improve handling of state vertices

- Changed _is_state_vertices to be initialized as None and updated its type hint.
- Added a property is_state_vertices to lazily compute state vertices when accessed.
- Refactored activate_state_vertices method to utilize the new property for better clarity and performance.

* refactor: update ListenComponent to return Data with text instead of data

- Modified the build method in ListenComponent to return Data initialized with a text field instead of a data field, enhancing clarity in data handling.

* refactor: update NotifyComponent to use input_value for data handling

- Modified the build method in NotifyComponent to replace input_data with input_value for improved clarity and consistency in data processing.
- Ensured that the context handling and status updates reflect the changes in input handling.

* refactor: simplify context key check in Graph class for better readability

* refactor: enhance Graph class to include recursive predecessor retrieval and update edge handling

* 📝 Add docstrings to `try-to-fix-listen-notify` (#8326)

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* refactor: clean up unused imports and improve docstring formatting across components

* refactor: rename build method to notify_components and improve input handling in NotifyComponent

* refactor: rename build method to listen_for_data in ListenComponent for clarity

* fix: correct status assignment logic in NotifyComponent to ensure accurate state updates

* fix: handle None input value in NotifyComponent to ensure default Data initialization

* Make context_key required

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* 📝 Add docstrings to `try-to-fix-listen-notify` (#8442)

Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
fix: remove duplicated import statement in nvidia_ingest (#8439)

*  Implement caching logic for Listen/Notify components and enhance docstring for edge retrieval

- Added `_set_cache_if_listen_notify_components` method to disable caching for all vertices if Listen/Notify components are present, ensuring proper real-time communication.
- Improved docstring for `_get_edges_as_list_of_tuples` to clarify the return value and structure.

* 🔧 Refactor Graph class by removing state management methods

- Removed `get_state` and `update_state` methods from the `Graph` class to streamline state management.
- This change simplifies the class structure and focuses on enhancing the overall design of the graph handling.

* fix(listen): restrict input types to "Message" for ListenComponent

* refactor: remove deprecated components from deactivated module

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-06-25 15:12:58 +00:00
Gabriel Luiz Freitas Almeida
8ae85abb9f
feat(makefile): add patch target for automated version management (#8719)
* feat: Add version management to Makefile for streamlined updates

* Introduced a new `patch` target in the Makefile to update version numbers across all projects.
* The target updates `pyproject.toml` and `package.json` files, syncing backend and frontend dependencies.
* Includes error handling for missing version argument and cleanup of backup files after updates.

* refactor: Replace sed commands with Python scripts for version updates in Makefile

* Updated the `patch` target in the Makefile to use Python for modifying version numbers in `pyproject.toml` and `package.json`, enhancing readability and maintainability.
* Removed cleanup of backup files as they are no longer created with the new approach.

* chore: Update Makefile to remove frozen flag from uv sync command

* Modified the `patch` target in the Makefile to remove the `--frozen` flag from the `uv sync` command, allowing for more flexible dependency synchronization.
* This change enhances the update process for backend dependencies.

* chore: Enhance Makefile patch target with validation and parallel dependency syncing

* Updated the `patch` target in the Makefile to include validation checks for version changes in `pyproject.toml` and `package.json`.
* Implemented parallel execution for syncing backend and frontend dependencies to improve efficiency.
* Added final state validation to ensure expected files are modified after the update process.
* Improved user feedback during the version update process with clear success and error messages.
2025-06-24 23:11:18 +00:00
Mike Fortman
927cdd0837
Fix: Update display time for very short operations and fix outputs and titles for tool calling executions (#8718)
* update display time for very short operations and fix outputs and titles

* [autofix.ci] apply automated fixes

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

* cleanup

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-06-24 23:07:19 +00:00
Edwin Jose
25746e20ca
feat: add drop duplicates operation to DataFrameOperationsComponent (#8665)
* Update dataframe_operations.py

* [autofix.ci] apply automated fixes

* Update dataframe_operations.py

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-24 23:04:35 +00:00
Mike Fortman
fe4fa8e08b
fix: Set api keys to not required for Agent component to properly expose errors to the playground (#8694)
set api keys to not required

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-06-24 21:08:50 +00:00
Cristhian Zanforlin Lousa
a40e87f3e0
fix: include folder name in default download filename (#8654)
*  (custom-get-download-folders.ts): update default filename to include folderName variable to provide more context and improve user experience

*  (custom-get-download-folders.ts): update folder name from "My Projects" to "Starter Project" for better clarity and consistency

* 🐛 (custom-get-download-folders.ts): fix issue where folderName could be undefined, causing incorrect filename for download folder
2025-06-24 20:26:04 +00:00
Jordan Frazier
360c2395fb
fix: add a lock check on starter project initialization (#8631)
* Adds a lock check on starter project initialization

* [autofix.ci] apply automated fixes

* ruff fix for exception

* [autofix.ci] apply automated fixes

* Adds a lock check on starter project initialization

* [autofix.ci] apply automated fixes

* fix: Improve logging for lock acquisition failures in starter project creation

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-06-24 18:59:54 +00:00
Bar Nuri
c05327d773
fix: improve LangSmith traces with added details (#7897)
* langsmith-improve

* langsmith-improve

* [autofix.ci] apply automated fixes

* Update langsmith.py

* fix lint

* [autofix.ci] apply automated fixes

* Update langsmith.py

* Refactor LangSmithTracer to improve type checking and error handling

- Moved RunTree import to the appropriate section for clarity.
- Updated end_trace method to check both readiness and existence of run_tree before proceeding.

* readd if not self._ready check

* solve invalid run types

* Update src/backend/base/langflow/services/tracing/langsmith.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update src/backend/base/langflow/services/tracing/langsmith.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update src/backend/base/langflow/services/tracing/langsmith.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* [autofix.ci] apply automated fixes

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

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-06-24 18:50:56 +00:00
Eric Hare
1903f607e8
fix: Clean up some more base templates (#8706)
* fix: Clean up some more base templates

* Fix icons in Pokedex Agent

* Update Price Deal Finder.json

* Update Social Media Agent.json

* Update Social Media Agent.json

* Update Memory Chatbot.json

* Conflict fix

* Update Memory Chatbot.json
2025-06-24 18:12:06 +00:00
Deon Sanchez
91b983a00a
fix: flows title on dashboard are truncating too soon (#8696)
* fix: Adjust header component styles for improved layout consistency

* fix: Update ListComponent styles for improved layout and readability
2025-06-24 18:01:03 +00:00
Michele Dolfi
6631de2aae
feat: Docling components (#8394)
* initial DoclingComponent

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* Correct Docling icon style properties.

Signed-off-by: DKL <dkl@zurich.ibm.com>

* add file_path

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* add load from json and export to various formats

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* add chunking component

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* Update src/backend/base/langflow/components/docling/docling_inline.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* add Docling Serve component

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* apply some suggestions

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* Update src/backend/base/langflow/components/docling/_utils.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update src/backend/base/langflow/components/docling/docling_remote.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* add check for DoclingDocument in list

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* fix import

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* add maximum poll timeout and better checks for the retry logic

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* add updated starter_projects

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* refactor _get_converter

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* return only DataFrame

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* remove LoadDoclingDocument

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* more options in the chunk component

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* move docling imports

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* [autofix.ci] apply automated fixes

* move utils to langflow.base

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

---------

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
Signed-off-by: DKL <dkl@zurich.ibm.com>
Co-authored-by: DKL <dkl@zurich.ibm.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-24 17:54:55 +00:00
Yuqi Tang
5b5f1ddac5
fix: Clean up some more base templates (#8708)
* fix: Clean up some more base templates

* update simple agent and research translation loop

* update travel planning agent

* update

* change outpu

* update translation loop

---------

Co-authored-by: Eric Hare <ericrhare@gmail.com>
2025-06-24 17:36:26 +00:00
Cristhian Zanforlin Lousa
cda1a6f980
fix: Add Windows Unicode compatibility for console output (#8710)
* 🔧 (langflow/__main__.py): Initialize console with Windows-safe settings to handle Unicode encoding issues and disable emoji processing for Windows systems
🔧 (langflow/__main__.py): Add fallback mechanisms for Windows systems with encoding issues to display banners without emojis and Rich formatting

* 🔧 (langflow/__main__.py): refactor console initialization to use a more concise and readable ternary expression
📝 (langflow/__main__.py): update print_banner function to log messages using logger instead of print for better consistency and maintainability

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-24 17:01:24 +00:00
Mendon Kissling
352786c6b9
docs: hide windows for desktop installation (#8707)
* hide-windows-desktop

* troubleshooting

* trailing-space-to-run-ci
2025-06-24 15:28:30 +00:00
Jordan Frazier
9f817ca4fb
chore: move goodbye message to main process (#8695)
* move goodbye message to main process

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-24 15:27:18 +00:00
dependabot[bot]
11f950094e
build(deps): bump pbkdf2 from 3.1.2 to 3.1.3 in /docs (#8698)
Bumps [pbkdf2](https://github.com/crypto-browserify/pbkdf2) from 3.1.2 to 3.1.3.
- [Changelog](https://github.com/browserify/pbkdf2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crypto-browserify/pbkdf2/compare/v3.1.2...v3.1.3)

---
updated-dependencies:
- dependency-name: pbkdf2
  dependency-version: 3.1.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-06-24 15:15:47 +00:00