Commit graph

14,515 commits

Author SHA1 Message Date
Cristhian Zanforlin Lousa
ac69be2e8a
Fix: Disable the ComponentAsTool shortcut when the component code does not have tool_mode=True + regression tests (#4918)
 (index.tsx): Add convertTestName function to generate data-testid attribute dynamically based on display_name
🔧 (use-shortcuts.tsx): Pass hasToolMode parameter to handleToolModeWShortcut function to conditionally activate tool mode
🔧 (index.tsx): Pass hasToolMode prop to NodeToolbarComponent to enable/disable tool mode functionality
🔧 (Vector Store.spec.ts): Import and use extractAndCleanCode function to extract and clean code content
🔧 (general-bugs-component-as-tool-shortcut.spec.ts): Import and use extractAndCleanCode function to extract and clean code content
📝 (extract-and-clean-code.ts): Add utility function extractAndCleanCode to extract and clean code content from HTML page
2024-11-28 16:14:54 +00:00
anovazzi1
89e2224158
Refactor: update keyPairListComponent.spec.ts to improve test reliability and performance (#4874)
Refactor keyPairListComponent.spec.ts to improve test reliability and performance
2024-11-28 16:03:13 +00:00
Lucas Oliveira
652de10e9d
fix: edit toggle size to be consistent (#4903)
Fix editNode toggle side to be consistent
2024-11-28 15:45:09 +00:00
anovazzi1
e777e397b9
Refactor: update nestedComponent test to improve performance (#4919)
fix: update nestedComponent test to use explicit timeouts

The nestedComponent test was updated to use explicit timeouts when waiting for certain elements to appear. This ensures that the test waits for the elements to be present before proceeding, preventing any potential race conditions or flakiness in the test results.
2024-11-28 11:58:04 -03:00
anovazzi1
29e5ddc0f6
fix: Update NodeToolbarComponent to use setErrorData instead of setNoticeData (#4892)
Refactor: Update NodeToolbarComponent to use setErrorData instead of setNoticeData
2024-11-28 14:30:07 +00:00
Gabriel Luiz Freitas Almeida
712a43958c
fix: updates file size limit to use middleware and add tests for uploads (#4883) 2024-11-28 12:25:26 +00:00
Lucas Oliveira
1ec1a704dd
fix: add padding to global variables input (#4900)
* Fixed padding for badges on input component

* Removed border from emerald badge
2024-11-28 04:15:05 -08:00
Lucas Oliveira
42f8c4b20f
fix: update minimized component outdated design (#4896)
* Fix nodeStatus to show only when showNode is true

* Removed unused classes and made update not appear wrong on minimized components
2024-11-28 04:06:23 -08:00
Lucas Oliveira
2eec720a0c
fix: auto fix starter projects (#4907)
auto fix starter projects
2024-11-28 04:05:44 -08:00
Luis Felipe Salazar Ucros
cfc5365b73
feat: add sambanova component (#4908)
* feat: add sambanova component

* update param name

* add multimodal models

* feat: add sambanova icon

* feat: add sambanova

* feat: format

* feat: add sambanova import

* feat: add sambanova

* feat: add sambanova docs
2024-11-28 04:05:32 -08:00
Cristhian Zanforlin Lousa
109b1acd03
docs: standardize environment variable configuration instructions in authentication docs (#4880)
* 📝 (configuration-authentication.md): Improve formatting and readability of authentication configuration documentation. Add note recommending the use of a .env file for setting variables for security and maintainability.

* remove-export-note

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2024-11-28 01:34:24 +00:00
Siavash Safi
5307f0683f
feat: add cloudflare workers ai embeddings (#3697) 2024-11-28 00:45:48 +00:00
Eric Hare
e38af369e5
fix: Use global var if available for api endpoint (#4909)
* fix: Use global var if available for api endpoint

* Update astradb.py
2024-11-28 00:39:23 +00:00
Mendon Kissling
7e7fe19f4f
docs: send image file to the api endpoint (#4902)
* send-image-file

* env-var

* env-var

* Apply suggestions from code review

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

* flow-id

* clearer-flow-id

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2024-11-27 17:10:29 -05:00
Eric Hare
6902f1611d
fix: Successfully return agents in the Sequential Crew Component (#4899)
* fix: return the agents list in the crew code

* fix: return the agents list in the crew code

* Update crew.py
2024-11-27 13:29:18 -08:00
Gabriel Luiz Freitas Almeida
e6ebe7e206
feat: Add DataFrameInput and refactor DataSet references (#4898)
* refactor: rename DataSet to DataFrame

* feat: add DataFrameInput type and update InputTypes definition

* feat: add DataFrame type to CUSTOM_COMPONENT_SUPPORTED_TYPES

* refactor: replace DataSet with DataFrame in schema and tests
2024-11-27 21:14:04 +00:00
Cristhian Zanforlin Lousa
8fba3e1e3d
Fix: Unable to Click on Prompt in UI when It is empty and add regression test (#4904)
📝 (sanitizedHTMLWrapper/index.tsx): Update className from "m-1" to "m-1 w-full" for better styling
 (generalBugs-prompt.spec.ts): Add test for user to edit an empty prompt in the application
2024-11-27 21:04:47 +00:00
Lucas Oliveira
2f629c63a6
fix: make shortcut change work for shortcuts with two words, added sidebar shortcut, fix categories order (#4831)
* Removed sidebar shortcut

* Fixed restore default shortcut

* Added new shortcut and fixed the freezePath one

* Added shortcut to sidebar opening

* Added shortcut_mod for correct restore, added shortcut for sidebar

* Fixed freezePath shortcut name

* Refactored the shortcutName get to get the correct shortcut

* Added new toggleSidebar and fixed freezePath name

* Fix categories order

* Fix custom_component not showing the correct empty results

* Add toCamelCase function

* Refactor shortcut to work with more than one word

* Removed unused console.log

* fix ctrl not appearing
2024-11-27 20:49:42 +00:00
Christophe Bornet
eb46bd4606
fix: Fix get_default_folder_id (#4893)
Fix get_default_folder_id
2024-11-27 12:41:28 -08:00
anovazzi1
8f68222b15
Refactor: improve inputListComponent to enable deletion of the first item (#4890)
* Refactor inputListComponent to improve enable deletion of the first item

* [autofix.ci] apply automated fixes

* Refactor codeAreaModalComponent.spec.ts to improve test reliability and remove unnecessary code
2024-11-27 20:36:30 +00:00
anovazzi1
49079098b4
fix: Update host_url in getWidgetCode function (#4894)
Refactor: Update host_url in getWidgetCode function
2024-11-27 20:23:24 +00:00
anovazzi1
b9f312cfb8
Refactor: update chatInputOutput.spec.ts to improve test reliability and performance (#4853)
Refactor chatInputOutput.spec.ts to improve test reliability and performance
2024-11-27 12:16:52 -08:00
TarunAdvaithK
2a434f6844
feat: Add combinatorial reasoning as a component (#4782)
* Add Icosa's Combinatorial Reasoner as component under tools

* Remove temporary testing tool revert unit test script

* reverting changes to locks

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* Moved combinatorial reasoner component to separate icosacomputing folder for Icosa's bundle

---------

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-27 09:28:22 -08:00
anovazzi1
4d599590e2
Refactor: update fileUploadComponent.spec.ts to improve test reliability, performance and readability (#4856)
Refactor fileUploadComponent.spec.ts to improve test reliability and readability
2024-11-27 15:48:41 +00:00
Gabriel Luiz Freitas Almeida
ad43340a9a
chore: Update CI workflow job and step names for clarity and consistency (#4847)
Update CI workflow job and step names for clarity and consistency
2024-11-27 07:33:07 -08:00
Cezar Vasconcelos
4c35e0567a
fix: add missing component URLs in Component Maker (#4820)
* fix: missing component URLs

* add tags, gradient and icon to Custom Component Maker template

* Add descriptive error messages to project data assertions

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-11-27 15:13:15 +00:00
Thomas Kraxner
1e6ada3a3a
feat: make log format configurable (#4851)
* made logformat configurable

* [autofix.ci] apply automated fixes

* documentation of log format env var

* log stuff at one place in documentation

* added documentation of log environment

* check for log format

* [autofix.ci] apply automated fixes

* just load log format on custom logenv

* [autofix.ci] apply automated fixes

* no more invalid whitespaces

* fixed br s with escape

* logging error in case of invalid format string

---------

Co-authored-by: Kraxner Thomas <thomas.kraxner@illwerkevkw.at>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-27 06:28:50 -08:00
Phil Miesle
2de119b8d5
feat: defaulting tool description to the flow description in Flow as Tool (#4873)
defaulting tool description to the flow description
2024-11-27 00:48:21 +00:00
Gabriel Luiz Freitas Almeida
7e88a4760b
feat: add easier initialization to DataSet (#4864)
* feat: enhance DataSet class with improved constructor and methods for better data handling

- Added custom constructor to support various input formats including lists of Data objects, dictionaries, and existing DataFrames.
- Introduced methods `add_row` and `add_rows` for adding single or multiple rows to the DataSet.
- Updated docstrings and examples for clarity and usability.
- Ensured compatibility with pandas DataFrame operations while preserving Data object structures.

* test: add comprehensive tests for DataSet initialization and row operations

* feat: add DataSet class to schema module

* refactor: simplify DataSet initialization and improve data validation
2024-11-27 00:01:08 +00:00
Cristhian Zanforlin Lousa
159f6e5906
fix: enable database loading for OpenAI API base URL in Instagram Copywriter (#4843)
* 🐛 (Instagram Copywriter.json): fix load_from_db field to be set to true instead of false to correctly load data from the database.

* 🐛 (setup.py): Fix condition to update component versions by excluding "load_from_db" attribute
🐛 (Instagram Copywriter.json): Fix incorrect "load_from_db" value for "api_key" and "openai_api_base" properties
2024-11-26 23:32:34 +00:00
anovazzi1
5d2de860e5
Refactor: inputListComponent.spec.ts to improve test reliability and performance (#4859)
* Refactor inputListComponent.spec.ts to improve test reliability and performance

* Refactor: update intComponent tests for improved reliability and performance (#4860)

* Refactor inputListComponent.spec.ts to improve test reliability and performance

* Refactor IntComponent test to improve search reliability and performance

* Refactor test grep pattern to fix syntax error

* debuging ci

* Refactor test grep pattern to fix syntax error and improve test reliability and performance
2024-11-26 22:06:28 +00:00
Ítalo Johnny
cf30b88a91
fix: node display_name updates and display for users (#4875) 2024-11-26 21:58:06 +00:00
anovazzi1
907d9929e4
Fix: prevent infinity bug on agent (#4876)
* Fix error handling and logging in build_flow function

* Refactor: Update serialize_field function in utils.py

This commit refactors the serialize_field function in utils.py to handle additional data types. It now properly serializes BaseModel objects and dictionaries by recursively calling the serialize_field function on their values. Additionally, it ensures that all other data types are converted to strings before returning.

#4873

* update serialize
2024-11-26 21:48:00 +00:00
Gabriel Luiz Freitas Almeida
77289793c5
fix: handle different output formats in agent message processing (#4867)
* fix: handle different output formats in agent message processing

* fix: correct condition for handling Anthropic message output

* refactor: extract text output handling into separate function
2024-11-26 21:43:46 +00:00
Edwin Jose
11286778dc
docs: AstraDB as Chat Memory (#4815)
* chat memory

update in Astra as chat memory

* updated image

* docs: update chat memory documentation for external database integration and clarify session ID usage

* capitalization

* Apply suggestions from code review

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

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2024-11-26 20:46:17 +00:00
Mendon Kissling
7c4b9b6cce
docs: add Sequential Tasks Agent documentation and sidebar entry (#4877)
* docs: add Sequential Tasks Agent documentation and sidebar entry

* docs: clarify instructions for Sequential Tasks Agent in documentation

* 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>
2024-11-26 20:26:06 +00:00
anovazzi1
9158fe7e74
Refactor: improve codeAreaModalComponent.spec.ts (#4854)
* Refactor codeAreaModalComponent.spec.ts to improve readability and reliability
* [autofix.ci] apply automated fixes
2024-11-26 20:09:27 +00:00
Jordan Frazier
b5b1da7f6e
build: adds arm64 build to docker build workflow (#4872)
Adds arm64 build to docker build workflow
2024-11-26 10:00:41 -08:00
Lucas Oliveira
fc5632af78
fix: add !important to shadcn aggrid styling (#4871)
* 📝 (App.css): add style for ag-cell class to remove internal calculated line height for better UI appearance

* 📝 (App.css): update CSS to remove internal calculated line height for specific elements in ag-grid cells

* Fix ag grid shadcn theme

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2024-11-26 13:59:01 -03:00
Cristhian Zanforlin Lousa
803b5b2c1d
css: Fix AG Grid cell line height by setting internal property to none (#4870)
* 📝 (App.css): add style for ag-cell class to remove internal calculated line height for better UI appearance

* 📝 (App.css): update CSS to remove internal calculated line height for specific elements in ag-grid cells
2024-11-26 15:59:12 +00:00
anovazzi1
f90e980cb5
Refactor: floatComponent.spec.ts for improved readability, performance, and reliability (#4857)
Refactor floatComponent.spec.ts to improve readability, performance and reliability
2024-11-26 13:09:17 +00:00
Gabriel Luiz Freitas Almeida
1a057571c9
feat: introduces DataSet class to improve the experience with lists of Data (#4834)
* Add DataSet class to handle conversion between Data objects and DataFrame

* feat: enhance DataSet class with detailed docstrings and examples for better usability

* feat: add custom constructor property to DataSet for improved DataFrame compatibility

* test: add unit tests for DataSet class methods and functionality
2024-11-26 05:04:44 -08:00
anovazzi1
52b302233b
Refactor: improve generalBugsShard test code and improve test reliability (#4835) 2024-11-26 08:16:02 -03:00
Phil Miesle
97fe69c12c
Expanding Unstructured loader to take server file inputs, more file types, and API parameters (#4738)
* adding ability for APIRequest to retry and save to a file

* [autofix.ci] apply automated fixes

* adding ability for APIRequest to retry and save to a file

* [autofix.ci] apply automated fixes

* initial refactor of FileComponent to handle Data input

* shifting potentially common logic into BaseFileComponent

* improving readability and fixing problems

* [autofix.ci] apply automated fixes

* addressing linting

* [autofix.ci] apply automated fixes

* linting part 2

* [autofix.ci] apply automated fixes

* linting part 3

* preserve input fields on data objects

* [autofix.ci] apply automated fixes

* ensuring processed data is linked to correct file data object

* [autofix.ci] apply automated fixes

* addressing linting

* [autofix.ci] apply automated fixes

* refactor Unstructured to BaseFileComponent

* [autofix.ci] apply automated fixes

* linting

* refactor to new BaseData

* adding chunking strategy selector

* [autofix.ci] apply automated fixes

* fixing edge case

* allowing specific failure of missing file without forcing silent_errors

* [autofix.ci] apply automated fixes

* Fix mypy issues

* Update unstructured.py

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
2024-11-25 21:07:25 -08:00
Phil Miesle
8e55a0e5f4
feat: new AlterMetadataComponent enhances Data and Message objects with dict or Data object entries (#4634)
* creating AddMetadataComponent

* [autofix.ci] apply automated fixes

* fixing lint

* allow removal of metadata fields

* [autofix.ci] apply automated fixes

* Fix the name of alter metadata

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
2024-11-25 20:48:45 -08:00
Phil Miesle
e439d71bfa
feat: adding list of Data output to Parse Data (#4598)
* adding list of Data output to Parse Data

* [autofix.ci] apply automated fixes

* enabling connection from more List outputs

* [autofix.ci] apply automated fixes

* refactor to have single return type

* [autofix.ci] apply automated fixes

* addressing linting comments

* [autofix.ci] apply automated fixes

* apparently lint was missed...

* sigh

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
2024-11-25 20:40:59 -08:00
Phil Miesle
c6f27b5af8
Creating BaseFileComponent, integrating with API Request "to file" feature (#4731)
* adding ability for APIRequest to retry and save to a file

* [autofix.ci] apply automated fixes

* adding ability for APIRequest to retry and save to a file

* [autofix.ci] apply automated fixes

* initial refactor of FileComponent to handle Data input

* shifting potentially common logic into BaseFileComponent

* improving readability and fixing problems

* [autofix.ci] apply automated fixes

* addressing linting

* [autofix.ci] apply automated fixes

* linting part 2

* [autofix.ci] apply automated fixes

* linting part 3

* preserve input fields on data objects

* [autofix.ci] apply automated fixes

* ensuring processed data is linked to correct file data object

* [autofix.ci] apply automated fixes

* addressing linting

* [autofix.ci] apply automated fixes

* fixing edge case

* allowing specific failure of missing file without forcing silent_errors

* Base_file mypy errors

* [autofix.ci] apply automated fixes

* Update base_file.py

* Update base_file.py

* Fix starter templates

* Update test_vector_store_rag.py

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
2024-11-25 20:36:17 -08:00
Phil Miesle
654b44347b
adding ability for APIRequest to retry and save to a file (#4677)
* re-adding ability for APIRequest to retry and save to a file

* [autofix.ci] apply automated fixes

* enabling selective inclusion of httpx headers, along with response header

* [autofix.ci] apply automated fixes

* Update api_request.py

* [autofix.ci] apply automated fixes

* Update test_data_components.py

* Update test_data_components.py

* [autofix.ci] apply automated fixes

* Update api_request.py

* Update api_request.py

* Update api_request.py

* Update api_request.py

* Update api_request.py

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
2024-11-25 19:58:48 -08:00
anovazzi1
d200c8aba4
refactor: remove regression test timeouts (#4837)
refactor: Remove unnecessary wait timeouts in regression test
2024-11-26 00:57:47 +00:00
Gabriel Luiz Freitas Almeida
ad52046f20
ci: Enable release flag for TypeScript tests in nightly build workflow (#4848)
ci: Enable release flag in nightly build workflow for TypeScript tests
2024-11-25 16:52:50 -08:00