* refactor: extract method from class to new func
* test: add new tests
* refactor: simplify funcs to improve readability
* refactor: extract new func from larger func
* refactor: remove recursion from func
* refactor: remove coupling with graph and vertex
* refactor: create adapter funcs to use new code
* refactor: add test for sorting up to vertex N with is_start=True
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* feat: improve is_vertex_runnable method in RunnableVerticesManager
This commit improves the `is_vertex_runnable` method in the `RunnableVerticesManager` class. It adds an additional parameter `activated_vertices` to the method signature and updates the logic to check if a vertex is runnable based on the presence of activated vertices. This enhancement improves the accuracy of determining whether a vertex is runnable or not.
* fix: add predecessors to vertices_to_run
* style: fix lint issues
* feat: optimize vertex filtering in useFlowStore
This commit optimizes the vertex filtering logic in the `useFlowStore` function in `flowStore.ts`. It introduces a more efficient way to filter out vertices that are already being built, resulting in improved performance and accuracy.
* refactor: add is_active method to Vertex class
This commit adds the `is_active` method to the `Vertex` class in the `base.py` file. The `is_active` method checks if the state of the vertex is set to `ACTIVE` and returns a boolean value accordingly. This enhancement improves the readability and maintainability of the codebase.
* refactor: improve is_vertex_runnable method in RunnableVerticesManager
* refactor: improve find_runnable_predecessors_for_successors method in Graph class
* refactor: move test_create_function
* feat: Add aiofiles package for asyncio file support
* fix: add async component in webhook test flow
* refactor: deactivate astra db test
* refactor: remove AstraDB test and related code
* feat: add component that makes an async api call
* chore: Update langsmith and sentry-sdk dependencies to latest versions
* refactor(base.py): refactor logic to find start_component_id based on multiple keywords for improved flexibility and readability
* feat(schema.py): add WebhookInput component type to INPUT_COMPONENTS list for handling webhook inputs in the graph schema
* refactor(base.py): refactor logic to determine start_component_id based on webhook or chat component presence in input vertices
* refactor: prioritize webhook component for determining start_component_id
* feat(utils.py): add function find_start_component_id to find component ID based on priority list of input types
* refactor(graph/base.py): refactor logic to find start component id in Graph class for better readability and maintainability
* test(test_webhook.py): override pytest fixture to check for OpenAI API key in environment variables before running tests
* test(test_webhook.py): update webhook json
* feat(schema.py): update WebhookInput component type name
* refactor: log package run telemetry in simplified_run_flow
* test: add test for webhook flow on run endpoint
* refactor(graph/base.py): skip unbuilt vertices when getting vertex outputs in Graph class
* refactor: simplify data_input assignment in LCTextSplitterComponent
* refactor: remove unused build method in CharacterTextSplitterComponent
* refactor: update imports in CharacterTextSplitter.py
This commit adds a new component called CreateListComponent, which is responsible for creating a list of texts. The component takes in one or more texts as input and outputs a list of Data objects. This component is useful for scenarios where a list of texts needs to be processed or manipulated.
The CreateListComponent class is added to the helpers module in the langflow.components package. It includes the necessary inputs and outputs, as well as a create_list method that generates the list of Data objects based on the input texts.
This commit also includes some minor changes to other files, such as renaming the UUIDGeneratorComponent to IDGeneratorComponent and updating import statements.
* chore: update linting workflows to include dev branch in merge_group
* Update README.md
Add 1.0 banner
* Update README.md
* chore: update package versions in pyproject.toml files
* Refactor "created_at" column type for consistency and fix cancel middleware (#2316)
* chore: update linting workflows to include dev branch in merge_group
* Update README.md
Add 1.0 banner
* Update README.md
* chore: update package versions in pyproject.toml files
* refactor: update "created_at" column type to use the "sa" module for consistency
* Update README.md
Add 1.0 banner
* chore: Remove unused import in ToolCallingAgent.py
* fix: adapt RequestCancelledMiddleware to handle cancelled requests
* chore: Remove unused import in test_helper_components.py
* refactor: Declare queue variable with explicit type in RequestCancelledMiddleware
---------
Co-authored-by: Rodrigo Nader <rodrigosilvanader@gmail.com>
* chore: Update AstraDB.py imports and method signature for search_documents
* chore: Update package versions in pyproject.toml files
* chore: Update run-name in release.yml for Langflow Release
* fix: add call to _add_documents_to_vector_store in AstraDB component
* chore: Fix missing parentheses in RequestCancelledMiddleware
* chore: Update pydantic-settings and tenacity versions
The commit updates the versions of the `pydantic-settings` and `tenacity` packages in the `poetry.lock` file. The `pydantic-settings` version is updated from 2.3.3 to 2.3.4, and the `tenacity` version is updated from 8.4.1 to 8.4.2.
* Update README.md
Add 1.0 banner
* fix fetch data to work even with autologin true
* format code
* deactivate stop button until we have a better solution (#2337)
* consistent auth error status code
* [Fix] unhandled http errors in background tasks (#2326)
* handle exceptions for background task
* revert changes that is not related to this HTTP handler exception
* Refactor model GoogleGenerativeAIModel (#2251)
* refactor model GoogleGenerativeAIModel
* adds model options
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* Fix .env values not being honored in CLI (#2336)
* chore: Update launch.json to include environment file
The launch.json file was updated to include the environment file path for the "run" command in the "Python: Flask" configuration. This change ensures that the necessary environment variables are loaded when running the backend base of Langflow frontend. The previous configuration had the environment variables set in the "env" field, but it has been removed as it is redundant with the new environment file inclusion.
* chore: Update dotenv import and environment variable handling
This commit updates the import statement for the `dotenv` module in the `__main__.py` file. It adds the `dotenv_values` function to the import statement to enable loading environment variables from a file. Additionally, it introduces a new section of code that maps environment variables to their corresponding variables and types, allowing for more flexible and dynamic configuration. The commit also updates the `run` function to update variables based on environment variables, if they are present. This change improves the handling of environment variables and enhances the configurability of the application.
* deactivate stop button until we have a better solution (#2337)
* consistent auth error status code
* [Fix] unhandled http errors in background tasks (#2326)
* handle exceptions for background task
* revert changes that is not related to this HTTP handler exception
* Refactor model GoogleGenerativeAIModel (#2251)
* refactor model GoogleGenerativeAIModel
* adds model options
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
---------
Co-authored-by: ming luo <itestmycode@gmail.com>
Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
* Update GitHub Actions workflows and dependencies (#2341)
* chore: Add GitHub Actions workflow for testing documentation build
* Fix server start command in GitHub Actions workflows
* chore: Bump langflow and langflow-base versions
* chore: Update GitHub Actions workflow for docs_test
* chore: Update typing import in __main__.py
* Fix user authentication and authorization issues (#2343)
---------
Co-authored-by: Rodrigo Nader <rodrigosilvanader@gmail.com>
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
Co-authored-by: ming luo <itestmycode@gmail.com>
Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
This commit updates the AstraDBMessageWriterComponent class in the AstraDBMessageWriter.py file to use the AstraVectorStoreComponent for vector storage. By making this change, we ensure consistency and improve code organization. This update aligns with recent changes in the AstraDBVectorStoreComponent and promotes code reuse.
The code changes in test_data_components.py update the `docs_path` variable to fix the directory path for loading components. The previous path was incorrect, and this update ensures that the correct path is used. This refactor improves the accuracy and reliability of the code.
The code changes in test_helper_components.py update the class name from DocumentToDataComponent to DocumentsToDataComponent. This refactor improves the clarity and consistency of the code.
📝 (test_custom_component.py): reorganize import statements for better readability and consistency
♻️ (test_custom_component.py): refactor build method in YourComponent class to simplify and improve code readability
The code changes update the langflow custom components to use specific input classes, such as IntInput and TextInput, instead of the generic field types. This refactor improves the clarity and type safety of the code.