Commit graph

5,858 commits

Author SHA1 Message Date
Edwin Jose
fe4acf419b
fix: allow passing curly braces in system instructions to the Agent component (#5092)
update agent system instructions
2024-12-05 21:36:23 +00:00
Lucas Oliveira
dd6375978b
fix: changed parameter name of agent component (#4992)
* Changed Add tool Current Date to only Current Date

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-05 20:03:08 +00:00
Cristhian Zanforlin Lousa
369126a125
refactor: use Inspector for column checks in locked state migration (#5097)
🐛 (add_persistent_locked_state.py): fix migration script to correctly check for existing 'locked' column before adding or dropping it
2024-12-05 19:11:17 +00:00
Mike Fortman
ab4a587039
feat: Persist locked state for flows (#4459)
* persist locked state for flows

* [autofix.ci] apply automated fixes

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

* 📝 (popover.tsx): Remove duplicate declaration of PopoverAnchor in popover.tsx
 (lock-flow.spec.ts): Add test for locking and unlocking a flow in the application to ensure proper functionality and saving of the flow.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2024-12-05 17:03:24 +00:00
Ali Saleh
7c01b5a040
feat: Enhance Observability with ArizePhoenixTracer Integration (#5058)
* Added ArizePhoenixTracer

* [autofix.ci] apply automated fixes

* Fixed Ruff Style Check Errors

* add Arize icon

* Fixed Mypy Errors

* Refactor ArizeIcon component to use arrow function syntax

Co-authored-by: Jeff Carpenter <jeffrey.carpenter@datastax.com>
Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-12-05 16:09:02 +00:00
Christophe Bornet
c1bd7c89c3
fix: Fix test_get_and_cache_all_types_dict (#5054) 2024-12-05 14:15:21 +01:00
Cristhian Zanforlin Lousa
6c5c6461f2
fix: add hover state on folder button when moving flow to it (#4999)
*  (index.tsx): Refactor SideBarFoldersButtonsComponent to improve code readability and maintainability. Add new functionalities such as drag and drop, folder hovering effects, and folder actions like upload, download, add, update, and delete. Update folder state management and handle loading states for various folder operations.

*  (add-folder-button.tsx): Add a new component for adding folders to the sidebar
 (folder-select-item.tsx): Add a new component for displaying folder select items in the sidebar
 (header-buttons.tsx): Add a new component for displaying header buttons in the sidebar
 (input-edit-folder-name.tsx): Add a new component for editing folder names in the sidebar
 (select-options.tsx): Add a new component for displaying select options in the sidebar
 (upload-folder-button.tsx): Add a new component for uploading folders to the sidebar
 (handle-select-change.ts): Add a new helper function for handling select changes in the sidebar
🔧 (index.tsx): Refactor sidebar folder buttons component to use new components and helpers for better organization and functionality

*  (use-on-file-drop.tsx): add support for fetching and using flows specific to the current folder in the file drop functionality
📝 (use-get-folder.ts): update the get folder query to set and use flows specific to the current folder
📝 (foldersStore.tsx): add state management for storing and setting flows specific to the current folder in the store
📝 (index.ts): add FlowType import for flows specific to the current folder in the store types

*  (flows.py): Add description field to the returned flow object in read_flows function for better data representation
♻️ (use-on-file-drop.tsx): Refactor code to use new centralized store for flows instead of accessing flowsFromCurrentFolder directly
🔧 (use-get-folder.ts): Remove setFlowsFromCurrentFolder function and directly update flows in the store within getFolderFn
🔧 (foldersStore.tsx): Remove flowsFromCurrentFolder state and setFlowsFromCurrentFolder function from the store as they are no longer needed
2024-12-04 21:06:02 +00:00
Edwin Jose
2c56177ef1
feat: Table Input for tools metadata (tool name and description) in component as tools (#4961)
*  (endpoints.py): Add support for tool_mode field in custom component update
🔧 (schemas.py): Add tool_mode field to UpdateCustomComponentRequest schema
♻️ (component.py): Refactor run_and_validate_update_outputs method to handle tool_mode field
🔧 (index.tsx): Add tool_mode property to NodeInputField component
🔧 (index.tsx): Refactor hasToolMode logic to use checkHasToolMode utility function
🔧 (mutate-template.ts): Add callback parameter to mutateTemplate function
🔧 (use-handle-new-value.tsx): Add tool_mode property to useHandleOnNewValue hook
🔧 (popover/index.tsx): Add console.log for placeholder, value, and id
🔧 (inputGlobalComponent/index.tsx): Add tool_mode property to InputGlobalComponent
🔧 (refreshParameterComponent/index.tsx): Add tool_mode property to RefreshParameterComponent
🔧 (use-post-template-value.ts): Add tool_mode parameter to usePostTemplateValue function
🔧 (nodeToolbarComponent/index.tsx): Add support for tool_mode functionality in NodeToolbarComponent
🔧 (reactflowUtils.ts): Add checkHasToolMode utility function to check for tool_mode field in template

* fix: Set default value for tool_mode in UpdateCustomComponentRequest schema

* adding table input in tool mode

adding table input

* Update component.py

update real-time refresh

* added dynamic tool description input

added dynamic tool description input

* [autofix.ci] apply automated fixes

* Update component.py

simplifying the tool mode logic

* Update component_tool.py

updated logic to be more readable

* Update component.py

* adding tool table schema as constant

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
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-12-04 20:22:14 +00:00
Ítalo Johnny
505368ece7
fix: validate 'streaming' vertex connections in graph (#5067) 2024-12-04 19:53:54 +00:00
Eric Hare
10475693e5
fix: support Astra Enhanced flag in new component (#5056)
* fix: support Astra Enhanced flag in new component

* Fiz env variable used for dynamic display
2024-12-04 07:55:57 -08:00
Christophe Bornet
24f9cac9b5
fix: Use AsyncSession in crud log and find_flow (#4691)
Use AsyncSession in crud log and find_flow
2024-12-04 15:24:23 +00:00
Christophe Bornet
ba9dea5547
fix: Use AsyncSession in some API endpoints (#4650)
* Use AsyncSession in some API endpoints

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-04 15:14:01 +00:00
Ítalo Johnny
44a3e7643a
fix: adjust GitLoader to work in a hosted environment (#5040)
* fix: add git installation to dockerfile dependencies

* chore: make input optional
2024-12-04 14:58:31 +00:00
Eric Hare
975164ebcb
fix: Support Ollama models in CrewAI Components (#4936)
* fix: Support ollama in crewai

* fix: Correct name for type of model
2024-12-04 00:32:57 +00:00
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
Eric Hare
b779a952e3
fix: handle incorrect token in AstraDB (#5030) 2024-12-03 17:40:24 +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
Eric Hare
7956f8b1ce
fix: correct param for TableInput value (#5015) 2024-12-03 15:19:23 +00:00
Eric Hare
0dc37bb98e
Track caller versions in Astra DB, fix dynamic inputs (#5016) 2024-12-03 14:16:09 +00:00
Eric Hare
7a74c01a4b
fix: update vector RAG flow for Astra DB comp changes (#5006) 2024-12-02 20:11:44 +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
Rodrigo Nader
2a9396d68e
Refactor youtube transcripts for proper tool mode 2024-12-01 01:16:21 -03: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
Gabriel Luiz Freitas Almeida
ee37ce04ef
fix: Handle DataFrame serialization and export in langflow.io (#4956) 2024-11-30 18:15:03 +00: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
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
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
Í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
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
Lucas Oliveira
79e3d3f50d
fix: removed beta from current date (#4901)
* Removed beta from current date

* [autofix.ci] apply automated fixes

* refactor: improve error message handling in CloudflareWorkersAIEmbeddings

* Fix filter sidebar test

---------

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-28 09:02:15 -08:00
Gabriel Luiz Freitas Almeida
f10dc27dfc
refactor: Remove load_from_db attribute from FIELD_FORMAT_ATTRIBUTES (#4884)
refactor: remove load_from_db attribute from template fields
2024-11-28 16:21:15 +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
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
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
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
Christophe Bornet
eb46bd4606
fix: Fix get_default_folder_id (#4893)
Fix get_default_folder_id
2024-11-27 12:41:28 -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
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