* fix: add overflow-hidden class to BaseModal.Content in CodeAreaModal for improved layout
* fix: update BaseModal.Content in CodeAreaModal to use overflowHidden prop for better layout control
* Update converter.py
* [autofix.ci] apply automated fixes
* ✅ (freeze.spec.ts): update URL in test case to use a more specific and relevant link for testing purposes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
* markdown width fix
* template clean
* ✨ (freeze.spec.ts): add a new utility function runChatOutput to handle running chat output in tests for better code organization and reusability.
---------
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
* chore: update webrtcvad dependency and add optional audio support
- Updated webrtcvad version requirement to >=1.9.4 in pyproject.toml and uv.lock.
- Moved webrtcvad to optional dependencies under the new 'audio' category in both pyproject.toml files for better modularity.
- Ensured compatibility with existing dependencies while enhancing documentation for optional audio features.
* fix: handle optional import of voice_mode_router in API initialization
- Updated the API router initialization to conditionally include the voice_mode_router if it is available, improving modularity and preventing import errors.
- Adjusted the import statement for voice_mode_router to handle ImportError gracefully, ensuring the application remains robust in its absence.
* feat: add voice mode flag to API configuration
- Introduced a new function `get_voice_mode_enabled` to check for the availability of the `webrtcvad` library, enhancing the API's capability to support voice mode features.
- Updated the `ConfigResponse` schema to include `voice_mode_enabled` flag, allowing clients to query the status of voice mode support.
- Integrated the voice mode feature flag into the `get_config` endpoint response, improving the configurability of the API.
* test: skip voice mode tests if webrtcvad is not installed
- Added a conditional import for the webrtcvad library in the voice mode test suite.
- Implemented a pytest marker to skip tests when webrtcvad is unavailable, enhancing test robustness and preventing unnecessary failures.
* feat: add voice mode state management to flows manager store
- Introduced `voiceModeEnabled` state and `setVoiceModeEnabled` action in the flows manager store to manage the voice mode feature.
- Updated the `ConfigResponse` interface and `useGetConfig` hook to integrate the new voice mode state, allowing for dynamic configuration updates.
- Enhanced the API's configurability by ensuring the voice mode state is properly set based on the API response.
* feat: conditionally render voice button based on voice mode state
- Integrated `voiceModeEnabled` from the flows manager store to control the visibility of the VoiceButton component.
- The VoiceButton will now return null if voice mode is not enabled, enhancing the user interface by preventing unnecessary rendering.
* fix: ensure boolean conversion for voice mode state in config hook
- Updated the `setVoiceModeEnabled` function in the `useGetConfig` hook to explicitly convert the `voice_mode_enabled` value to a boolean, ensuring consistent handling of the voice mode state based on API responses.
* refactor: conditionally import voice_mode_router in API initialization
- Updated the API router to conditionally include the voice_mode_router based on its availability, enhancing modularity and preventing import errors.
- Adjusted the __init__.py file to dynamically add voice_mode_router to the __all__ list if the import is successful, improving the API's robustness.
* chore: revert mcp version update
* refactor: reorder router initialization and add audio flag to backend install task
* feat: add audio module to backend installation command in VS Code tasks
* ci: add audio extras to uv sync in frontend tests
* 🐛 (audio-settings-dialog.tsx): fix alignment offset in DropdownMenuContent component
📝 (audio-settings-dialog.tsx): remove unnecessary check for empty value in handleOpenAIKeyChange function
* ✨ (freeze.spec.ts): add support for adding a flow to test on an empty langflow if the first run langflow is greater than 0
* ✅ (freeze.spec.ts): update timeout values for page.waitForSelector to improve test reliability and prevent false negatives
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* fix: update selected_output field in various starter project JSON files
- Added or adjusted the "selected_output" field in multiple starter project JSON files to ensure consistency and correct functionality.
- Refactored the output selection logic in the GenericNode component to utilize the updated "selected_output" property.
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* fix: enhance output handling in GenericNode and NodeOutputField components
- Added a check to prevent auto-unhiding outputs with group_outputs set to false in NodeOutputField.
- Updated the GenericNode component to ensure the selected_output field is correctly assigned during node updates.
- Introduced group_outputs property in the OutputFieldType to support new output handling logic.
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* Revert starter_projects directory to main branch state
* 📝 (general-bugs-shard-3909.spec.ts): update test description to match the changed button text for better clarity and maintainability
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
* feat: add selected_output property to Component and update validation logic
* feat: add selected_output property to various components and update related logic
* fix: improve error handling in JSON processing and update type hints
* refactor: clean up Makefile and reorder JSON properties in Vector Store RAG.json
* Removed the update_selected_outputs target from the Makefile to streamline the build process.
* Reordered properties in Vector Store RAG.json for consistency, ensuring "selected_output" appears before "type" in multiple entries.
* chore: remove add_selected_outputs.py script
* Deleted the add_selected_outputs.py script, which was responsible for adding selected_output fields to Langflow JSON template files. This script is no longer needed as part of the project.
* chore: clean up Makefile by removing unnecessary blank line
* Removed an extra blank line in the Makefile to improve readability and maintain consistency.
* chore: tidy up Makefile by adding a blank line for better readability
* Added a blank line before the help target in the Makefile to enhance readability and maintain consistency in formatting.
* chore: remove unnecessary blank line in Makefile
* Eliminated an extra blank line before the help target in the Makefile to enhance readability and maintain consistency in formatting.
* [autofix.ci] apply automated fixes
* fix(GenericNode): update output selection logic to use selected_output name
* Modified the logic for selecting the initial output in GenericNode to match the selected_output name from the data object.
* Adjusted the return logic in NodeOutputs to ensure it correctly handles the selected output state.
* fix(GenericNode): refine output selection logic to prioritize selected outputs
* Updated the output selection logic in the cleanEdges function to filter for selected outputs before finding the matching output by name. This change enhances the accuracy of output handling for generic nodes.
* updated blog writer
* fix: update Memory Chatbot configuration for improved message handling
- Adjusted JSON structure for Memory Chatbot to ensure correct output types and display names.
- Added new input fields for sender type and refined existing fields for clarity.
- Enhanced message retrieval methods to support dynamic output based on selected modes.
- Improved overall structure for better integration with Langflow components.
* Update src/backend/base/langflow/custom/custom_component/component.py
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* [autofix.ci] apply automated fixes
* Ruff linting error fix
* [autofix.ci] apply automated fixes
* fix: Update test to reflect change in heading from "OpenAi" to "Language Model"
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
* updated mcp backend to truncate tools name to 30 chars
* updated frontend to truncate tools with 30 chars and truncate project name with 26 chars
* changed it to not exceed 25
* updated one click install to truncate at 26
* updated name
* used constants and helper functions to refactor code
* updated constants
---------
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
* Added pasting the edges between components selected as well
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* refactor: update default behavior for components path in Settings class
* Set components path to an empty list when no value is provided, improving clarity in logging.
* Remove redundant addition of BASE_COMPONENTS_PATH when it is not already included.
* feat: Implement importing of Langflow components
* Added `get_langflow_components_list` to asynchronously fetch built-in components using introspection and pkgutil.
* Introduced `_get_langflow_components_list_sync` for synchronous processing of component classes.
* Updated `get_and_cache_all_types_dict` to merge fetched components into the cache.
* Enhanced error handling during module imports and component processing.
* feat: Enhance component handling in custom utils for better flexibility
* refactor: Simplify component retrieval logic and enhance error handling
* refactor: Remove unnecessary 'required_inputs' field from multiple starter project JSON files
* refactor: Change error handling to warning for component instantiation failures
* refactor: Improve component type checking in get_component_instance and run_build_config functions
* refactor: Update subclass check for custom_component in run_build_config function
* refactor: Update component name retrieval logic to prioritize class name
* refactor: Replace settings service call with direct BASE_COMPONENTS_PATH in test_get_all
* refactor: Update required inputs and improve model name info across starter projects
* [autofix.ci] apply automated fixes
* 📝 Add docstrings to `fix-component-loading` (#8397)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Build and log fixes
* refactor: Improve type checking for custom component instances in `get_component_instance`
* refactor: Enhance type checking for custom components in `run_build_config`
* refactor: Clean up docstrings in component loading functions for clarity
* refactor: Rename `get_langflow_components_list` to `import_langflow_components` for clarity
* refactor: Exclude deactivated modules and improve class checking in component loading
* test: Add component differences analysis for import_langflow_components and aget_all_types_dict
* [autofix.ci] apply automated fixes
* refactor: Simplify assert statements and improve logging in component loading tests
* [autofix.ci] apply automated fixes
* refactor: Consolidate __all__ declaration for retriever components
* refactor: Improve comments for clarity in run_build_config function
* [autofix.ci] apply automated fixes
* refactor: Enhance module validation logic in _get_langflow_components_list_sync function
* refactor: Update debug log message for clarity in get_and_cache_all_types_dict function
* refactor: Enhance parallel processing of Langflow components import and improve logging
* refactor: Improve performance testing by adding warm-up runs and clarifying output messages
* refactor: Improve assertion clarity in component loading tests and add performance benchmark
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* [autofix.ci] apply automated fixes (attempt 3/3)
* Use Component base class instead of custom component for a few components
* ⚡️ Speed up function `get_component_instance` by 365% in PR #8395 (`fix-component-loading`) (#8438)
Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* refactor: update debug log message for components cache building
* refactor: update required inputs to use 'api_key' for multiple starter projects
* refactor: update import statement for BaseFileComponent in nvidia_ingest.py
* refactor: simplify timing results print statement in test_load_components.py
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* refactor: improve assertion readability and error handling in test_load_components.py
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* [autofix.ci] apply automated fixes (attempt 3/3)
* feat: allow os.stat in pkgutil for component loading in blockbuster fixture
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* [autofix.ci] apply automated fixes (attempt 3/3)
* updates few components to new template
* import fixes
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* [autofix.ci] apply automated fixes (attempt 3/3)
* remove unused VectaraSelfQueryRetriverComponent from vectorstores __all__ export
* Update starter project configurations to require 'api_key' as a mandatory input for model output in multiple JSON files.
* [autofix.ci] apply automated fixes
* Refactor JSONDocumentBuilder by removing TYPE_CHECKING import and update Vectara import statement to suppress linting warning.
* ⚡️ Speed up function `_process_single_module` by 1,017% in PR #8395 (`fix-component-loading`) (#8443)
Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
* [autofix.ci] apply automated fixes
* Remove unnecessary call to `_set_output_required_inputs` in `Component` class setup
* Revert "Use Component base class instead of custom component for a few components"
This reverts commit 2fd61f92b2735a770d82eada3b429c4e20657335.
* move components to deactivated folder
AmazonKendraRetriever, JSONDocumentBuilder, ListenComponent, MetalRetrieverComponent, MultiQueryRetrieverComponent, NotifyComponent, RetrieverToolComponent, and VectaraSelfQueryRetrieverComponent
These components provide various functionalities including document building, notification handling, and integration with external APIs for data retrieval. Each component includes input specifications and error handling for robust operation.
* [autofix.ci] apply automated fixes
* Revert "move components to deactivated folder"
This reverts commit 0aa17a26d938f4a5ea622e16c4645813ea271e44.
* Implement multiple new components in the deactivated folder, including AmazonKendraRetrieverComponent, JSONDocumentBuilder, ListenComponent, MetalRetrieverComponent, MultiQueryRetrieverComponent, NotifyComponent, RetrieverToolComponent, and VectaraSelfQueryRetrieverComponent. Each component is designed to enhance functionality for document handling, notifications, and API integrations, with robust input specifications and error handling for improved reliability.
* feat: Enhance starter project loading with improved logging and error handling
* refactor: Remove debug logging for module processing in import_langflow_components
* [autofix.ci] apply automated fixes
* fix: Disable mypy error for undefined attributes in deactivated components
* feat: Enhance blocking behavior in blockbuster tests with additional function checks
* fix: Add import error handling for boto3 in S3BucketUploaderComponent
* refactor: Add debug logging for module processing in components
* fix: Temporarily disable auto-use for blockbuster fixture until blocking issue is resolved
* feat: Add utility function to check for preimported components
* fix: Update get_component_instance to accept both CustomComponent and Component types
* fix: Update import error message for boto3 installation instructions
* fix: Correct class name from VectoStoreRetrieverComponent to VectorStoreRetrieverComponent
* fix: Update Vectara type hints and import statements for consistency
* fix: Refactor get_component_instance and build_custom_component_template_from_inputs for improved error handling and component instantiation
* fix: Remove debug logging from _process_single_module to streamline module processing
* ⚡️ Speed up function `is_a_preimported_component` by 24% in PR #8395 (`fix-component-loading`)
Here is an optimized version of your program.
**Reasoning for changes:**
- The check `isinstance(custom_component, Component)` followed by `type(custom_component) is not Component` causes the interpreter to potentially look up the type and MRO twice per call.
- By storing `type(custom_component)` in `klass` and using `issubclass(klass, Component)`, you avoid having Python walk the MRO twice for the same object, which is subtly more efficient especially in tight loops and heavy use scenarios.
- Using `issubclass()` on the object's type is semantically equivalent to `isinstance()`, except it also works for custom metaclass scenarios and is very slightly faster when type is already known.
**All program logic and comments are preserved, only the relevant portion is optimized.**
* ✨ (freeze.spec.ts): introduce new function addFlowToTestOnEmptyLangflow to enhance test coverage and improve test reliability
* ✨ (freeze.spec.ts): increase timeout value for waiting for "built successfully" text to appear to improve test reliability
* ✨ (freeze.spec.ts): refactor code to check if firstRunLangflow is greater than 0 before calling addFlowToTestOnEmptyLangflow
🔧 (generalBugs-shard-9.spec.ts): update tags in test case to include @workspace and @components
♻️ (generalBugs-shard-9.spec.ts): refactor code to remove unnecessary steps related to sidebar search and node handling
🔧 (store-shard-0.spec.ts): update test cases to be skipped and improve readability by using async arrow functions
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com>
Co-authored-by: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com>
Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
* Added mcpinput to the backend
* Fixed list selection component to contain descriptions
* Added mcp component in the frontend with mock values
* Added mcp rendering on Parameter Render Component
* Changed input to be more concise and to have dynamic placeholder
* Added header search placeholder
* Fixed styling to match new input
* Removed unused params
* Adds AddMcpServerModal's first mock version
* Adds Add button on mcp component and list selection component
* First pass at mcp api
* Add PATCH endpoint
* Add DELETE endpoint
* fix: Bump version numbers for langflow and langflow-base to 1.4.3 and 0.4.3 respectively
* fix: Remove Igor Carvalho from maintainers list in pyproject.toml
* fix(agent): reset model list when provider changes
Switching the provider in the Agent component sometimes left models from
the previous provider visible/selected.
We now filter against the new , ensuring only
models that belong to the active provider remain.
* src/frontend/src/components/core/dropdownComponent/index.tsx
– add guard when rebuilding
* tests/extended/regression/general-bugs-dropdown-select-not-in-list.spec.ts
– expand coverage for “model not in list” edge-cases
Co-authored-by: Cristian Lousa <cristian.lousa@gmail.com>
* fix: Update Pokédex Agent template (#8373)
* Implement adding and getting MCP servers, implemented addMcpServerModal
* Added sse and stdio ways of adding a server
* Added no actions handling
* added new mcp type to constants
* Added headers to add mcp server modal
* Changed mcp component to allow persistent mcp servers
* fix input list component gradient
* fix add server modal to patch when initial data is present, and to clean variables when switching tabs
* changed message on add mcp server
* Added required mutations for mcp page
* Added mcp servers page
* Changed design of page
* Fixed delete problems and added delete confirmation
* fixed wrong error parsing
* changed padding
* Made added server be used on mcp component
* refactor: remove references to the langflow store (#8354)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
fix: apikey lock issue and add option to disable tracking (#8361)
* Fixed search on sidebar
* fixed infinite use effect
* Fixed error handling
* Fixed tool mode disappearing
* fixed key pair button submitting form
* Fixed bugs
* Added required
* Changed message
* Disabled other tabs when modifying
* Removed tool dropdown if the mcp server is empty
* parsed name
* fixed data test id not applying
* fixed mcp component
* Fixed component not working when only stdio command is present
* refactored tests
* Updated mcp_component to remove old non default keys
* Added data-testids
* Modified tests to include settings page functionality
* [autofix.ci] apply automated fixes
* Refactor out the core part of the mcp
* [autofix.ci] apply automated fixes
* Added placeholders on frontend components for errors
* Fixed bugs with mcp component
* updated bug
* fix: made empty project appear instead of empty flows list when mcp is enabled (#8336)
* try to fix
* Fix MCP persistence
* Update mcp_component.py
* Update mcp.py
* [autofix.ci] apply automated fixes
* fix: Bump version numbers for langflow and langflow-base to 1.4.3 and 0.4.3 respectively
* fix: Remove Igor Carvalho from maintainers list in pyproject.toml
* fix(agent): reset model list when provider changes
Switching the provider in the Agent component sometimes left models from
the previous provider visible/selected.
We now filter against the new , ensuring only
models that belong to the active provider remain.
* src/frontend/src/components/core/dropdownComponent/index.tsx
– add guard when rebuilding
* tests/extended/regression/general-bugs-dropdown-select-not-in-list.spec.ts
– expand coverage for “model not in list” edge-cases
Co-authored-by: Cristian Lousa <cristian.lousa@gmail.com>
* refactor: remove references to the langflow store (#8354)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
fix: apikey lock issue and add option to disable tracking (#8361)
* fix: made empty project appear instead of empty flows list when mcp is enabled (#8336)
* fix mcp client async problems
* fixed mcp sse access
* [autofix.ci] apply automated fixes
* Made values be maintained when refreshing page
* Fixed bugs with tool mode and switching from tool mode to not tool mode
* Update mcp_component.py
* Update test_mcp_component.py
* Don't expose file by name as external endpoint
* Update files.py
* Update files.py
* Add checks for id
* Refactor tests
* Update test_mcp_component.py
* Update test_mcp_component.py
* Update test_mcp_component.py
* updated tests
* re-added placeholder on input for tests to not fail
* updated session selector in order for tests to work
---------
Co-authored-by: Eric Hare <ericrhare@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
Co-authored-by: Cristian Lousa <cristian.lousa@gmail.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Deon Sanchez <69873175+deon-sanchez@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
* Changed textarea classes
* Changed flowsettingscomponent to use form
* changed edit flow settings to use form and to submit on enter
* Reset form data on close
* Updated disabled state to have lower opacity instead of to have set background
* Fixed loading state of button
* feat: add formatPayloadTweaks utility and integrate into API code generation
* feat: integrate formatPayloadTweaks utility for centralized payload processing in API code generation
* refactor: clean up formatPayloadTweaks import and improve curl command formatting
* refactor: remove commented code and streamline payload processing in APITabsComponent
* fix: uncomment TextInput in INPUT_TYPES constant
* fix: uncomment TextInput in INPUT_TYPES and update filter-tweaks to include it
* refactor: update OutputComponent styles and enhance dropdown functionality
* Adjusted text size in OutputComponent for better readability.
* Improved dropdown button styling and added hover effects.
* Enhanced dropdown content layout to display output types alongside names.
* Added console log for outputs to assist in debugging.
* refactor: remove console log from OutputComponent for cleaner code
* refactor: streamline GenericNode component and enhance NodeOutputs functionality
* Removed conditional rendering for hidden outputs in GenericNode for cleaner code.
* Introduced hasExistingHiddenOutputs prop to NodeOutputs for better state management.
* Updated OutputComponent styles for improved visual consistency and output type display.
* style: update OutputComponent padding for improved layout
* Added padding to the OutputComponent for better spacing and visual consistency.
* only allow customvals and options to be in the options list
* ✨ (general-bugs-dropdown-select-not-in-list.spec.ts): add additional test cases to cover dropdown selection functionality and ensure correct behavior in the frontend application
---------
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
* Update loop.py
* [autofix.ci] apply automated fixes
* Update loop-component.spec.ts
* change dataframe input name to inputs
* [autofix.ci] apply automated fixes
* 🐛 (typescript_test.yml): increase the maximum shard count to 40 to improve test distribution and efficiency
* 🔧 (typescript_test.yml): adjust optimal shard count calculation to use a maximum of 10 shards instead of 40 for better test distribution
🐛 (loop-component.spec.ts): fix getByTestId selector to match the updated element ID for testing purposes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Yuqi Tang <yuqi.tang@datastax.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
* chore: update langchain-anthropic dependency to version 0.3.14 and adjust revision in uv.lock
* fix: add workaround for handling function calling in Anthropic output processing
* Fix indentation
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* fix: remove duplicate error message in _extract_output_text function
* fix: update _build_llm_model to handle missing attributes gracefully
* fix: handle max_tokens default value and improve error handling in AnthropicModelComponent
* fix: enhance input handling in Component class to manage deepcopy errors
* fix: add 'no_blockbuster' marker to pytest configuration for improved test control
* fix: refactor agent component tests to include all OpenAI and Anthropic models, improving validation and error reporting
* fix: update agent components to include pydantic validation and improve error handling across multiple starter projects
* fix: set default max_tokens value in AnthropicModelComponent and improve API URL handling
* fix: enhance error reporting in AgentComponent tests by capturing exceptions and response discrepancies for all Anthropic models
* chore: update package versions in uv.lock, including alembic, arize-phoenix-otel, bce-python-sdk, boto3-stubs, botocore-stubs, tornado, and others for improved compatibility and features
* fix: update agent components across multiple starter projects to include new imports and improve error handling
* fix: streamline max_tokens handling in AnthropicModelComponent for improved clarity and robustness
* [autofix.ci] apply automated fixes
* fix: update artifacts_raw type to allow None for better flexibility
* fix: initialize artifacts_raw as an empty dict if None to prevent errors
* fix: specify type for similarity_score to enhance type safety and clarity
* fix: refactor JSON parsing to improve variable naming and clarity
* fix: skip flaky test in Portfolio Website Code Generator until stabilized
---------
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: Edwin Jose <edwin.jose@datastax.com>
* Added truncation items as constant and reduced it to 100
* Added truncation test to regression
* get max items length from config
* changed typo in backend
* Added endpoint to add servers to local backend
* Add install mcp query
* Fixed mcp projects to receive body schema
* Added patch install to mcp server tab
* feat: adds new Edit Details popover, removes flow menu, fixes nav alignment, adds new Flow Status overlay (#8087)
* Updated flow settings component size
* Added FlowSettingsComponent to contain modal content
* Removed unused imports
* Changed Flow Settings Modal to use new component
* Changed Flow Menu styling, removing Saved and context menu, and adding a direct click to edit flow info
* Removed unused styling
* Updated nav position and truncation
* updated alert styling
* Added z index to header
* Added flow settings coming from the bottom
* Changed flow settings to not crash when there is no flow
* Removed unused imports
* Implemented flow details using popover
* Removed onClick
* Changed canvas controls position and color
* Changed panel tooltip side and classes
* Added log canvas component
* Added children to flow logs modal
* Added log canvas component into page
* Changed position and shadow of canvas controls
* removed endpoint name from edit flow settings
* added endpoint name change into tweaks modal
* Added endpoint editing to tweaks
* Implemented storing the error in the flowBuildStatus
* Updated type
* Added Flow Building Component
* Added Flow Building Component implementation
* Added red color
* Added past build flow params
* Implemented design of flowBuildingComponent
* Implemented build error storing on flowStore
* Implemented build error on flow store
* Changed notifications test
* Set build error as null when building
* Reset build error when exiting flow
* Changed from error to buildError
* Changed flowStore to have buildInfo instead of buildError
* Changed flowBuildingComponent to have buildInfo and display successful builds
* Added handleDismissed instead of setting dismissed as true
* Updated tests to current Update implementation
* Updated tests to remove click on built successfully
* Updated tests and data-testid to match new Flow Name editing behavior
* fixed auto login test
* Fixed edit-flow-name test and save changes on node
* fixed tests
* Changed Share to Publish and added test ids
* added Rename Flow util for tests
* Changed tests to use new RenameFlow
* Fixed auto save off
* Added data test id to flow building component
* Removed pulsing from Name Invalid
* Made name editable but not saveable when invalid
* Added character name reached on description
* Added transition on pencil
* Modularized alert store to separate notification history and notifications
* Added errors to notification history
* Fixed flow building component position and update all components
* Fixed animations
* Fixed animation
* Added same animation to Update All Components
* Updated animations to make update only appear when flow building is not appearing
* fix flow settings test
* Fixed build status not being redefined
* ✨ (UpdateAllComponents/index.tsx): Refactor containerVariants to CONTAINER_VARIANTS for consistency and readability
📝 (visual-variants.ts): Add visual variants for buttons and time in flowBuildingComponent
♻️ (flowBuildingComponent/index.tsx): Import visual variants from separate file for better organization and maintainability
* Fixed offset width of time
---------
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
* fix: fix regex on mcp server tab test (#8175)
* Fixed MCP Server Tab Test
* Fixed mcp server tab test
* Added timeout to test
* Added retry to mcp server tab test
* docs: cookie-banner-link (#8179)
cookie-banner-link
* fix: removed fit view that caused duck duck go test to fail (#8178)
fixed duck duck go test to not fail
* feat: Enhance API request component (#8070)
* update the api request component
* [autofix.ci] apply automated fixes
* update the component
* Update test_api_request_component.py
* [autofix.ci] apply automated fixes
* remove MODE_CONFIG unused variable
* [autofix.ci] apply automated fixes
* use normalize function
* Update template
* Update test_api_request_component.py
* UI test fix
* selector fix
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Yuqi Tang <yuqi.tang@datastax.com>
Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
* docs: system assist component (#8089)
* sidebars
* initial-content
* more
* update
* trailing-spaces
* example
* standardize-naming
* shorten-introduction-and-remove-client
* Apply suggestions from code review
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* Update docs/docs/Integrations/Nvidia/integrations-nvidia-system-assist.md
---------
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* docs: deploy langflow with caddyfile and docker compose (#8120)
* initial-content
* not-json
* clarify-public key
* more-accessible-name-and-context
* exit-session
* fix: simplify GetStartedProgress percentage calculation logic (#8183)
🐛 (get-started-progress.tsx): fix calculation of totalPercentage to correctly display progress bar percentage
💡 (get-started-progress.tsx): refactor logic to calculate totalPercentage based on user opt-ins and flows
* fix: set cursor to text in text fields (#8173)
Fixed cursor being default in input fields
* feat: add datastax components bundle (#8184)
* feat: add datastax components bundle
* Update __init__.py
* Remove old astra assistants folder
* Remove old tools
* Update __init__.py
* Update test_assistants_components.py
---------
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
* feat: updated components header styling (#8085)
* Removed unused styles
* Updated node icon to follow design
* Updated node name to follow design and include Beta
* Removed Beta from node status
* Removed unused classes and parameters from GenericNode
* Changed node description padding on input
* Changed paddings and gaps
* removed unused classes
* Added accent purple foreground color to Experimental
* Fixed classes and gaps in generic node
* Fixed node name gaps
* Fixed node status classes and styling
* Removed unused classes and changed run-bg size
* Changed test to use new test id
* Changed Node Name to have beta tooltip
* Changed Build Failed icon to be a circle alert
* Changed Node Status gap and conditions to show spacings correctly
* Changed padding to not change height of other components
* Changed nodeStatus to show validation on small node
* Changed classes to show correct spacing and overflow
* Changed description size
* Fixed description text size
* Fixed input margin
* Fixed description editing not appearing when no description is available
* Fixed status not breaking words
* Updated colors
* Updated node output color
* [autofix.ci] apply automated fixes
* Changed duration style in chat
* Re-added output color
* Updated timeout on mcp server tab test
* Added more timeout to mcp server tab test
* fixed loop component test
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* ref: SQL component (#8185)
* update sql
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* feat: Loop uplift dataframe input and output (#8177)
* tests cases
* update to loop
* Update component.py
* 📝 (LoopTemplate.json): update value of a configuration key from "OPENAI_API_KEY" to "ANTHROPIC_API_KEY" in order to reflect the correct API key being used
* update json test loop
* add dataframe support for the loop component
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* fix: starter project
* update loop component and tests
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* update logic
* Update loop_basic.py
* Update Research Translation Loop.json
* fix lint
* format fix
* [autofix.ci] apply automated fixes
* reverting changes in component and vertex base
* [autofix.ci] apply automated fixes
* fix lint errors
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* update in the loop templates and component
* [autofix.ci] apply automated fixes
* Update Research Translation Loop.json
* update tests
* update the code and deprecate the old loop
* [autofix.ci] apply automated fixes
* Update loop_basic.py
* WIP FIX Loop Tests
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes
* ✨ (loop-component.spec.ts): Update test cases to use more descriptive names for components and actions for better clarity and understanding.
* ✨ (loop-component.spec.ts): refactor loop component tests to improve readability and maintainability by updating test selectors and removing redundant test steps
* update
* Update loop-component.spec.ts
* Update Research Translation Loop.json
* Update Research Translation Loop.json
* Update Research Translation Loop.json
* Update Research Translation Loop.json
* loop test fix
---------
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: Rodrigo <rodrigosilvanader@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
* fix: fixes nightly tests (#8194)
* fix: mcp test when there are a lot of flows (#8197)
* Added cursor and claude in icons
* Added one click install to cursor and claude
* Changed design of mcp server tab page
* Added function to get local platform
* Added platform specific installer json on mcp server tab
* Added FA icons for windows and linux
* Added icons to tabs
* Added endpoint to check for installed MCP servers
* Added use get installed MCP servers
* Changed to get installed
* Use installed MCP servers on server
* Correct instalation for windows and WSL
* Fixed code not selecting
* refactor: use session_scope for database session management in install_mcp_config
* refactor: change logger level from info to debug for WSL and Windows detection in install_mcp_configg
* refactor: replace subprocess with asyncio for WSL IP address retrieval in install_mcp_config
* refactor: streamline project MCP server handling and improve SSE connection management in mcp_projects.py
* refactor: remove unnecessary user dependency from project endpoints in mcp_projects.py
* refactor: unify database session management using session_scope in mcp_projects.py
* refactor: enhance project tool listing and logging in mcp_projects.py by using session_scope and changing logger level to debug
* refactor: simplify WSL detection logic in install_mcp_config by removing unnecessary variable and streamlining conditions
* Removed unused console.log
* Implemented check if Langflow is running on local machine
* Fixed backend to generate an error if trying to install from not local
* Added error handling to frontend and changed loading
* Fix check of macos
* Refactored mcp server tab test to work with new changes
* Fixed test to pass with Windows selected and check the status of Linux too
* [autofix.ci] apply automated fixes
* Changed wait for timeout for wait for selector
* Fixed path.open
* Refactor test_update_project_mcp_settings to use session_scope for database service mock
* Refactor tests in test_mcp_projects.py to utilize session_scope for database session management, improving consistency and readability.
* Updated wsl to uvx
---------
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
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: Yuqi Tang <yuqi.tang@datastax.com>
Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
Co-authored-by: Rodrigo <rodrigosilvanader@gmail.com>
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* refactor: improve output selection logic and edge updating in GenericNode
* feat: enhance output rendering logic for loop and conditional components
* feat: add group_outputs flag to output components for enhanced display control
* feat: enhance output handling by adding support for hidden outputs in NodeOutputs component
* fix: update display output logic to handle tool mode correctly
* fix: improve output selection logic in NodeOutputs component
* refactor: simplify output selection logic in OutputComponent and GenericNode
* refactor: remove commented code and clean up unused memoization in various components
* refactor: clean up NodeOutputs component by removing commented code and simplifying output logic
* [autofix.ci] apply automated fixes
* feat: add group_outputs field to test_output in schema tests
* test: Skip grouped components output preview test and add wait times for stability
* fix: remove 'group_outputs' property from multiple starter project JSON files
* Revert starter_projects folder to main branch state
* Revert starter_projects folder to match origin/main exactly
* Re-sync starter_projects folder with main branch after merge conflict
* Add "group_outputs" property to various agent configurations
* test: skip progress tracking test for admin users
* test: enable progress tracking for admin users and improve component interaction
* test: remove redundant dropdown interaction and enhance multi-select functionality
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* Set names and descriptions as empty to get from flow name when empty instead of assigning the immediate name
* Changed to compare already parsed values
* changed parseString to return empty when the string is empty or have only spaces