Commit graph

14,569 commits

Author SHA1 Message Date
Cristhian Zanforlin Lousa
5145b7496c
refactor: Update true/false response methods to return None (#5001)
* ♻️ (conditional_router.py): refactor ConditionalRouterComponent to return None instead of self.message when condition is not met to improve code clarity and consistency

* 🐛 (conditional_router.py): fix issue where None was being returned instead of an empty string in certain cases to improve consistency and avoid potential errors

* ♻️ (conditional_router.py): Update return type of true_response and false_response methods to allow returning either Message or str for better flexibility and compatibility with different response types.
2024-12-03 16:58:23 -03:00
Cristhian Zanforlin Lousa
728a86aab0
refactor: Move RetrieverToolComponent to langchain_utilities and add legacy support (#5003)
*  (langchain_utilities): add RetrieverToolComponent to langchain_utilities package
♻️ (tools): remove RetrieverToolComponent from tools package to avoid duplication and improve organization

* style: fix import block un-sorted

* 🔧 (twoEdges.spec.ts): remove unnecessary click on "input-inspection-retriever" element to improve test clarity and efficiency

---------

Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
2024-12-03 18:21:26 +00:00
Lucas Oliveira
39027e3d5a
fix: remove "content" from "download content" on folder menu (#4990)
Remove Content from Download Content in folder
2024-12-03 17:50:20 +00:00
Eric Hare
b779a952e3
fix: handle incorrect token in AstraDB (#5030) 2024-12-03 17:40:24 +00:00
anovazzi1
fbbe887aa8
fix: change wrong component in json display (#5026)
refactor: Remove wrong CodeBlock import and replace with SimplifiedCodeTabComponent
2024-12-03 16:12:12 +00:00
anovazzi1
e14c35ceb5
Refactor: Update toTitleCase function and CrashErrorComponent (#4940)
* Refactor: Update Data class to handle different types of text inputs

The Data class in the langflow schema has been updated to handle different types of text inputs. Previously, the page_content attribute was expected to be a string, but now it can also accept other types. If the input is already a string, it is used as is. Otherwise, it is converted to a string before being assigned to the page_content attribute of the Document object.

This change improves the flexibility and robustness of the Data class, allowing it to handle a wider range of input types.

* Refactor: Update toTitleCase function to handle ignoreTitleCase option

* Refactor: Update CrashErrorComponent to add ignoreTitleCase option to the Report on GitHub button

* [autofix.ci] apply automated fixes
2024-12-03 16:01:29 +00:00
Rodrigo Nader
a8470c89a2
remove unnecessary function from youtube transcript (#4978)
* remove unnecessary function from youtube transctipt

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
2024-12-03 15:46:50 +00:00
Rodrigo Nader
53e00c8092
remove retriever component and outputs (#4979)
* remove retriever component and outputs

* [autofix.ci] apply automated fixes

* ruff check fix

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
2024-12-03 07:38:02 -08:00
anovazzi1
8e09cf3335
Refactor: Update shortcut for minimizing component (#4916)
Refactor: Update shortcut for minimizing window

Changed the shortcut for minimizing the window from "mod+shift+q" to "mod+." in order to align with the default shortcuts. This improves the consistency and usability of the application.
2024-12-03 15:27:22 +00:00
Eric Hare
7956f8b1ce
fix: correct param for TableInput value (#5015) 2024-12-03 15:19:23 +00:00
Lucas Oliveira
60d8e48488
fix: changed cursor on slider to cursor-pointer (#4991)
changed cursor on slider to cursor-pointer
2024-12-03 15:10:13 +00:00
Lucas Oliveira
7a54a82fb4
fix: add padding to search bar for it to align with images on templates screen (#4993)
* Fix search bar alignment on templates screen

*  (youtube-transcripts.spec.ts): remove unnecessary step of filling language field before running the test to improve test efficiency

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2024-12-03 14:57:52 +00:00
yabi90
4b08696947
refactor: Improve Timeout Handling, Simplify Link Logic, and Enhance Cleanup (#4744)
* Refactor NoticeAlert: Improve Timeout Handling, Simplify Link Logic, and Enhance Cleanup

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-03 14:32:36 +00:00
Eric Hare
0dc37bb98e
Track caller versions in Astra DB, fix dynamic inputs (#5016) 2024-12-03 14:16:09 +00:00
Luis Felipe Salazar Ucros
fcff5e4e48
fix: sambanova streaming (#5002)
fix: add sseclient-py dependency to fix sambanova streaming
2024-12-03 13:28:31 +00:00
Mendon Kissling
9c0dfc3c17
docs: add uv installation (#5011)
* add-uv-option-to-installation-page

* uv-readme

* quickstart
2024-12-03 13:07:50 +00:00
Eric Hare
9f3663e560
fix: Update components-loaders.md for accuracy with Unstructured (#5014) 2024-12-02 22:20:18 +00:00
Eric Hare
7a74c01a4b
fix: update vector RAG flow for Astra DB comp changes (#5006) 2024-12-02 20:11:44 +00:00
Lucas Oliveira
008c65b6b7
docs: update docs for global variables page and security (#4878)
* Added best practices document

* Refactored global variables page

* added category

* move-security-page

* link

* Removed title from Security Best Practices

* Avoid empty headings

* Sentence case for headings

* Remove general best practices not related to Langflow

* Add bulleted list instead of numbered list

* changed default secret locations to use the default secret key locations

* Add periods on end of sentences

* Changed title to be imperative

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2024-12-02 19:32:57 +00:00
Eric Hare
19d2974904
feat: Support for Autodetect in AstraDBVectorStore settings (#4869)
* feat: first pass at autodetect updates

* [autofix.ci] apply automated fixes

* Fully support autodetect

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-02 16:37:14 +00:00
Phil Miesle
269bc8fa63
allowing Server File Path to be Message or Data (#4995)
* allowing Server File Path to be Message or Data

* [autofix.ci] apply automated fixes

* Ruff check updates

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
2024-12-02 16:27:48 +00:00
Cristhian Zanforlin Lousa
4b5c956dbe
feat: add NvidiaIcon component to support dark mode (#4994)
*  (Nvidia): Add support for dark mode in Nvidia icon by using useDarkStore hook to determine fill color based on dark mode state

* ♻️ (index.tsx): remove unnecessary console.log statement from CustomInputPopover component
2024-12-02 16:17:39 +00:00
dependabot[bot]
6f8eaf3c13
build(deps): bump astral-sh/setup-uv from 3 to 4 (#4975)
build(deps):(deps): bump astral-sh/setup-uv from 3 to 4

Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 3 to 4.
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](https://github.com/astral-sh/setup-uv/compare/v3...v4)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-02 12:35:28 +00:00
dependabot[bot]
b8e52f18b5
build(deps):(deps): bump autofix-ci/action from dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a to ff86a557419858bb967097bfc916833f5647fa8c (#4973)
build(deps):(deps): bump autofix-ci/action

Bumps [autofix-ci/action](https://github.com/autofix-ci/action) from dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a to ff86a557419858bb967097bfc916833f5647fa8c.
- [Release notes](https://github.com/autofix-ci/action/releases)
- [Commits](dd55f44df8...ff86a55741)

---
updated-dependencies:
- dependency-name: autofix-ci/action
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-02 12:29:53 +00:00
dependabot[bot]
cc1a5efe92
build(deps):(deps): bump Namchee/conventional-pr from 0.15.4 to 0.15.5 (#4974)
Bumps [Namchee/conventional-pr](https://github.com/namchee/conventional-pr) from 0.15.4 to 0.15.5.
- [Release notes](https://github.com/namchee/conventional-pr/releases)
- [Commits](https://github.com/namchee/conventional-pr/compare/v0.15.4...v0.15.5)

---
updated-dependencies:
- dependency-name: Namchee/conventional-pr
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-02 04:27:52 -08:00
Rodrigo Nader
2a9396d68e
Refactor youtube transcripts for proper tool mode 2024-12-01 01:16:21 -03:00
Cristhian Zanforlin Lousa
d0c93992d8
fix: prevent a glitch displaying run duration (#4951) 2024-11-30 20:08:53 +00:00
Gabriel Luiz Freitas Almeida
cd3848661a
fix: allow passing curly braces in messages to the Agent component (#4960) 2024-11-30 18:39:08 +00:00
Mike Fortman
d49a1b24b5
refactor: Feature flag custom chat icons and custom banner spacing changes to stay in sync with DataStax Langflow (#4845)
fix chat icons and custom banner spacing
2024-11-30 18:31:43 +00:00
Gabriel Luiz Freitas Almeida
ee37ce04ef
fix: Handle DataFrame serialization and export in langflow.io (#4956) 2024-11-30 18:15:03 +00:00
Gabriel Luiz Freitas Almeida
2f6e4582e8
chore: Remove HAR files from the repository (#4935) 2024-11-30 15:11:00 -03:00
Cristhian Zanforlin Lousa
ce12ac096c
feat: Add toolset component utilities and refactor tool mode handling (#4946) 2024-11-30 18:10:36 +00:00
Soham
9cee720365
fix: composio component not updating config state on refresh (#4910)
* fix: not changing config state on refresh

* [autofix.ci] apply automated fixes

* fix ruff check

* fix:reverted change in cloudflare

* fix:removed unused code

* [autofix.ci] apply automated fixes

* removed commented code

* [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>
2024-11-29 16:34:49 -05:00
Gabriel Luiz Freitas Almeida
243dd9da0c
ci: Add GitHub Actions workflow to store pytest durations once a day (#4937)
Add GitHub Actions workflow to store pytest durations

This commit introduces a new workflow that runs pytest and stores test durations. The workflow is scheduled to run daily at 6:30 UTC and includes steps for setting up the environment, restoring cache, running tests, and creating a pull request to update the test durations file automatically.
2024-11-29 21:09:13 +00:00
anovazzi1
f313bd248a
fix: Add icon SQLDatabaseComponent (#4756)
* refactor: Add icon to SpiderTool class in spider.py

* refactor: Add icon to SQLDatabaseComponent class in sql_database.py

* remove langchain icon in spider component
2024-11-29 20:50:59 +00:00
Gabriel Luiz Freitas Almeida
df7ee68210
fix: update sort logic to handle cycles when running component (#4957)
fix: handle cycle scenario by adjusting stop component logic in graph sorting

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-11-29 17:30:02 -03:00
Ítalo Johnny
22482d7258
fix: update temperature input type and set min/max values (#4939)
* fix: update input type and define its min and max values

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-29 20:02:50 +00:00
anovazzi1
a30298f0e3
Refactor: remove timeouts and update selectors in linkComponent.spec.ts (#4917)
* fix: update timeouts and selectors in linkComponent.spec.ts
2024-11-29 17:24:55 +00:00
anovazzi1
5e2becdf32
refactor: improve timeouts for textAreaModalComponent (#4926)
refactor: Improve reliability and performance of keyPairListComponent.spec.ts test
2024-11-29 17:15:38 +00:00
anovazzi1
da09c6a2a1
Refactor: inputComponent.spec.ts to improve performance (#4858)
Refactor inputComponent.spec.ts to improve performance
2024-11-29 17:06:53 +00:00
anovazzi1
fd399e9692
fix: Update promptModalComponent.spec.ts to use waitForSelector instead of waitForTimeout (#4920)
- Replaced the usage of waitForTimeout with waitForSelector in promptModalComponent.spec.ts to improve reliability and stability of the tests.
2024-11-29 16:58:26 +00:00
anovazzi1
ae7401bf7b
refactor: Improve keyPairListComponent.spec.ts test reliability and performance (#4906)
This commit refactors the keyPairListComponent.spec.ts file to improve the reliability and performance of the tests. It replaces the usage of `waitForTimeout` with `waitForSelector` to ensure that the necessary elements are present before proceeding with the test. This change enhances the stability and efficiency of the test suite.
2024-11-29 13:47:54 -03:00
anovazzi1
f8c9ac3289
Refactor: Update Data class to handle different types of text inputs (#4938)
The Data class in the langflow schema has been updated to handle different types of text inputs. Previously, the page_content attribute was expected to be a string, but now it can also accept other types. If the input is already a string, it is used as is. Otherwise, it is converted to a string before being assigned to the page_content attribute of the Document object.

This change improves the flexibility and robustness of the Data class, allowing it to handle a wider range of input types.
2024-11-29 13:45:30 -03:00
anovazzi1
0240315020
Refactor: improve dropdownComponent (#4855)
Refactor dropdownComponent.spec.ts to improve code readability and reliability
2024-11-29 15:57:21 +00:00
Ítalo Johnny
3ed44430ef
test: re-enable unit test (#4455) 2024-11-29 13:23:50 +00:00
Gabriel Luiz Freitas Almeida
c99f2a35bd
fix: adds better boolean check for DataFrame and fixes output display (#4933)
* feat: Add DataFrameInput to inputs module

* feat: add DataFrame support and refactor array processing

* feat: add truth value testing for DataFrame class

* refactor: remove Python 2 compatibility method from DataFrame class
2024-11-28 17:58:50 -03:00
anovazzi1
438c3afdc9
Improve test reliability and performance in toggleComponent.spec.ts (#4927)
refactor: Improve test reliability and performance in toggleComponent.spec.ts
2024-11-28 20:01:58 +00:00
Christophe Bornet
c816832b44
fix: Use async_open in a few places (#4929)
Use async_open in a few places
2024-11-28 18:06:01 +00:00
anovazzi1
877d4dc0ed
Refactor: Improve performance of sliderComponent tests (#4923) 2024-11-28 17:41:52 +00:00
anovazzi1
17560245e2
Refactor: codeAreaModalComponent.spec.ts for improved test readability and maintainability (#4928)
* refactor: Update codeAreaModalComponent.spec.ts to improve test readability and maintainability

* [autofix.ci] apply automated fixes
2024-11-28 17:33:05 +00:00