Commit graph

13,656 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
bf650ecec5
refactor: improve attribute compatibility and error messages (#3367)
* feat: Refactor how configuration attributes are handled in Component class.

* refactor: Update method name to handle singular and plural inputs.

* refactor: Add value validation for input and attribute assignment.

* test: Add test for setting invalid input in task component.

* fix: add param without underscore to inputs

* test(astra): Refactor AstraDB imports in test_astra_component (#3413)

* test(astra): Refactor AstraDB imports in test_astra_component

* fix: Add AstraVectorizeComponent to AstraDB tests.

* fix: Refactor custom component error message for setting parameter or attribute.

* test(astra): Refactor AstraDB imports in test_astra_component (#3413)

* test(astra): Refactor AstraDB imports in test_astra_component

* fix: Add AstraVectorizeComponent to AstraDB tests.

* chore: Refactor joining methods list in _set_parameter_or_attribute function.

* refactor: Refactor error message string formatting in Component class.
2024-08-21 12:34:15 +00:00
Gabriel Luiz Freitas Almeida
0db81f01f7
feat: update sequential tasks agent starter project (#3449)
* feat: update sequential tasks starter project

* feat: Refactor task agents for Researcher, Editor, and Comedian on Sequential Tasks Agent.

* refactor(langflow): Update Sequential Crew component

* refactor: Add SequentialCrewComponent for better organization.
2024-08-21 05:24:01 -07:00
ming
ae99e6927e
fix: sqlite3 lockout timeout (#3463)
sqlite3 lockout timeout
2024-08-21 12:11:19 +00:00
anovazzi1
29c3325036
fix: move css class for improve of the UI/UX (#3457)
* move css class for improve of the UI/UX

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-20 18:06:17 -03:00
Gabriel Luiz Freitas Almeida
188708281a
test(astra): Refactor AstraDB imports in test_astra_component (#3413)
* test(astra): Refactor AstraDB imports in test_astra_component

* fix: Add AstraVectorizeComponent to AstraDB tests.
2024-08-20 12:49:12 -07:00
dependabot[bot]
6ba7b257b6
build(deps): bump nltk from 3.8.1 to 3.9 (#3453)
Bumps [nltk](https://github.com/nltk/nltk) from 3.8.1 to 3.9.
- [Changelog](https://github.com/nltk/nltk/blob/develop/ChangeLog)
- [Commits](https://github.com/nltk/nltk/compare/3.8.1...3.9)

---
updated-dependencies:
- dependency-name: nltk
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-20 18:56:18 +00:00
dependabot[bot]
fea82ed6c9
build(deps):(deps): bump peter-evans/create-pull-request from 5 to 6 (#3141)
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 5 to 6.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v5...v6)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  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-08-20 18:56:06 +00:00
Uladzislau Kaminski
1a9363999c
feat: nltk text splitter support (#3403)
* feat: nltk text splitter support

* feat: add doc link to nltk text splitter

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-20 18:52:16 +00:00
Vinicios Silva
3531c07fb6
docs: Added Spanish README (#3451) 2024-08-20 11:41:13 -07:00
anovazzi1
c267cd60c1
Fix node size in nodeComponent (#3450)
* fix: set nide size directly in the nodeComponent

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-20 14:37:08 +00:00
Gabriel Luiz Freitas Almeida
ef08300054
feat: Add Sequential Task Agent Component. (#3444)
Adds a new component
2024-08-20 06:20:49 -07:00
Gabriel Luiz Freitas Almeida
1e7565ee9f
chore: lock boto3 version and update langchain versions (#3448)
* build: Update boto3 version to 1.34.162.

* ci(langchain-aws): Bump version to ^0.1.16.

* build: Update langchain-anthropic and langchain-openai versions.

* chore: set new lock file
2024-08-20 06:20:28 -07:00
Gabriel Luiz Freitas Almeida
037c0902d5
fix: update type extraction to extract inner types correctly (#3446)
* refactor: Improve post-processing of return type in type extraction.

* feat: Add support for Union[int, Sequence[str]] in post_process_type.

* refactor(langflow): Simplify return type extraction in CustomComponent.

* Refactor: Remove 'Sequence' and 'list' type options in starter projects.

* test: fix assertion

---------

Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
2024-08-20 12:48:18 +00:00
goliath-yamon
de96aee509
fix: correct indentation issue in PythonCodeStructuredTool and correct type for int and float inputs when updating custom component (#3323)
* enhancement: Update PythonCodeStructuredTool to create inputs automatically and accept global variables

* [autofix.ci] apply automated fixes

* feat: Create a tool to search using SearXNG

* [autofix.ci] apply automated fixes

* refactor: reorganize imports and type annotations in PythonCodeStructuredTool.py for clarity and consistency

* refactor: clean up imports and enhance type annotations in SearXNGTool.py for improved readability and type safety

* refactor: Improved PythonCodeStructuredTool to allow arguments to have any types

* refactor: Formatted and refactored SearXNGTool

* refactor: Allowed RunnableExecutor to stream output and changed its build method to asynchronous.

* fix: correct indentation issue in PythonCodeStructuredTool

* fix: correct type for int and float inputs when updating custom component

* [autofix.ci] apply automated fixes

* fix: change Tool to StructuredTool due to arguments in SearXNGTool

* refactor(endpoints.py): remove duplicate imports of loguru and sqlmodel to improve code readability and maintainability

---------

Co-authored-by: Haseong Kim <dynaferkim@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-08-20 11:27:41 +00:00
dependabot[bot]
4bcc560f01
build(deps): bump axios from 1.7.2 to 1.7.4 in /src/frontend (#3342)
Bumps [axios](https://github.com/axios/axios) from 1.7.2 to 1.7.4.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.7.2...v1.7.4)

---
updated-dependencies:
- dependency-name: axios
  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-08-20 11:06:50 +00:00
Gabriel Luiz Freitas Almeida
0e1155bb43
test: Add client fixture override for runnable vertices manager unit test. (#3430) 2024-08-20 04:00:38 -07:00
Gabriel Luiz Freitas Almeida
b588ac071a
feat: add endpoint to get starter projects (#3370)
* feat(api): Add endpoint to get list of starter projects with error handling.

* feat: Add test for getting starter projects with valid API key.

* [autofix.ci] apply automated fixes

* refactor(langflow): Update function name from get_all_graphs_dump to get_starter_projects_dump.

* bug: fixes route collision

* bug: fixes serialization

* chore: move endpoint to new file

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
2024-08-19 15:32:17 -07:00
Eric Hare
8accf4c64c
feat: Add Unstructured Component to Document Loaders (#3308)
* FEAT: Add Unstructured component

* Update Unstructured.py

* [autofix.ci] apply automated fixes

* Switch to FileInput

* Ensure we import the unstructured component

* Small updates to unstructured comp

* Update Unstructured.py

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-19 15:31:46 -07:00
anovazzi1
d4a1111974
fix: remove autosize on textArea inside nodes (#3436)
refactor: Update rows prop in TextAreaComponent to always be 1
2024-08-19 21:43:49 +00:00
Cristhian Zanforlin Lousa
4c496496e5
tests: improve tests removing unnecessary timeouts and decreasing some (#3437)
* feat: Add data-testid attribute to main page title

The code changes add a `data-testid` attribute to the main page title in the `PageLayout` component. This attribute can be used for testing purposes.

* refactor: Update page load timeout in end-to-end test

Reduce the page load timeout in the end-to-end test for Basic Prompting to improve test efficiency. The timeout is decreased from 2000ms to 1000ms.

* refactor: Decrease page load timeout in end-to-end test

Reduce the page load timeout in the end-to-end test for Basic Prompting to improve test efficiency. The timeout is decreased from 2000ms to 1000ms.

* refactor: Decrease page load timeout in end-to-end test

* refactor: Update page load timeout in end-to-end test

* refactor: Decrease page load timeout in end-to-end test

* refactor: Decrease page load timeout in end-to-end test

* refactor: Decrease page load timeout in end-to-end test

* refactor: Decrease page load timeout in end-to-end test

* refactor: Decrease page load timeout in end-to-end test

* refactor: Decrease page load timeout in end-to-end test

* refactor: Decrease page load timeout in end-to-end test

Reduce the page load timeout in the end-to-end test for Basic Prompting to improve test efficiency. The timeout is decreased from 2000ms to 1000ms.

* improve tests decreasing and removing time outs
2024-08-19 18:33:40 -03:00
Sai Kolasani
a2406fac72
feat: Add Perplexity Models Component (#3351) 2024-08-19 21:28:28 +00:00
Cezar Vasconcelos
5181fd880e
fix: remove json_mode and output_schema (#3385)
* refactor(AIMLModel): remove json_mode and output_schema

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-19 14:01:18 -07:00
Cristhian Zanforlin Lousa
feb3c18ef2
tests: Reduce Timeout on Tests for Basic Examples Modal (#3429)
* reducing timeout on tests basic examples modal

* reducing timeout on tests basic examples modal

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-08-19 17:11:33 -03:00
Cristhian Zanforlin Lousa
595746e797
fix: Fix api_key missing error when adding a flow in ComposIO + tests (#3432)
* 🐛 (ComposioAPI.py): Fix issue where build_config was not being updated correctly when api_key is not empty

* 🐛 (GenericNode/index.tsx): Fix potential null pointer exception by adding non-null assertion operator to info property access
 (generalBugs-shard-11.spec.ts): Add end-to-end tests to ensure users can use ComposIO without api_key error and connect tools successfully
2024-08-19 19:45:09 +00:00
Cristhian Zanforlin Lousa
886a8c6bed
fix: Remove unnecessary error return when all components are erased from a flow (#3433)
🔧 (use-save-flow.ts): remove unnecessary error data setting when saving an empty flow to improve code readability and maintainability
2024-08-19 19:39:48 +00:00
Cristhian Zanforlin Lousa
66110f24e2
tests: Add Tests for New Auto-Saving Feature (#3428)
*  (index.tsx): Add data-testid attribute to the save button for testing purposes
 (auto-save-off.spec.ts): Add end-to-end test for manually saving a flow when auto_save is off

* ⬆️ (auto-save-off.spec.ts): decrease wait time from 5000ms to 3000ms for improved test efficiency

* moving auto-save-off test to scheduled folder
2024-08-19 16:17:03 -03:00
Gabriel Luiz Freitas Almeida
75dbb68dfc
feat: add ComponentTool to support converting Component to Tool (#3412)
* feat: Add ComponentTool to convert a Component to a Tool

* test(component): add unit test for ComponentTool with ChatInput input.

* feat: Add method to convert Component to ComponentTool.

* feat: Add unit test for ChatInput to Tool conversion.

* chore: add comment

* test: fix assertion

---------

Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
2024-08-19 10:05:59 -07:00
Gabriel Luiz Freitas Almeida
149c96d26c
feat: add function to create input schema from component inputs (#3411)
* feat: Add function to create input schema from list of input types.

* feat: Add unit tests for creating input schemas.

* refactor(io): Improve input schema creation logic.

* refactor(schema): Simplify eval call in create_input_schema function.

* fix: Change ValueError to TypeError in create_input_schema to reflect correct exception.

* refactor: refactor create_input_schema to accept a list of input instances.
2024-08-19 09:36:05 -07:00
Cristhian Zanforlin Lousa
08d2d89e4f
tests: add freeze component feature test (#3365)
 (freeze.spec.ts): Add end-to-end test for freezing a component to ensure the functionality works as expected.
2024-08-19 14:15:06 +00:00
anovazzi1
0f2729da8d
refactor: add use-download-files hook for downloading files on chat (#3399)
* feat: add useGetDownloadFileMutation hook for downloading files

This commit adds a new hook called useGetDownloadFileMutation to handle the downloading of files in the frontend. The hook takes in the path and filename as parameters and uses the fetch API to download the file. It then creates a URL object for the downloaded file and sets it as the href of a dynamically created anchor element. Finally, it triggers a click event on the anchor element to initiate the file download. The URL object is revoked after the download is complete.

* feat: add use-download-files hook for downloading files on chat

This commit adds a new hook called use-download-files to handle the downloading of files in the frontend. The hook takes in the path and filename as parameters and uses the fetch API to download the file. It then creates a URL object for the downloaded file and sets it as the href of a dynamically created anchor element. Finally, it triggers a click event on the anchor element to initiate the file download. The URL object is revoked after the download is complete.

* [autofix.ci] apply automated fixes

* feat: refactor file download handling in chat view

Refactor the file download handling in the chat view by introducing a new hook called `use-download-files`. This hook takes in the path and filename as parameters and uses the fetch API to download the file. It creates a URL object for the downloaded file and sets it as the href of a dynamically created anchor element. Finally, it triggers a click event on the anchor element to initiate the file download. The URL object is revoked after the download is complete.

* remove console.log

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Cristhian Zanforlin Lousa <72977554+Cristhianzl@users.noreply.github.com>
2024-08-19 13:06:40 +00:00
anovazzi1
2a27b083f6
refactor: Update lazy loading imports in routes.tsx (#3353)
* refactor: Update lazy loading imports in routes.tsx

The code changes in `routes.tsx` refactor the lazy loading imports by removing unnecessary code duplication and reorganizing the import statements. This improves the readability and maintainability of the code.

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-19 10:00:58 -03:00
Cristhian Zanforlin Lousa
c03677c4fb
tests: add test to stop building feature (#3364)
*  (use-icons-status.tsx): Add data-testid attribute to Loading component for testing purposes
 (index.tsx): Add data-testid attribute to stop building button for testing purposes
 (stop-building.spec.ts): Add end-to-end test to ensure user can stop a building process

*  (stop-building.spec.ts): Add additional tests to ensure the user can stop a building process successfully and verify the button functionality.

* test(stop-building.spec.ts): Comment out wait timeouts

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-08-19 09:22:32 -03:00
Cristhian Zanforlin Lousa
a5cdab68bb
tests: Categorize Tests into CI and Scheduled Groups (#3391)
* categoring tests

*  (actionsMainPage-shard-1.spec.ts): Add end-to-end tests for selecting and deleting items, searching flows, and searching components on the main page to ensure proper functionality and user experience.

* 📝 (frontend/tsconfig.json): update file paths in include section to match the correct directory structure for scheduled-end-to-end tests.

* 🔧 (typescript_test.yml): update path in the command to change directory to run end-to-end tests in the frontend folder
📝 (typescript_test.yml): improve comments for better readability and understanding of the workflow logic

* add yml configuration to choose folder to run CI

* 🔧 (ci.yml): Fix formatting issues and add support for running tests in a specific folder
📝 (ci.yml): Update job dependencies to improve readability and maintainability of the workflow configuration

* ♻️ (typescript_test.yml): refactor matrix values for shardIndex and shardTotal to reduce redundancy and improve readability

* categoring tests

*  (actionsMainPage-shard-1.spec.ts): Add end-to-end tests for selecting and deleting items, searching flows, and searching components on the main page to ensure proper functionality and user experience.

* 📝 (frontend/tsconfig.json): update file paths in include section to match the correct directory structure for scheduled-end-to-end tests.

* 🔧 (typescript_test.yml): update path in the command to change directory to run end-to-end tests in the frontend folder
📝 (typescript_test.yml): improve comments for better readability and understanding of the workflow logic

* add yml configuration to choose folder to run CI

* 🔧 (ci.yml): Fix formatting issues and add support for running tests in a specific folder
📝 (ci.yml): Update job dependencies to improve readability and maintainability of the workflow configuration

* ♻️ (typescript_test.yml): refactor matrix values for shardIndex and shardTotal to reduce redundancy and improve readability

* 🐛 (fileUploadComponent.spec.ts): fix file path for file upload to correctly locate the test file in the assets folder

* changing test_folder

*  (fileUploadComponent.spec.ts): update file path for file upload test to match new file location in the project structure

* fix input on playwright command
2024-08-16 18:13:47 -03:00
Lucas Oliveira
0d60fbf3e7
fix: auto saving config (#3395)
* remove env definition from vite

* add get config query

* add save config hook to add info to autosaving and axios

* Use save config hook to get info

* Create autoSaving variable on flowsManagerStore

* Adds autoSaving from store into every place that used the env variables

* fix wrong url

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-08-16 17:23:11 -03:00
David Oplatka
b0619f59ff
fix: adds credentials fields in Vectara RAG component (#3396)
* Fix Component

* Final Edits

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-16 20:06:16 +00:00
Gabriel Luiz Freitas Almeida
d313137f8c
feat: add starter project graphs (#3369)
* feat: Add basic prompting graph function.

* feat: Add blog writer starter project function.

* feat(langflow): Add document QA starter project.

* feat: Add memory chatbot graph function to create chatbot with memory component.

* feat: Add hierarchical tasks agent graph to handle sequential tasks.

* feat: Add a function to create a sequential tasks agent with specific tasks.

* feat: Add vector_store_rag module with ingestion and RAG graphs.

* Refactor: Update the hierarchical task agent to use builder methods for agents and models.

* feat: Refactor sequential tasks agent to utilize build_model and build_output methods.

* refactor: Rename functions in blog_writer, document_qa, and vector_store_rag to end with "_graph".

* feat: Add new graphs to starter projects __init__.py.

* feat: Add complex agent graph setup with prompts, tools, and agents.

* refactor: Add complex agent graph to starter projects.

* feat: Add starter project graphs and dump retrieval functions.

* test: Refactor test_directory_without_mocks method with temporary directory for testing purposes.
2024-08-16 12:47:19 -07:00
Gabriel Luiz Freitas Almeida
212a566dfc
fix: Handle KeyError in template parameter mapping and suggest closest match if not found (#3366) 2024-08-16 12:42:36 -07:00
Gabriel Luiz Freitas Almeida
16afd44295
fix: makes outputs be correctly retrieved from edge (#3392)
* feat: Add optional target handle name in get_result method.

* fix: Improve logic to consider target handle name in ComponentVertex.

Fixes #3380
2024-08-16 19:11:59 +00:00
Gabriel Luiz Freitas Almeida
c00e687ec1
feat: add auto_save option to Settings and CLI (#3386)
* feat: Add auto save feature in Langflow run function.

* feat: Add auto_save field to ConfigResponse model.

* refactor: Move logger import to the top in __main__.py and update auto save option help message.

* refactor: Update variable names for auto save to auto saving.
2024-08-16 18:39:19 +00:00
Gabriel Luiz Freitas Almeida
93e0ffb05e
ci: allow specifying python versions and limit ci to 3.10 only (#3388)
* ci(python-test): Add ability to specify Python versions to test.

* ci: Specify Python version 3.10 for backend tests.

* build: Require python-versions input in workflow file.
2024-08-16 11:28:35 -07:00
Lucas Oliveira
00d2cffe46
fix: auto save ui and env var (#3384)
* Added new confirmation modal for saving

* Fixed save button

* fixed header classes

* updated docs link

* Added different message to auto saving

* Changed tooltip to appear in saved text, not in button

* Changed tooltip back to previous when auto saving is enabled

* changed auto_save to auto_saving

* Fixed build not appearing and icons

* Changed modal when autosave is enabled

* 🐛 (menuBar/index.tsx): fix condition for disabling save button to include isBuilding flag to prevent saving during build process

* fix current flow not being updated on set nodes and edges and fix modal not letting user leave when flow is empty

* Removed console log

* Fix add flow not adding the flow that comes from the backend

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: Cristhian Zanforlin Lousa <72977554+Cristhianzl@users.noreply.github.com>
2024-08-16 18:17:42 +00:00
Gabriel Luiz Freitas Almeida
14ca9c9f9d
fix: Sort first layer in graph initialization. (#3383) 2024-08-16 18:11:39 +00:00
Gabriel Luiz Freitas Almeida
e4e1a747f8
test: Fix assertion in test_get_vertices function. (#3387)
* test: Fix assertion in test_get_vertices function.

* test: fix set

---------

Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
2024-08-16 10:49:02 -07:00
Lucas Oliveira
dc10cdd1d5
docs: auto saving (#3389)
* Added auto saving page

* Added more auto saving documentation

* Update docs/docs/Configuration/configuration-auto-saving.md

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>

* Update docs/docs/Configuration/configuration-auto-saving.md

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>

* Update docs/docs/Configuration/configuration-auto-saving.md

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>

* Update docs/docs/Configuration/configuration-auto-saving.md

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>

* Update docs/docs/Configuration/configuration-auto-saving.md

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>

* Update docs/docs/Configuration/configuration-auto-saving.md

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2024-08-16 17:20:12 +00:00
Gabriel Luiz Freitas Almeida
c4d2dc56c7
fix(edge): Handle invalid input types when creating TargetHandle (#3368)
* fix(edge): Handle invalid input types when creating TargetHandle

* test(edge): add test for raising error on invalid target handle

* fix: mypy error union-attr

---------

Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
2024-08-16 07:52:43 -07:00
Gabriel Luiz Freitas Almeida
8de100eae3
feat: add description on graph (#3371)
* feat: Add optional description attribute to Graph class and handle description in serialization.

* refactor: Remove 'type' field from NodeData class.

* refactor: Set default graph name if not provided.

* fix: mypy error typeddict-item

---------

Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
2024-08-16 14:50:58 +00:00
anovazzi1
26bc6bc645
fix: Add TableNodeComponent and set default formatter type (#3382)
* feat: Add TableNodeComponent for rendering table data in ParameterRenderComponent

* refactor: Set default formatter type for columns in FormatColumns function

* [autofix.ci] apply automated fixes

* refactor: Improve object rendering in ObjectRender component

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-16 14:47:44 +00:00
Gabriel Luiz Freitas Almeida
640f1becf3
build(langchain-core): Update langchain-core to version 0.2.32. (#3372) 2024-08-16 06:46:21 -07:00
Anand Dev Singh
6f001c64be
fix: Corrected Changed the data type of number field from string to number (#3363)
* Changed the data type of number field from string to number

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-15 21:15:12 +00:00
Gabriel Luiz Freitas Almeida
fc95e2ec58
feat: add condition to create cycle edge (#3341)
* feat: Implement edge type based on cycles in the graph.

* refactor: Change next_runnable_vertices to a set to avoid duplicates.

* feat: Add property for cycles in Graph class.

* feat(graph): Add is_cyclic property to Graph class.

* refactor: Update test_memory_chatbot.py with new assertions and modifications.

* refactor: Update set_output_value to set_on_output in starter projects test vector store rag.

* feat: Add test for cyclic behavior in graph with max iterations.

* merge main
2024-08-15 17:03:31 +00:00