This commit updates the dependencies for the Google Authentication Library and Google Calendar API. It includes the following changes:
- Upgraded google-auth to version 2.15.0
- Added google-auth-oauthlib version 1.2.1
- Added langchain-google-calendar-tools version 0.0.1
These updates ensure compatibility with the latest versions of the libraries and improve the functionality of the application.
* 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: add Maritalk icon
* feat: add Maritalk model component
* fix: update icon size
* feat: optimize MaritalkModelComponent initialization
This commit optimizes the initialization of the MaritalkModelComponent class in the Maritalk.py file. It updates the default value for the 'temperature' parameter to be within the range of 0 to 1, using the RangeSpec class. This ensures that the temperature value is valid and improves the overall functionality of the component.
* style: format maritalk svg
* feat: optimize MaritalkModelComponent initialization
This commit optimizes the initialization of the MaritalkModelComponent class in the Maritalk.py file. It updates the default value for the 'temperature' parameter to be within the range of 0 to 1, using the RangeSpec class. This ensures that the temperature value is valid and improves the overall functionality of the component.
* feat: update 'stream' parameter to be advanced in MaritalkModelComponent
This commit updates the 'stream' parameter in the MaritalkModelComponent class to be an advanced option. By setting the 'advanced' attribute to True, the 'stream' parameter will only be visible to advanced users. This change improves the usability of the component by hiding this option from regular users who do not need it.
* ThreadingInMemoryCache usage is broken. This commit addresses those issues along with missing documentation about the caching options.
* make lint & make unit_tests fixes
* removing unnecessary changes from unclear test results in last run
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* 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
* ✨ (ProfilePictureForm): add loading state to handle initial loading state
* ♻️ (use-get-profile-pictures.ts): refactor profile pictures query to process data on the server side
♻️ (ProfilePictureForm): simplify state management by removing redundant loading state
* ♻️ (use-get-profile-pictures.ts): rename ProfilePicturesResponse to ProfilePicturesQueryResponse for clarity
♻️ (use-preload-images.tsx): add loading check to useEffect to prevent unnecessary execution
♻️ (profilePictureChooserComponent): update profilePictures prop type to handle undefined and add loading to usePreloadImages
♻️ (ProfilePictureForm): remove unnecessary state and use response directly from useGetProfilePicturesQuery
* 🐛 (use-preload-images.tsx): add missing dependency 'loading' to useEffect dependency array to ensure images are preloaded correctly
feat: Update custom component attributes with load from DB fields
This commit updates the `custom_component_update` endpoint in `endpoints.py` to include the logic for updating custom component attributes with load from DB fields. The `cc_instance` is checked for the presence of a `set_attributes` method, and if it exists, the template and parameters are extracted from the code request. The load from DB fields are identified and used to update the parameters. Finally, the `set_attributes` method is called with the updated parameters. This enhancement improves the flexibility and functionality of custom components.
* chore: Update langchain-nvidia-ai-endpoints dependency to version 0.1.2
* feat: Add NVIDIAEmbeddingsComponent for generating embeddings using NVIDIA models
* feat: Add NVIDIAModelComponent for generating text using NVIDIA LLMs
* feat: Add NvidiaRerankComponent for reranking documents using the NVIDIA API and a retriever
* fix: add type ignore
* chore: Update NVIDIAEmbeddingsComponent and NVIDIAModelComponent to handle type ignore
* chore(poetry.lock): update lock
Update the dependencies in `pyproject.toml` to their latest versions. Specifically, update `chromadb` to version `0.4`, `docstring-parser` to version `0.16`, and `crewai` to version `0.36.0`. This ensures that the project is using the most up-to-date packages and improves compatibility and stability.
* feat: create boilerplate code for messages api
* centering functionality on one component
* refactor useGetMessages
* update to new type format
* refactor Session view and get messages logic
* update to session view to useGetMessageQuery
* remove old api call
* feat: create boilerplate code for messages api
* centering functionality on one component
* refactor useGetMessages
* update to new type format
* refactor Session view and get messages logic
* update to session view to useGetMessageQuery
* remove old api call
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Cristhian Zanforlin Lousa <72977554+Cristhianzl@users.noreply.github.com>
* refactor(base.py): remove unnecessary conditional statements for adding edges to predecessor and successor maps in Graph class
* refactor(graph/base.py): optimize the process of adding vertices to the set and updating the predecessor map in the Graph class
* refactor(graph/base.py): remove unnecessary line that adds vertex_id to vertices_ids set
refactor(graph/base.py): fix indentation for predecessor_map and successor_map dictionaries to improve code readability
* feat: Add vertices_being_run set to RunnableVerticesManager
This commit adds a new set called `vertices_being_run` to the `RunnableVerticesManager` class. This set keeps track of vertices that are currently running. The purpose of this set is to prevent a vertex from being considered runnable if it is already being run.
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* chore: Remove unnecessary vertex from next_runnable_vertices in RunnableVerticesManager
* feat: Update vertices_to_run logic in retrieve_vertices_order function
This commit updates the logic for retrieving the vertices to run in the `retrieve_vertices_order` function in `chat.py`. The previous implementation used the `list` function to convert the `vertices_to_run` set to a list and then concatenated it with the result of the `get_top_level_vertices` function. The updated logic uses the `union` method to combine the two sets directly. This change improves the efficiency and readability of the code.
* refactor(graph/base.py): optimize the process of adding vertices to the set and updating the predecessor map in the Graph class
* 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
fix: Remove redundant superuser only if it has never logged in
The code changes in `utils.py` check if the superuser exists and if it has never logged in. If both conditions are true, the superuser is deleted from the database. This improves the efficiency and security of the application.
* Fixed Check Code Validity to set outdated as false when type does not exist
* feat: Refactor update_template_values function
Refactor the `update_template_values` function to improve code readability and maintainability. Rename the parameters `frontend_template` to `new_template` and `raw_template` to `previous_template` for clarity. Update the variable names within the function accordingly.
* feat(update_template_field): update load_from_db in case field value is not the default
* refactor: update template values in PromptComponent
Update the `update_template_values` function in the `PromptComponent` class to improve code readability and maintainability. Rename the parameters `frontend_template` to `new_template` and `raw_template` to `previous_template` for clarity. Update the variable names within the function accordingly.
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* feat: update RunnableVerticesManager to include an update_run_state method
* feat: refactor build_run_map method in RunnableVerticesManager
This commit refactors the `build_run_map` method in the `RunnableVerticesManager` class. Instead of directly accessing the `graph` object, it now takes `predecessor_map` and `vertices_to_run` as parameters. This improves code readability and maintainability.
* fix(state): set vertices_to_run and predecessor_map correctly when updating a state
* fix: set inactive vertices to active when updating graph
* fix: add conditions to avoid duplicated vertices in maps
This commit fixes a bug in the Graph class where the predecessor and successor maps were not being updated correctly. The bug caused incorrect mapping of edges in the graph. This fix ensures that the maps are updated properly when adding edges to the graph.
* refactor: fix vertex build response in chat.py
This commit fixes the `build_vertex` function in `chat.py` to correctly handle the `VertexBuildResponse` object. The `inactivated_vertices`, `next_vertices_ids`, and `top_level_vertices` attributes are now converted to lists to remove any duplicate values. This ensures that the response object contains unique values for these attributes. The fix improves the accuracy and reliability of the vertex build process.
* style(graph/base.py): update type annotations for predecessor_map and successor_map variables to improve code readability and maintain consistency
* fix: uncomment code for stopping build in MenuBar component
* chore: update version to 0.0.83 in pyproject.toml
* chore: update version to 1.0.7 in pyproject.toml
---------
Co-authored-by: Cristhian Zanforlin Lousa <72977554+Cristhianzl@users.noreply.github.com>
* fix: add user to database if not already present in health_check
The code changes in `health_check_router.py` add functionality to check if a user with a specific ID exists in the database. If the user does not exist, the code adds the user to the database with the necessary details. This ensures that the user is present in the database for further processing in the health check.
* style(health_check_router): format