Commit graph

14,437 commits

Author SHA1 Message Date
anovazzi1
ca2aa082df
fix: Improve timeout handling in Blog Writer integration test (#4811)
refactor: improve timeout handling in Blog Writer integration test
2024-11-25 12:53:15 +00:00
Gabriel Luiz Freitas Almeida
bd15071b33
refactor: updates import statements to use Pydantic in aiml_embeddings.py (#4801)
Fix import statements for Pydantic in aiml_embeddings.py
2024-11-24 09:25:36 +01:00
anovazzi1
647ceeaeeb
refactor: improve waiting logic in Basic Prompting test (#4770) 2024-11-23 16:25:53 -08:00
anovazzi1
eb960cfda1
refactor: improve test speed for Blog Writer integration (#4771) 2024-11-23 16:25:32 -08:00
Christophe Bornet
a670edd79a
feat: Bump blockbuster to v1.1.1 (#4802)
Bump blockbuster to v1.1.1
2024-11-23 14:44:41 -08:00
anovazzi1
94bdc8e305
refactor: improve timeout handling in Document QA test (#4798)
refactor: Improve page loading and timeout handling in Document QA test
2024-11-23 17:24:42 +00:00
anovazzi1
598832f4f6
refactor: Improve decision flow and remove timeouts (#4785)
* rome timeouts from test main code

* improve decision flow

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-23 09:08:35 -08:00
Karan Vaidya
3e1b22b23f
feat: improve composio oauth experience (#4613) 2024-11-23 15:23:57 +00:00
Christophe Bornet
ab63ddddbd
ref: Use blockbuster package (#4777)
* Use blockbuster package

* Upgrade blockbuster to v1.1
2024-11-23 15:05:56 +00:00
Gabriel Luiz Freitas Almeida
e61fb96504
refactor: Improve error messaging for missing message fields in memory module (#4779)
* Improve error messaging for missing message fields in memory module

* fix: Simplify return statement in NotDiamondComponent's chat result method

* Update .gitignore to exclude all .db files
2024-11-23 13:04:20 +00:00
Lucas Oliveira
1120915577
fix: clean invisible edge when toggling tool mode (#4795)
* Fix invisible edges bug

* Removed elevate edges on select

* Fix style of reconnecting edge
2024-11-23 04:53:15 -08:00
Csongor Barabasi
ef2199b317
feat: LLM routing integration via NotDiamond (#4543)
* WIP

* Integrate Notdiamond via API call

* Fix frontend lock

* Update

* Update ND integration to use HandleInput for LLM models

* Move NotDiamond out into bundles and add fallback call

* Update src/backend/base/langflow/components/notdiamond/notdiamond.py

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

* Update src/backend/base/langflow/components/notdiamond/notdiamond.py

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

* Update src/frontend/src/icons/NotDiamond/NotDiamondIcon.jsx

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

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-11-23 12:20:53 +00:00
Lucas Oliveira
39c34fc376
fix: add underline to name of component to make it look clickable on error (#4796)
Fixed underline

Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
2024-11-22 16:25:48 -06:00
Gabriel Luiz Freitas Almeida
4620669129
fix: Fix flow addition to session and handle IntegrityError for orphaned flows (#4799)
* Handle IntegrityError specifically when assigning orphaned flows to superuser

* Add missing session.add(flow) to ensure flow is added to the session before commit
2024-11-22 14:05:28 -08:00
Cristhian Zanforlin Lousa
b3181ce68a
fix: Implement useFlowUpdate hook and refactor node code management (#4783)
* 📝 (use-patch-update-flow.ts): export IPatchUpdateFlow interface for external use
 (use-update-node-code.tsx): add useFlowUpdate hook to update node in flow based on componentId and data
🔧 (index.tsx): import usePatchUpdateFlow and useFlowUpdate hooks, update node in flow when code is updated in CodeAreaModal
🔧 (index.tsx): pass componentId to CodeAreaModal to update node in flow based on componentId
🔧 (index.ts): add componentId prop to codeAreaModalPropsType for CodeAreaModal component
🔧 (index.ts): add componentId prop to codeAreaModalPropsType for CodeAreaModal component

* 🔧 (use-update-node-code.tsx): Remove unused code related to updating node code in a flow
🔧 (index.tsx): Remove unused import and function related to updating node code in a flow, refactor code to directly update node data in the nodes array instead of using a separate function.

* 📝 (use-patch-update-flow.ts): remove unnecessary export keyword from IPatchUpdateFlow interface to follow module structure conventions

* 📝 (codeAreaModal/index.tsx): remove unused import and variable 'usePatchUpdateFlow' to clean up code and improve maintainability
2024-11-22 13:19:28 -08:00
Cristhian Zanforlin Lousa
214d5a9f07
feat: add icons to API components and update Python icon SVG (#4794)
* add icons: wikipedia, serpapi, searchapi, glean, python, bing

* update glean icon

* formatting files

*  (create_data.py): add an icon attribute with the value "ListFilter" to improve visual representation of the component
📝 (python_code_structured_tool.py): update the icon attribute value from "🐍" to "Python" for better clarity and consistency

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-11-22 13:13:13 -08:00
Cristhian Zanforlin Lousa
0a42341a5c
feat: disable browser autocomplete on popover input fields (#4573)
*  (inputComponent): add 'autoComplete="off"' attribute to input components in popover and popoverObject to disable browser auto-fill feature

*  (dropdownComponent/index.tsx): add autoComplete="off" attribute to input field to disable browser autocomplete feature

*  (flowSidebarComponent/index.tsx): add 'autoComplete="off"' attribute to the search input field to disable browser autocomplete feature

* 📝 (inputComponent): Remove autoComplete="off" attribute from Input components to enable browser autocomplete feature
📝 (ui/input): Remove autoComplete="off" attribute from input element to enable browser autocomplete feature
📝 (extraSidebarComponent): Remove autoComplete="off" attribute from input element to enable browser autocomplete feature
📝 (flowSidebarComponent): Remove autoComplete="off" attribute from Input component to enable browser autocomplete feature

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-11-22 20:13:49 +00:00
Sebastián Estévez
061971f913
chore: Tighten up dependencies (#4792)
* take 1 WIP

* remove firecrawl dep from langflow package, only usage appears to be in langflow-base

* langchain-google-genai to 2.0.1 which is what we have now in the lock file

* widen ranges based on old lock file

* lock
2024-11-22 11:37:17 -08:00
Edwin Jose
230a01973e
fix: validation for tool name (#4790)
validation for tool name

Tool name validation based on open ai Schema for tool names
2024-11-22 18:56:31 +00:00
Lucas Oliveira
f440552ee9
fix: do not render page while examples are loading (#4768)
* Added check if examples load before loading all pages

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-22 10:07:16 -08:00
Phil Miesle
08849b6bab
feat: adds LangChain Fake Embeddings (#4789)
adding LangChain Fake Embeddings

Co-authored-by: Eric Hare <ericrhare@gmail.com>
2024-11-22 18:05:40 +00:00
Phil Miesle
68a0b7d6c6
fix: handle Message in path input in CSVAgentComponent (#4784)
* fixing problem handling path type

* Add type check for 'path.text' in CSV utility function

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-11-22 17:51:39 +00:00
Eric Hare
4ee53f2ea1
FIX: return all attributes in wikidata (#4786) 2024-11-22 17:35:26 +00:00
Gabriel Luiz Freitas Almeida
a06f777f9c
docs: add documentation for external database configuration (#4707)
* Add documentation for configuring external databases with Langflow

* Update title in configuration documentation to 'External Database Configuration'

* Update PostgreSQL configuration docs to include .env file usage instructions

* more-context

* fix: improve clarity in instructions for starting services in custom database configuration

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2024-11-22 17:17:35 +00:00
Edwin Jose
b3b2b2572a
fix: fixes Ollama Embeddings component (#4787)
Update ollama.py

removed unwanted parameter temperature for embedding
2024-11-22 17:10:09 +00:00
Cristhian Zanforlin Lousa
5ed32cb573
feat: Add PlaygroundButton component to flow toolbar (#4712)
*  (playground-button.tsx): Add a new PlaygroundButton component to the flowToolbarComponent to handle the display of the Playground button based on the presence of Chat Input or Chat Output components.
📝 (index.tsx): Import and use the PlaygroundButton component in the FlowToolbar component to replace the previous implementation of the Playground button display.
🔧 (applies.css): Add styling for the playground-btn-flow-toolbar class to ensure consistent styling for the Playground button in the toolbar.

* 📝 (playground-button.tsx): update import path for IOModal to point to the newModal file instead of the old one
2024-11-22 15:30:38 +00:00
anovazzi1
e208776ea2
feat: Add FolderSync icon to UpdateDataComponent in update_data.py (#4753)
* refactor: Add FolderSync icon to nodeIconsLucide in styleUtils.ts

* feat: Add FolderSync icon to UpdateDataComponent in update_data.py

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-22 05:37:50 -08:00
Cristhian Zanforlin Lousa
d31fa35586
feat: add Google icons to search-related components (#4760)
 (google_search_api.py): Add icon property to GoogleSearchAPIComponent for better visualization in the UI
 (google_serper_api.py): Add icon property to GoogleSerperAPIComponent for better visualization in the UI
📝 (styleUtils.ts): Add GoogleSearchAPI and GoogleSerperAPI icons to nodeIconsLucide for consistent styling in the frontend.
2024-11-22 09:34:00 -03:00
Cristhian Zanforlin Lousa
13321a3635
feat: rename MetaphorToolkit file to ExaSearchToolkit and update component icons (#4754) 2024-11-22 03:31:27 +00:00
anovazzi1
efca9f9aeb
refactor: Improve componentHoverAdd.spec test (#4608) 2024-11-22 00:14:45 -03:00
Samuel Matioli
84fa2fcc2f
fix(astradb_tools): sets some options as Advanced and improves descriptions (#4732)
Setting some options as Advanced
2024-11-22 02:25:18 +00:00
anovazzi1
20f26a9ccf
fix: Improve waiting logic in tweksTest.spec.ts (#4674)
Improve the waiting logic in the tweksTest.spec.ts file to ensure that the necessary elements are loaded before interacting with them. This includes using the waitForSelector function with appropriate timeouts for the modal and popover elements.
2024-11-22 02:03:51 +00:00
Rogério Chaves
1532da59f5
fix: traces inputs and outputs not being sent to tracing services (#4669)
* Fix node inputs not being captured, add runtime inputs as well to be captured by the tracers properly

* Fix outputs missing on traces due to them being reset before ending the traces because of race conditions

* Fallback to project name if none

* Remove 'dynamic inputs' to stop sending the component code every time

* fix: Add async flow name retrieval in graph building process

* fix: Retrieve flow name from database when building graph from data

* Fix: make session.exec call awaitable in chat API

* Refactor `_get_flow_name` to manage session internally

* Refactor session handling to use `async_session_scope` in chat API

* Refactor test cases to remove unnecessary async usage in mock functions

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-22 01:41:39 +00:00
Lucas Oliveira
b1a552fa9e
fix: refactor get all to fix types not being fetched before checking for outdated components (#4762)
* Added use get types to fetch types from backend using tanstack

* Updated typesStore to use new set types

* Updated project to not use getTypes anymore

* deleted unused getTypes

* add tests

* [autofix.ci] apply automated fixes

* fix tests

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.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>
2024-11-21 17:01:37 -08:00
Cristhian Zanforlin Lousa
226453a606
refactor: Replace InputComponent with Select dropdown (#4719)
* 🔧 (nodeToolbarComponent/index.tsx): improve positioning logic for node toolbar based on scale and tool mode to enhance user experience

*  (GlobalVariableModal.tsx): Refactor type selection in GlobalVariableModal to use a dropdown select component for better user experience and consistency.

* Revert "🔧 (nodeToolbarComponent/index.tsx): improve positioning logic for node toolbar based on scale and tool mode to enhance user experience"

This reverts commit 322ba353a6984fcf870cba8c82c26689381842da.

*  (GlobalVariableModal.tsx): Add data-testid attribute to SelectTrigger for testing purposes
🔧 (globalVariables.spec.ts, userSettings.spec.ts): Update test scripts to interact with the SelectTrigger using data-testid attribute for consistency and improved testing accuracy

* 📝 (userSettings.spec.ts): remove commented out code for focusElementsOnBoard function to improve code readability and maintainability
2024-11-21 16:45:01 -08:00
Cristhian Zanforlin Lousa
76890822b6
chore: remove legacy component checks and alerts (#4757)
📝 (PageComponent/index.tsx): Remove redundant useEffect hook that sets notice data for old components
📝 (flowStore.ts): Remove unnecessary check for old components in selection nodes in useFlowStore function
2024-11-21 16:44:44 -08:00
Edwin Jose
8fb19add81
fix: Error in SerpAPI search: cannot access local variable 'wrapper' where it is not associated with a value (#4758)
Update serp_api.py

fixes:  Error: Error in SerpAPI search: cannot access local variable 'wrapper' where it is not associated with a value
2024-11-21 16:44:14 -08:00
Lucas Oliveira
725a256285
fix: remove useSidebar to fix errors of SidebarWrapper when opening playground page (#4767)
* Added open to data of wrapper

* Fix PageComponent and Header to not use useSidebar anymore
2024-11-21 16:43:58 -08:00
Lucas Oliveira
69465368c1
fix: update edge z index when node is selected (#4765)
Fixed edges zindex when node selected
2024-11-21 16:43:40 -08:00
anovazzi1
6737368073
fix: Improve wait time in saveComponents.spec.ts (#4673)
Improve the wait time in the saveComponents.spec.ts file to ensure that the necessary elements are loaded before interacting with them. This helps prevent potential errors and improves the reliability of the test.
2024-11-21 16:40:39 -08:00
Lucas Oliveira
e5f73c5080
fix: update design of update component (#4761)
* Added warning color

* Implemented more colors

* Implemented warning button variant

* Added warning section to node

* Removed warning button and added warning outline to outdated components

* Added negative margin top to node for it to not move when updatable

* Fixed border to be consistent

* removed unused code

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-21 16:40:25 -08:00
Lucas Oliveira
f0febbcd40
fix: changed tooltip position on playground to improve visibility, fixed color of theme switcher on light mode (#4766)
* Implemented avoidCollisions on ShadTooltip

* Added type for avoidCollisions

* Changed tooltip position for buttons on IOModal

* Fix color of light theme switcher
2024-11-21 16:40:07 -08:00
Cristhian Zanforlin Lousa
3160c54102
fix: conditionally enable useGetFoldersQuery in AppInitPage after initial fetch (#4773)
 (AppInitPage/index.tsx): add support for refetching folders data when isFetched is true to keep data up to date
2024-11-21 21:31:19 +00:00
Gabriel Luiz Freitas Almeida
6fe7a58c8d
fix: Add validation for MessageBase type in message input conversion (#4769)
Add validation for MessageBase type in message input conversion
2024-11-21 20:21:33 +00:00
anovazzi1
8ebe1086d2
refactor: improve freeze-path.spec.ts and freeze.spec.ts files (#4618)
* refactor: Improve time and use waitForSelector in freeze-path.spec.ts

* refactor: Improve time and use waitForSelector in freeze-path.spec.ts

* fromat code

* Refactor freeze.spec.ts: Remove unnecessary code
2024-11-21 16:46:44 -03:00
anovazzi1
d0c3ed165e
docs: update guide for chat memory (#4703)
docs: Update guide for chat memory

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2024-11-21 18:59:29 +00:00
anovazzi1
13f79e58b4
docs: Update documentation for new playground in workspace overview (#4726)
* update docs to fit new playground
---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2024-11-21 18:56:38 +00:00
anovazzi1
674e7243c8
docs: update playground docs (#4704)
* fix: update playground docs

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2024-11-21 18:48:45 +00:00
Lucas Oliveira
c08d237e14
fix: changed width of sidebar to be consistent across application (#4759)
Changed width of sidebar to be 280
2024-11-21 09:45:34 -08:00
Ítalo Johnny
e728e40561
fix: ensure unique flow names when assigning to superuser and avoid adding starter projects (#4751)
* fix: ensure unique flow names when assigning to superuser

* refactor: Creates a new function with logic to rename flows

* refactor: simplify function

* Extract STARTER_FOLDER constants to a separate module

* Filter orphaned flows by excluding those in the starter folder

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-11-21 09:35:32 -08:00