Commit graph

15,324 commits

Author SHA1 Message Date
Lucas Oliveira
7b3dc0b453
fix: edges moving on just cloned flows (#6819)
* Changed export modal to just download after flow is built

* Changed cleanEdge to set edges animated to false

* Updated starter projects and tests to remove animated from edge

* update market research json to get global variable
2025-02-26 20:46:54 +00:00
Lucas Oliveira
75ddab6011
fix: changed edge position on minimized and not updated node (#6816)
Added relative to show handle in correct position when node needs updating and is minimized
2025-02-26 20:45:50 +00:00
Christophe Bornet
d9b8211a18
build: Bump ruff version to 0.9.7 (#6614)
* Bump ruff version to 0.9.7

* [autofix.ci] apply automated fixes

* refactor: Update Gmail Agent starter project to Langflow 1.2.0

This commit updates the Gmail Agent starter project with new node IDs and configuration reflecting Langflow version 1.2.0. Changes include:
- Updated node identifiers for Agent, ChatInput, ChatOutput, and ComposioAPI
- Refreshed project metadata and version information
- Minor adjustments to node configurations and viewport settings

* [autofix.ci] apply automated fixes

* fix: Revert Gmail Agent name to original

* fix: Remove trailing comma in Gmail Agent JSON

* feat: Add tags to Gmail Agent starter project

---------

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-02-26 20:36:36 +00:00
Gabriel Luiz Freitas Almeida
0108f2f475
ci: fix Playwright browser caching in TypeScript workflow (#6840)
* ci: Optimize Playwright browser caching in TypeScript workflow

* ci: Upgrade Playwright cache action to v4

---------

Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
2025-02-26 20:31:17 +00:00
Gabriel Luiz Freitas Almeida
bca49a3335
refactor: Suppress SQLite foreign key warnings in Alembic migration (#6809)
Fix: Suppress SQLite foreign key warnings in Alembic migration

Handle SQLite-specific warnings during foreign key inspection in the Alembic migration script by using warnings.catch_warnings() to ignore foreign key constraint warnings
2025-02-26 20:16:19 +00:00
YuhangWuAI
6be666ec05
fix: prevent UnboundLocalError in MessageStoreComponent (#6802)
* fix: prevent UnboundLocalError in MessageStoreComponent

* [autofix.ci] apply automated fixes

* refactor: improve error message handling in MessageStoreComponent

* type: add type hint for stored_messages in MessageStoreComponent

---------

Co-authored-by: wuyuhang-jk <wuyuhang-jk@360shuke.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-02-26 19:55:10 +00:00
Gabriel Luiz Freitas Almeida
d092724d6a
fix: Fix crashes and enhance test reliability with session IDs (#6683)
* test: Add session ID parameter to ToolCallingAgentComponent test

* test: Add blocking for langchain_core runnables utility function

* test: Add session ID generation to agent component test

* fix: Safely delete agent message with ID check

Modify error handling in LCAgentComponent to only delete agent message if it has an ID attribute, preventing potential attribute errors

* test: Update ComponentToolkit test to use async start and verify results

Modify the test_component_tool_with_api_key test to:
- Use async_start() method for graph execution
- Add session ID to graph
- Improve result verification with vertex result tracking
- Update import path for ChatOutput component

* test: Skip cycle tests requiring LoopComponent

Update test_cycles.py to:
- Add skip markers for tests that now require a LoopComponent
- Improve error message with snapshots for debugging
- Preserve existing test logic while marking as skipped

* test: Add client fixture to tool calling agent test

Add usefixtures decorator to ensure client is available for the tool calling agent test, improving test setup and reliability

* test: Add client fixture to component tool test with API key

Enhance test_component_toolkit.py by adding the client fixture to the test_component_tool_with_api_key method, ensuring proper test setup for API key-dependent scenarios

* test: Add client fixture to agent component test with calculator

Add client fixture to the test_agent_component_with_calculator method to ensure proper test setup for API key-dependent scenarios

* test: Disable redundant component input tests

Remove commented-out test methods for checking required inputs across various components, as these tests were not providing significant value and the inputs are dynamic

* test: Comment out condition to skip nodes with Tool outputs in setup.py

* run formatter

* test: Re-enable condition to skip nodes with Tool outputs in setup.py

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-26 19:54:40 +00:00
Gabriel Luiz Freitas Almeida
85b2818ea0
ci: Add pytest-rerunfailures for improved test reliability (#6852)
* chore: Add pytest-rerunfailures plugin for test reliability

* ci: Update unit tests workflow with pytest-rerunfailures
2025-02-26 19:34:55 +00:00
Mendon Kissling
c9270bd888
docs: bump openapi.json to v1.2.0 (#6832)
* bump-api-doc-to-1.1.5

* bump-api-to-1.2.0
2025-02-26 15:03:23 +00:00
Gabriel Luiz Freitas Almeida
a94654d584
ci: Improve nightly build status check in CI workflow (#6845) 2025-02-26 11:30:33 -03:00
Mendon Kissling
c57ed6f464
docs: updates for release (#6762)
* chat-io-new-inputs

* split-text-new-inputs-and-outputs

* update-structured-data-io

* bump-python-prereq-to-3.13

* reactflow

* structured-output-component

* chat-io-page-cleanup

* typo

* collapse-nav-by-default

* move-up-api-in-sidebar

* add-text-output-to-duck-duck-go

* Apply suggestions from code review

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>

* clarify-chat-and-text-inputs

* changes-for-text-io

* no-playground-output

* Apply suggestions from code review

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

* code-review

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2025-02-25 23:08:18 +00:00
Lucas Oliveira
0134485d5d
fix: implemented build stop functionality on polling, call cancel endpoint on build cancel (#6815)
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-02-25 19:11:23 -03:00
Deon Sanchez
e98b25fd9b
fix: Improve dropdown component with null option filtering (#6830)
Improve dropdown component with null option filtering
2025-02-25 19:10:57 -03:00
Mendon Kissling
25a474c485
docs: clarify nv ingest package installation (#6822)
* typo

* clarify-nv-ingest-installation
2025-02-25 19:06:17 +00:00
Mendon Kissling
80b01c0951
docs: api pane updates (#6343)
* initial-code

* cleanup

* order-same-as-pane

* docs:javascript-js
2025-02-25 18:30:28 +00:00
Mendon Kissling
13e2a43dec
fix: markdown note in research template (#6788)
fix-markdown-anchor
2025-02-25 18:30:17 +00:00
Gabriel Luiz Freitas Almeida
d02b4573e5
feat: Add flow build cancellation endpoint and functionality (#6813)
* feat: Add flow build cancellation endpoint and support

Implement new functionality to cancel ongoing flow build jobs:
- Add `cancel_flow_build` function in build.py to handle job cancellation
- Create new `/build/{job_id}/cancel` endpoint in chat.py
- Introduce `CancelFlowResponse` schema for cancellation response
- Implement robust error handling and logging for job cancellation process

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-25 17:17:12 +00:00
Gabriel Luiz Freitas Almeida
5c81cf4b8c
fix: Update pywin32 dependency to version 307 (#6793)
* fix: update pywin32 dependency version to 307

* update syntax

Co-authored-by: Christophe Bornet <cbornet@hotmail.com>

---------

Co-authored-by: Christophe Bornet <cbornet@hotmail.com>
2025-02-25 15:43:46 +00:00
jbmolle
ea0c24e366
fix: add entity_id to the ComposioToolSet (#6805)
* fix: add entity_id to the ComposioToolSet

* feat: Add Composio API key to environment variables

* fix: Update Gmail Agent starter project to load API key from database

* fix: Configure Gmail Agent starter project to load OpenAI API key from database

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Jean-Baptiste <jb.molle@vescape.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>
2025-02-25 15:41:57 +00:00
Gabriel Luiz Freitas Almeida
73551b0d32
feat: Change default event delivery method to polling (#6811)
Change default event delivery method to polling
2025-02-25 15:17:31 +00:00
Gabriel Luiz Freitas Almeida
b5743ff980
fix: Enhance edge update logic and refactor edge data handling (#6808)
* feat: Enhance edge update logic with robust node reconciliation and type handling

Improves the `update_edges_with_latest_component_versions` function by:
- Adding comprehensive node reconciliation for missing nodes
- Implementing more robust type and handle matching
- Improving error logging and edge state tracking
- Adding detailed docstring explaining the function's complex logic
- Handling edge cases with null or missing node data
- Enhancing type conversion and handle escaping mechanisms

* refactor: update edge data
2025-02-25 15:10:45 +00:00
Christophe Bornet
afaf4ea0b1
fix: Fix URL for alembic migrations (#6806)
Fix URL for alembic migrations

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-02-25 14:35:02 +00:00
Cristhian Zanforlin Lousa
de45ea3427
Fix: error handling in data_to_text_list function (#6807)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-25 10:03:28 -03:00
Cristhian Zanforlin Lousa
d3b07f68a7
Fix: Reset Edge Update Tracking Before Success Message in UpdateAllComponents (#6797)
🔧 (.gitattributes): mark *.wav files as binary to prevent line ending conversions
♻️ (UpdateAllComponents/index.tsx): refactor code to use separate functions for resetting and starting edges update reference to improve readability and maintainability
2025-02-24 23:04:59 +00:00
Lucas Oliveira
3257c5720e
fix: handle null and boolean correctly on table parameter (#6722)
* Added Null, Undefined and Bool rendering to table

* Handling formatter to come from the backend in table definitions

* Added validator to make type as formatter and vice versa

* Added boolean case to show badge

* Added Toggle Cell Editor

* Supress Row Click Selection on Table node component

* ADd boolean as type for formatter

* Adds Boolean formatter type to show toggle editor

* run format_backend

*  (tableInputComponent.spec.ts): update unit test for table input component to use new methods for interacting with elements and improve readability and maintainability of the test code.

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-02-24 21:33:34 +00:00
Cristhian Zanforlin Lousa
5e40c5f199
test: add FE tests for new starter project templates (#6772)
*  (Research Translation Loop.spec.ts): add integration test for Research Translation Loop functionality in the frontend to ensure proper functionality and behavior.

*  (Price Deal Finder.spec.ts): Add integration test for Price Deal Finder feature
📝 (Price Deal Finder.spec.ts): Document test cases and setup for Price Deal Finder feature
♻️ (Research Translation Loop.spec.ts): Refactor test setup and add missing test case for Research Translation Loop feature

* add tests to new started projects
2025-02-24 21:27:29 +00:00
Edwin Jose
38c895994a
feat: add setter to dataframe to handle missing text_keys (#6785)
* update the templates and add error handling

* [autofix.ci] apply automated fixes

* updated changes

* update to template from main

* Update split_text.py

* Add validation for text key in DataFrame setter

---------

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-02-24 20:47:56 +00:00
Eric Hare
8f276ad94c
fix: Update Vector Store RAG template dialog order (#6740)
* fix: Update vector store template dialog order

* Update Vector Store RAG.json

* Update Vector Store RAG.json

* Restore OPENAI_API_KEY as default in VSR

* Update Vector Store RAG.json

* Update Vector Store RAG.json

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-02-24 20:41:09 +00:00
Gabriel Luiz Freitas Almeida
46be362387
chore: Update langflow and langflow-base package versions to 1.2.0 and 0.2.0 (#6759)
fix: Update package versions for langflow and langflow-base to 1.2.0 and 0.2.0 respectively
2025-02-24 20:33:17 +00:00
Cristhian Zanforlin Lousa
7b85505117
feat: Improve data handling and text formatting (loop fix) (#6771)
* 📝 (loop.py): Improve code readability and semantics by updating the return condition in the LoopComponent class
📝 (data.py): Enhance the data_to_text_list function to handle various data structures and ensure consistent text formatting
📝 (LoopTemplate.json): Update the LoopComponent class description and method implementations for better clarity and maintainability
📝 (test_data_to_text_list.py): Add unit tests to cover different scenarios and edge cases for the data_to_text_list function

* [autofix.ci] apply automated fixes

* 📝 (langflow): Add noqa comments to ignore linting rule A005 for specific files in the project. Fix type annotations and improve error handling in data.py module. Add noqa comments to ignore linting rule A005 for specific files in the project.

*  (test_data_to_text_list.py): update parameter names in pytest.mark.parametrize to improve readability and maintainability

* 🐛 (data.py): refactor error message handling in data_to_text_list function to improve readability and maintainability

* [autofix.ci] apply automated fixes

* Update src/backend/base/langflow/helpers/data.py

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

* ♻️ (data.py): refactor data_to_text_list function to simplify the logic and improve readability by removing unnecessary if conditions and updating the format_dict directly from data_obj.data.

*  (test_data.py): refactor test_data_to_text_list function to handle defaultdict behavior and improve test coverage

*  (loop-component.spec.ts): update test expectation to match the correct number of occurrences of "modified_value" in the output

*  (Memory Chatbot.spec.ts): add assertion to check if the concatenated text length is greater than 20 to ensure the chatbot response is meaningful

---------

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-02-24 20:27:34 +00:00
Cristhian Zanforlin Lousa
05935ed2f3
feat: Add option to disable vector store caching (#6713)
* add possibility to user cache or not vector stores - default is cached

* update started projects

* [autofix.ci] apply automated fixes

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

* updating vector store template

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-24 19:22:05 +00:00
Cristhian Zanforlin Lousa
87886fbbac
fix: improve edge state management using object structure (#6764)
* 🔧 (UpdateAllComponents/index.tsx): refactor the logic to track the number of edges before update and update component status for better error handling and user notification.

* ♻️ (UpdateAllComponents/index.tsx): refactor variable names for better readability and semantics
2025-02-24 17:09:59 +00:00
youyyytrok
122bc99119
fix: broken links (#6686)
* Update broken link index.tsx

* Update broken link  index.tsx
2025-02-24 17:09:45 +00:00
Mendon Kissling
c18f65cac9
docs: astra component update (#6720)
* starter-project-update

* update-component-add-vectorize

* update-quickstart

* style-cleanup

* Apply suggestions from code review

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

* split-large-steps-add-admonition

* dimensions-not-required-for-astra-vectorize

* Apply suggestions from code review

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

* fix-numbering

* Apply suggestions from code review

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

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2025-02-24 17:02:03 +00:00
Lucas Oliveira
e8d2635e1c
fix: disable resizing in TextModal (#6718)
* Created resizable parameter in TextEditorArea

* Changed resizable to false in TextModal
2025-02-24 16:40:06 +00:00
github-actions[bot]
e0b1c63c1b
chore: update test durations (#6778)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
2025-02-24 14:01:40 -03:00
Mendon Kissling
a24d3830e4
docs: nvidia ingest integration (#6735)
* initial-nvidia-ingest-content

* image

* image

* complete-flow

* numbers

* delete-superfluous-image

* update-screenshot-shrink-table

* docs: Update NVIDIA Ingest documentation with global variable instructions

* caps

* Apply suggestions from code review

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

* comments-from-code-review

* fix: clarify NVIDIA Ingest component description and instructions

* more-on-outputs

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-02-24 16:26:21 +00:00
Lucas Oliveira
dfd4a09620
fix: formatted dataframe output in chatoutput (#6717)
* Updated Chat Output to handle Dataframe without displaying other metadata

* Updated starter examples

* [autofix.ci] apply automated fixes

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

* Reverted change to allow md table to be displayed

* Added html support to md renderer

* added min width to markdown tables

* Fixed chat component markdown rendering

* Fixed starter examples

* [autofix.ci] apply automated fixes

* Updated versions

* Fixed rehypeRaw

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* fix: update get_all_flows_similar_to_project function signature and return type

---------

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>
2025-02-24 15:38:49 +00:00
Deon Sanchez
74b273f36b
fix: Improve table column styling in edit node modal (#6763)
* fix: Improve table column styling in edit node modal

* fix: Remove extra space in "Field Name" header
2025-02-21 20:38:31 +00:00
nicholas-johnson-techxcel
e82c21825b
fix: updated ChatOutput component not working with streaming enabled (#6747)
* fix: updated ChatOutput component not working with streaming enabled (#6744)

fixes: 69df913a14

Updated to handle the forgotten Generator case for self.input_value (encountered when streaming is enabled).

Overhauled the chat.py under outputs to (mostly) pass strict type checking, something which could have prevented this bug.

Only this file has been changed. The only type errors in this file are in the safe_convert function and are due to problems in other files.

To prevent further problems in the future, the project should work towards enabling strict type checking permanently after fixing the vast number of type problems.

* [autofix.ci] apply automated fixes

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

* update templates and make sure they support streaming without making breaking chnages

* update templates

* [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>
2025-02-21 19:57:49 +00:00
tianzhipeng
4ef4c93bac
fix: don't init langwatch if not configure (#6749)
* fix: don't init langwatch if not configure;

* feat: return langfuse callback for tracing

* fix: move condition to setup_langwatch

* fix: typo

---------

Co-authored-by: tianzhipeng-jk <tianzhipeng-jk@360shuke.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-02-21 18:48:04 +00:00
Deon Sanchez
feff8b681e
feat: Add loading state and skeleton UI for FlowPage sidebar (#6738)
* feat: Add loading state and skeleton UI for FlowPage sidebar

* fix: Improve UI components with minor styling and z-index adjustments

* refactor: Simplify SkeletonGroup component and update FlowPage sidebar loading state

* refactor: Adjust SkeletonGroup rendering and FlowPage sidebar styling

* refactor: Remove z-index from PageComponent loading state

* refactor: Update FlowPage sidebar skeleton height class
2025-02-21 18:43:00 +00:00
Gabriel Luiz Freitas Almeida
d545e8d302
chore: Update Docker build workflow for reliability improvements (#6760)
* fix: Update Docker build workflow to use Wandalen/wretry.action for improved reliability

* fix: Remove attempt limit and delay from Docker build workflow

* fix: Add comment to clarify provenance setting in Docker build workflow
2025-02-21 18:33:50 +00:00
Gabriel Luiz Freitas Almeida
51e3121d03
fix: Add log_package_version_task attribute to TelemetryService (#6758) 2025-02-21 13:54:26 -03:00
Gabriel Luiz Freitas Almeida
8c7eb57fd0
fix: use async thread in list files (#6754) 2025-02-21 11:42:01 -03:00
Gabriel Luiz Freitas Almeida
3940e8a94a
fix: Enhance tests and update NVIDIA Ingest installation instructions (#6753) 2025-02-21 11:05:29 -03:00
Christophe Bornet
0886bdad16
feat: Use pyproject standardized dependency-groups (#6689)
* Use pyproject standardized dependency-groups

* fix: update Python version requirement to support up to 3.14

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-02-20 20:19:45 +00:00
Jordan Frazier
400572342f
feat: add nvidia ingest component (#6333)
* initial

* cleanup

* [autofix.ci] apply automated fixes

* ruff

* add else

* update deps

* uv lock

* Make nv-ingest an optional dep

* revert change to validate

* rebase fixes

* [autofix.ci] apply automated fixes

* Update language

* add extra args to make target

* [autofix.ci] apply automated fixes

* update error language

* lockfile update

* rebase lockfile:

* [autofix.ci] apply automated fixes

* Adds nv-ingest by default to -ep docker image

* caps fixes

* update uv lock

* revert ruff upgrade

* ruff

* Fix lint

* [autofix.ci] apply automated fixes

* No code changes made.

* fix: update ruff configuration to ignore additional linting rule and allow built-in modules

* fix: update ruff command to ignore linting rule A005 during autofix

* fix: update Ruff check command to ignore linting rule A005

---------

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-02-20 19:26:03 +00:00
Christophe Bornet
41edba73c9
feat: Add support for Python 3.13 (#6685) 2025-02-20 18:13:21 +00:00
Edwin Jose
60b2e76283
fix: templates with broken connection (#6731)
update to templates
2025-02-20 18:11:19 +00:00