Commit graph

14,017 commits

Author SHA1 Message Date
Jordan Frazier
8aeb801d52
fix: exception locations in component classes (#4087)
* fix exception locations in component classes

* print cleanups

* remove randomdbs

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-09 19:58:42 +00:00
Gabriel Luiz Freitas Almeida
f74b58f22a
fix: Refactor import statements and enhance error logging (#4071)
* Refactor import paths for `get_patched_openai_client` in astra_assistants components

* Enhance error logging with file information in directory_reader.py

* Refactor MetaphorToolkit to use new input/output structure and update imports

* Enhance error message with code snippet preview in class validation function

* update import statements and refactoring input handling in JSON files.

* [autofix.ci] apply automated fixes

* Remove unused import of 'Tool' from Metaphor.py

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-09 18:58:20 +00:00
Mike Fortman
4a745aae5d
refactor: tracking updates for deleted nodes (#4027)
* tracking updates for deleted nodes

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-09 17:38:51 +00:00
Gabriel Luiz Freitas Almeida
65153374ed
feat: Add default value support for table columns (#4043)
* Add 'type', 'description', and 'default' fields to Table schema and enhance formatter validation

* Add type-based mapping to formatter validator in table schema

* Add default value support for new table rows in TableNodeComponent

* Add optional 'description' and 'default' fields to ColumnField interface

* Add default value inference for table columns in utils.ts

- Initialize 'default' property for table columns to null.
- Infer default value from the first row of data if available.
- Adjust column formatter determination based on sample value.

* Add default table input validation and update formatter logic in Column model

* Add unit tests for Column class in table schema module

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-09 17:10:40 +00:00
Cristhian Zanforlin Lousa
90b2c9d577
fix: rollback truncate values on transaction/vertex tables (#4078)
📝 (model.py): Add field serializers to truncate long strings in outputs, data, and artifacts fields for better data handling and readability.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-09 16:27:23 +00:00
Edwin Jose
f6e09dacb3
fix: alembic revision autogenerate script (#4069)
* update

Autogenerated code for alembic update

run alembic revision --autogenerate

* updated script

run alembic revision --autogenerate -m

* Update e4aaf16201c2_update_description_columns_type_errors.py

updated the reviews and checks if the table exists or not.

* update

Autogenerated code for alembic update

run alembic revision --autogenerate

* updated script

run alembic revision --autogenerate -m

* Update e4aaf16201c2_update_description_columns_type_errors.py

updated the reviews and checks if the table exists or not.

* replace revision

* Delete e4aaf16201c2_update_description_columns_type_errors.py

* Update 5ace73a7f223_new_remove_table_upgrade_op.py

making relevant change to remove vertex_build related upgrades and downgrades.

---------

Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com>
2024-10-09 09:17:17 -07:00
Mendon Kissling
09fbcb2a16
Docs: add agent starter flows (#3969) 2024-10-09 15:01:50 +00:00
Gabriel Luiz Freitas Almeida
8d88fc3059
chore: Add 'unsafe_fix' target to Makefile (#4081)
Add 'unsafe_fix' target to Makefile for applying unsafe fixes with ruff
2024-10-09 14:37:26 +00:00
Christophe Bornet
8ddab95ac4
ref: Add ruff rules for TRY2 and TRY002 (#4077)
Add ruff rules for TRY2 and TRY002
2024-10-09 14:04:00 +00:00
Christophe Bornet
66be632086
ref: Add ruff rules for blind exceptions (BLE) (#4076)
Add ruff rules for blind exceptions (BLE)
2024-10-09 15:40:53 +02:00
anovazzi1
d0bfac3e7e
feature: Hide integrations (#4074)
* hide integrations

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-09 13:04:06 +00:00
João
04fa6351a2
fix: refactoring Merge Data component (#4059)
* fix: refactoring Merge Data component to properly mesrge different Data objects

* fix: refactoring Merge Data component to properly mesrge different Data objects

* fix: refactoring MergeData active component
2024-10-08 21:40:45 +00:00
Christophe Bornet
d4818a37ee
ref: Add ruff rules for pygrep-hooks (PGH) (#4042)
Add ruff rules for pygrep-hooks (PGH)
2024-10-08 23:06:20 +02:00
Christophe Bornet
da6b5eadbc
ref: Fix ruff rules in preview mode (#4039)
Fix some ruff rules from preview mode
2024-10-08 19:31:13 +00:00
Christophe Bornet
ba6838c13c
ref: Use TypeError instead of ValueError when relevant (TRY004) (#4045)
Use TypeError instead of ValueError when relevant (TRY004)
2024-10-08 19:10:57 +00:00
anovazzi1
12a381a3fa
refactor: improve parameter render component (#3995)
* refactor: update dynamic parameter in ParameterRenderComponent to false

* refactor: update CodeAreaComponent to use CodeAreaModal for node toolbar

* feat: Add EmptyParameterComponent to render empty parameters

* refactor: Add types for parameter render component

Add typescript types for the parameter render component to improve code readability and maintainability.

* feat: Add EmptyParameterComponent to render empty parameters

* refactor: Update RefreshParameterComponent to use InputProps

Update the RefreshParameterComponent to use the InputProps interface for better code readability and maintainability.

* refactor: Update InputProps in parameterRenderComponent/types.ts

Update the InputProps interface in parameterRenderComponent/types.ts to remove the Partial<OptionalInputProps> and simplify the composition of input props. This improves code readability and maintainability.

* refactor: Update InputProps in parameterRenderComponent/types.ts

* refactor: Update parameterRenderComponent/types.ts to use handleOnNewValue instead of onChange

Update the parameterRenderComponent/types.ts file to import the handleOnNewValueType from "@/CustomNodes/hooks/use-handle-new-value" and replace the onChange function with handleOnNewValue in the BaseInputProps interface. This change improves code readability and maintainability.

* update folder structure

* refactor: Update TableModal to support disabled state

Update the TableModal component to include a disabled prop, allowing the modal to be disabled when necessary. This improves the flexibility and usability of the component.

* refactor: Update parameterRenderComponent/types.ts to include TableComponentType

Update the parameterRenderComponent/types.ts file to include the TableComponentType interface, which defines the structure for a table component. This change improves code organization and maintainability.

* refactor: Update parameterRenderComponent to use TableNodeComponent from the correct folder

* refactor: Update codeAreaComponent imports and props in parameterRenderComponent

Update the imports and props in the parameterRenderComponent file to reflect the changes made in the codeAreaComponent file. This refactor improves code organization and maintainability.

* refactor: Update parameterRenderComponent/types.ts to include CodeAreaComponentType

Update the parameterRenderComponent/types.ts file to include the CodeAreaComponentType interface, which defines the structure for a code area component. This change improves code organization and maintainability.

* refactor: Remove unused import of CodeAreaComponent in nodeToolbarComponent

Remove the unused import of CodeAreaComponent in the nodeToolbarComponent file to improve code cleanliness and maintainability.

* refactor: Remove unused import of CodeAreaComponent in nodeToolbarComponent

* refactor: Remove unused import of CodeAreaComponent in nodeToolbarComponent

* refactor: Remove unused import of CodeAreaComponent in codeAreaComponent/index.tsx

* refactor: Remove unused import of CodeAreaComponent in parameterRenderComponent/index.tsx

* refactor: Update floatComponent imports and props in parameterRenderComponent

Update the imports and props in the parameterRenderComponent file to reflect the changes made in the floatComponent file. This refactor improves code organization and maintainability.

* refactor: Update floatComponent imports and props in parameterRenderComponent

* update int component path

* update int component type

* update toogle location

* refactor: Update ToggleComponentType in components/index.ts

Remove the ToggleComponentType interface from the components/index.ts file. This change is part of a refactoring effort to remove unused code and improve code organization.

* refactor: Update ToggleComponentType in components/index.ts

Remove unused ToggleComponentType interface from components/index.ts

* refactor: Update ToggleShadComponent to handle new value changes

Refactor the ToggleShadComponent to handle new value changes by passing the updated value to the handleOnNewValue function. This improves the functionality and maintainability of the component.

* refactor: Move InputFileComponent to parameterRenderComponent/components folder

Move the InputFileComponent file from the src/frontend/src/components folder to the src/frontend/src/components/parameterRenderComponent/components folder. This change improves code organization and maintainability.

* refactor: Add FileComponentType interface to parameterRenderComponent/types.ts

Add the FileComponentType interface to the parameterRenderComponent/types.ts file. This interface defines the fileTypes property for the FileComponentType, allowing for better type checking and documentation. This change improves code organization and maintainability.

* refactor: Update InputFileComponent props in parameterRenderComponent

Update the props of the InputFileComponent in the parameterRenderComponent file to match the changes made in the index.tsx file. This refactor improves code organization and maintainability.

* refactor: Move PromptAreaComponent to parameterRenderComponent/components folder

* update types prompt field

* refactor: Update PromptAreaComponent to handle new value changes

Refactor the PromptAreaComponent to handle new value changes by passing the updated value to the handleOnNewValue function. This improves the functionality and maintainability of the component.

* refactor: Move LinkComponent to parameterRenderComponent/components folder

* refactor: Add LinkComponentType interface to parameterRenderComponent/types.ts

Add the LinkComponentType interface to the parameterRenderComponent/types.ts file. This interface defines the icon and text properties for the LinkComponentType, allowing for better type checking and documentation. This change improves code organization and maintainability.

* refactor: Update LinkComponent to use InputProps in parameterRenderComponent

Update the LinkComponent in parameterRenderComponent to use the InputProps interface for better type checking and consistency. This refactor improves code organization and maintainability.

* refactor: Move KeypairListComponent to parameterRenderComponent/components folder

* refactor: Add KeyPairListComponentType interface to parameterRenderComponent/types.ts

* refactor: Update KeypairListComponent to use InputProps in parameterRenderComponent

Refactor the KeypairListComponent in parameterRenderComponent to use the InputProps interface for better type checking and consistency. This refactor improves code organization and maintainability.

* refactor: Move DictComponent to parameterRenderComponent/components folder

* refactor: Update KeyPairListComponentType interface in parameterRenderComponent/types.ts

* refactor: Update KeypairListComponent to use InputProps in parameterRenderComponent

* refactor: Move InputListComponent to parameterRenderComponent/components folder

Move the InputListComponent to the parameterRenderComponent/components folder for better code organization and maintainability.

* refactor: Add StrRenderComponentType interface to parameterRenderComponent/types.ts

* refactor: Move InputListComponent to parameterRenderComponent/components folder

* refactor: Move InputListComponent to parameterRenderComponent/components folder

* refactor: Move InputListComponent to parameterRenderComponent/components folder

Move the InputListComponent to the parameterRenderComponent/components folder for better code organization and maintainability.

* refactor: Update InputListComponent to use InputProps in parameterRenderComponent

Refactor the InputListComponent in parameterRenderComponent to use the InputProps interface for better type checking and consistency. This refactor improves code organization and maintainability.

* refactor: Move IOFieldView to IOModal/components folder

Move the IOFieldView component to the IOModal/components folder for better code organization and maintainability.

* refactor: Move DropdownComponent to parameterRenderComponent/components folder

* refactor: Add DropDownComponentType interface to parameterRenderComponent/types.ts

* refactor: Update DropdownComponent import in StrRenderComponent

Update the import statement for DropdownComponent in StrRenderComponent to reflect its new location in the parameterRenderComponent/components folder. This refactor improves code organization and maintainability.

* refactor: Update StrRenderComponent to use baseInputProps

Refactor the StrRenderComponent in parameterRenderComponent to use the baseInputProps object instead of individual props for better code organization and maintainability.

* refactor: Update StrRenderComponent to use TextAreaComponent from correct location

Update the import statement for TextAreaComponent in StrRenderComponent to reflect its new location in the parameterRenderComponent/components folder. This refactor improves code organization and maintainability.

* remove unused imports

* refactor: Add TextAreaComponentType interface to parameterRenderComponent/types.ts

* refactor: Update TextAreaComponent to use handleOnNewValue instead of onChange

Refactor the TextAreaComponent in parameterRenderComponent to use the handleOnNewValue function instead of the onChange function for better code consistency. This change aligns with the recent updates to the component's props and improves maintainability.

* refactor: Update StrRenderComponent to use baseInputProps

Refactor the StrRenderComponent in parameterRenderComponent to use the baseInputProps object instead of individual props for better code organization and maintainability.

* refactor: Move inputGlobalComponent to parameterRenderComponent/components folder

Move the inputGlobalComponent to the parameterRenderComponent/components folder to improve code organization and maintainability.

* refactor: Move inputGlobalComponent to parameterRenderComponent/components folder

* refactor: Update InputGlobalComponent to use handleOnNewValue instead of onChange

Refactor the InputGlobalComponent in parameterRenderComponent to use the handleOnNewValue function instead of the onChange function for better code consistency. This change aligns with the recent updates to the component's props and improves maintainability.

* refactor: Update StrRenderComponent to use baseInputProps

Refactor the StrRenderComponent in parameterRenderComponent to use the baseInputProps object instead of individual props for better code organization and maintainability.

* refactor: Move multiselectComponent to parameterRenderComponent/components folder

Move the multiselectComponent to the parameterRenderComponent/components folder to improve code organization and maintainability.

* refactor: Move MultiselectComponent to parameterRenderComponent/components folder

Move the MultiselectComponent to the parameterRenderComponent/components folder to improve code organization and maintainability.

* refactor: Move MultiselectComponent to parameterRenderComponent/components folder

* refactor: Move MultiselectComponent to parameterRenderComponent/components folder

* refactor: Remove unused code in StrRenderComponent

* refactor: Remove unused code in StrRenderComponent

* refactor: Remove unused code in StrRenderComponent

* [autofix.ci] apply automated fixes

*  (tableInputComponent.spec.ts): add ua-parser-js library to parse user agent information for better control handling based on OS
🔧 (tableInputComponent.spec.ts): update key press event to use the correct control key based on the user's operating system for textarea selection.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
2024-10-08 18:29:23 +00:00
anovazzi1
94a647f60d
feat: Add target="_blank" to Markdown links in NodeDescription and ChatMessage components (#4060)
* feat: Add target="_blank" to Markdown links in NodeDescription and ChatMessage components

* added gfm back
2024-10-08 16:58:23 +00:00
Christophe Bornet
f01ea48d61
ref: Add ruff rules for pylint (PL) (#4032)
* Add ruff rules for pylint (PL)

* Changes following review
2024-10-08 17:56:49 +02:00
Christophe Bornet
06c8e3d6c8
ref: Select ALL ruff rules with exclusions (#4040)
Select ALL ruff rules with exclusions
2024-10-08 14:26:53 +00:00
Gabriel Luiz Freitas Almeida
e84148ed6d
refactor: change model name extraction to use list comprehension (#4067)
Refactor model name extraction to use list comprehension for improved readability
2024-10-08 06:05:37 -07:00
Marcelo Nunes Alves
bffb0f129b
fix: Update the columns that need to change their type to text (MySQL e MariaDB) (#4026)
* fix: Update the columns that need to change their type to text

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-08 04:38:25 -07:00
Sebastián Estévez
9adf1ef2e5
Feat: Shared Component Cache Service (#4052)
split branch / PR
2024-10-07 20:58:42 -04:00
Jordan Frazier
4a574da0c0
ci: fix release workflows for uv (#4053) 2024-10-07 21:41:19 +00:00
Cristhian Zanforlin Lousa
7b3a8b829c
fix: add range_spec to AssemblyAITranscriptionJobPoller (#4061)
 (AssemblyAIPollTranscript.py): introduce RangeSpec field typing to define a range for polling interval in seconds
2024-10-07 21:29:13 +00:00
Christophe Bornet
ee3035be28
ref: Add ruff rules for perf (PERF) (#4047)
Add ruff rules for perf (PERF)
2024-10-07 21:08:36 +00:00
anovazzi1
dce5523f5e
fix: Add useUpdateNodeInternals hook to handle node class changes (#4058)
* fix: Add useUpdateNodeInternals hook to handle node class changes

* [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 <cristhian.lousa@gmail.com>
2024-10-07 18:04:07 -03:00
Ítalo Johnny
3e3d38a874
fix: missing 'field' argument in get_variable (#4041) 2024-10-07 20:58:16 +00:00
Ítalo Johnny
f9b014f5f8
fix: add validation for log_file settings field (#4050)
fix: add validation for log_file field
2024-10-07 17:54:06 -03:00
Ítalo Johnny
f7e58f96b0
fix: prevent langfuse initialization (#4057) 2024-10-07 20:38:28 +00:00
Eric Hare
3ea7be12e9
FIX: don't error when adding to canvas (#4055) 2024-10-07 20:25:17 +00:00
Ítalo Johnny
5615356a14
chore: update duckduckgo-search to the 6.3.0 (#4056) 2024-10-07 20:22:33 +00:00
Edwin Jose
4ed00cdf0e
fix: NameError for Vertex and Graph Imports in Flow Tool (#4054)
* Update flow_tool.py

- Removed unnecessary imports from TYPE_CHECKING block.
- Cleaned up import statements for better readability and organization.

* Update flow_tool.py
2024-10-07 19:42:40 +00:00
Jordan Frazier
b0bda283ff
Revert "release: bump main 1.0.19 and base 0.0.97" (#4044)
Revert "release: bump main 1.0.19 and base 0.0.97 (#4029)"

This reverts commit b4828622bb.
2024-10-07 08:01:43 -07:00
Christophe Bornet
a021009ee5
ref: Add ruff rules for Pathlib (PTH) (#4035)
Add ruff rules for Pathlib (PTH)
2024-10-07 12:24:00 +00:00
Christophe Bornet
32b5da8d1f
ref: Propagate traceback in exception logs (#4030)
Propagate traceback in exception logs
2024-10-07 14:16:58 +02:00
EDllT
79a1257b7d
fix: modified DirectoryDataComponent to support user defined custom file types (#4017)
test_data_components.py: Updated 'test_directory_component_build_with_multithreading' to expect an extra argument
2024-10-07 04:28:12 -07:00
Jordan Frazier
b4828622bb
release: bump main 1.0.19 and base 0.0.97 (#4029)
Bump to version main 1.0.19 and base 0.0.97
2024-10-04 17:24:34 -07:00
Ítalo Johnny
e07892a88e
fix: update variable fields (#4022) 2024-10-04 16:49:36 -03:00
Cristhian Zanforlin Lousa
b10708194b
fix: remove truncate to save data on DB (#4025)
🔧 (model.py): Remove unused imports and functions related to truncating long strings in database models to clean up the code and improve readability.
2024-10-04 19:48:40 +00:00
Gabriel Luiz Freitas Almeida
54dd81a681
chore: removes Poetry references from pyproject.toml and updates the project metadata (#4019)
* Remove Poetry references from pyproject.toml and update project metadata

* Remove '--no-update' flag from 'uv lock' commands in Makefile

* Add script metadata with Python version and dependencies

* Remove Poetry references and integrate UV setup in CI workflow

* Remove Poetry setup and installation from integration tests workflow

* Remove Poetry references and update workflow to use custom setup action

* Remove references to Poetry from configuration files
2024-10-04 17:24:55 +00:00
Jordan Frazier
7fe478e4b1
fix: set folder id on flows imported on startup (#4018)
* set folder id on flows imported on startup
---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-10-04 17:19:08 +00:00
Marcelo Nunes Alves
b7aed91ad9
feat: Add Redis Chat Memory (#3832)
* feat: Add Redis Chat Memory

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* Refactor password handling in RedisIndexChatMemory to use a local variable

---------

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-10-04 17:06:47 +00:00
Christophe Bornet
63beae1833
ref: Add ruff rules RUF (#4001)
Add ruff rules RUF
2024-10-04 15:01:56 +00:00
Christophe Bornet
e2d907f3c5
Add ruff rules for TYPE_CHECKING (TCH) (#3999) 2024-10-04 16:00:09 +02:00
anovazzi1
99cdaaf073
feature: Add cursor highlight feature in canvas page (#4007)
* added a color change in cursor to help user find the cursor in the canvas page

* [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 <cristhian.lousa@gmail.com>
2024-10-04 13:59:56 +00:00
Ítalo Johnny
0298596b64
fix: add user_id to component parameters to fix build (#4016) 2024-10-03 17:55:23 -03:00
Gabriel Luiz Freitas Almeida
b6546e456e
feat: add 'tags' column to 'flow' table and update models (#3986)
* Add 'tags' column to 'flow' table and update models

- Added migration script to include 'tags' column in 'flow' table.
- Updated `Flow` model to include `tags` field.
- Introduced `Tags` enum in `schema.py` for predefined tag values.

* Update `tags` column to use JSON type in Flow model

* Add conditional checks for 'tags' column in Alembic migration script

* Make 'tags' field nullable in Flow model

* Add default value for 'tags' field in Flow model

* Update default values for 'tags' field in Flow model
2024-10-03 11:20:38 -07:00
Gabriel Luiz Freitas Almeida
e395cb7f4b
chore: Add type annotation for 'status' and format multiline string in TavilyAISearch tool (#4011)
* Format multiline string in TavilySearchToolComponent description

* Add type annotation for 'status' and import 'Any' in TavilyAISearch tool
2024-10-03 17:59:57 +00:00
namastex888
350189c88d
feat(tools): add TavilyAI search tool for enhanced LLM search results (#3774)
* add tavily new icon

* feat(tools): add TavilyAI search tool for enhanced LLM search results

* [autofix.ci] apply automated fixes

* add tavily icon

* [autofix.ci] apply automated fixes

---------

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-10-03 17:38:44 +00:00
Gabriel Luiz Freitas Almeida
4d6fe61e71
chore: Update zep-python dependency to stable version 2.0.0 in pyproject.toml (#4009)
Update zep-python dependency to stable version 2.0.0 in pyproject.toml
2024-10-03 10:25:26 -07:00