* 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>
* ✨ (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
* 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>
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.
* 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>
* 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>
* Added handling for wsl isntallation of claude
* Fixed installed server not appearing
* Added message to restart
* fix formatting and error handling
* fixed lint
* 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>
* 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>
📝 (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>
* 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
* 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>
* 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.
* 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>
* ✨ (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
* 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
* 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>
* 🔧 (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>