Commit graph

429 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
3c42c6e37d Refactor test_initial_setup.py to use RunOutputs instead of ResultData 2024-04-01 08:58:55 -03:00
Gabriel Luiz Freitas Almeida
a8779b1205 Add PythonFunctionComponent and test case for it 2024-04-01 00:13:33 -03:00
Gabriel Luiz Freitas Almeida
8a19c6b960 Add unit tests for the Record class 2024-03-29 22:20:44 -03:00
Matheus Jacques
8172e62236
Split Langflow into Langflow and Langflow Base (#1562)
* Initial Restructure

* Replace import langflow for import langflow_base

* Fix dependencies

* 🔧 chore(Makefile): refactor build process to separate base and frontend builds for better organization and maintainability

* 🚀 chore(Makefile): update build_frontend command to copy frontend build to the correct directory
🔖 chore(pyproject.toml): update python and httpx dependencies versions
🔧 chore(__init__.py): update import statement for load_flow_from_json function

* 🔖 chore(pyproject.toml): update package version from 0.0.6 to 0.0.8 to reflect changes in the codebase

* 🚀 feat(server.ts): change port variable case from lowercase port to uppercase PORT to improve semantics
🚀 feat(server.ts): add support for process.env.PORT environment variable to be able to run app on a configurable port

* 🐛 fix(server.ts): change port variable case from lowercase port to uppercase PORT to improve semantics
 feat(server.ts): add support for process.env.PORT environment variable to be able to run app on a configurable port
🚚 chore(pyproject.toml): update langflow-base version from 0.0.8 to 0.0.10
 feat(server.ts): add new agent component LCAgentComponent to langflow_base
 feat(server.ts): add new model component LCModelComponent to langflow_base
 feat(server.ts): add new helper functions docs_to_records and records_to_text to langflow_base
 feat(server.ts): add new flow helper functions list_flows, load_flow, run_flow, generate_function_for_flow, get_flow_inputs, build_schema_from_inputs to langflow_base
 feat(server.ts): add new prompt component PromptComponent to langflow_base
 feat(server.ts): add new chat components ChatInput and ChatOutput to langflow_base
 feat(server.ts): add new model component OpenAIModelComponent to langflow_base
🚚 chore(main.py): update import path from langflow.main to langflow_base.main
🚚 chore(service.py): update import path from langflow.services.database.manager to langflow_base.services.database.manager
🚚 chore(factory.py): update import path from langflow.services to langflow_base.services
🚚 chore(service.py): update import path from langflow.services.plugins to langflow_base.services.plugins
🚚 chore(utils.py): update import path from langflow.services to langflow_base.services
🚚 chore(validate.py): update import path from langflow.field_typing to langflow_base.field_typing
🚚 chore(pyproject.toml): update langflow-base version from 0.0.8 to 0.0.10

* Update Makefile to install backend dependencies and build langflow

* Add langflow main module and update __init__.py

* Update langflow install process to use implicit namespace

* Add langflow-base as a local dependency

* Add setup_poetry target to Makefile

* Update Poetry version and add poetry-monorepo-dependency-plugin

* Refactor code to improve performance and readability

* Update imports to custom and load

* Update content-hash in poetry.lock

---------

Co-authored-by: Matheus <jacquesmats@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@logspace.ai>
2024-03-26 09:26:30 -03:00
Gabriel Luiz Freitas Almeida
80aec70ac4 Add tests to run endpoint 2024-03-22 12:38:37 -03:00
Gabriel Luiz Freitas Almeida
7ae3aefa76 Add test for build ordering in complex graph 2024-03-20 16:16:30 -03:00
Gabriel Luiz Freitas Almeida
4916f7f050 Refactor App component and update test_helper_components.py 2024-03-11 18:00:53 -03:00
Gabriel Luiz Freitas Almeida
ef4b9f96e5 Refactor code for improved readability and maintainability 2024-03-11 14:27:23 -03:00
Gabriel Luiz Freitas Almeida
d4313a05ce Refactor test_helper_components.py 2024-03-09 23:39:43 -03:00
Gabriel Luiz Freitas Almeida
ece2ce5bd7 Add helper component tests 2024-03-09 23:39:09 -03:00
Gabriel Luiz Freitas Almeida
67bccdc753
Refactor cache service and fix async issues (#1512) 2024-03-09 22:55:56 -03:00
Gabriel Luiz Freitas Almeida
c0cbb0776e Add assertions for record text and source in test_url_component() 2024-03-08 23:43:26 -03:00
Gabriel Luiz Freitas Almeida
8139b743c2 Fix URLComponent build method and update test_url_component 2024-03-08 23:41:35 -03:00
Gabriel Luiz Freitas Almeida
2207b78fff Refactor test cases and add new test for URLComponent 2024-03-08 18:08:08 -03:00
Gabriel Luiz Freitas Almeida
522bd304e8 Format 2024-03-08 17:42:22 -03:00
Gabriel Luiz Freitas Almeida
ecdc0be825 Refactor directory_component.build() and add tests for loading projects and mdx files 2024-03-08 17:08:19 -03:00
Gabriel Luiz Freitas Almeida
56731ad08c Add tests for directory component and multithreading 2024-03-08 17:08:17 -03:00
Gabriel Luiz Freitas Almeida
b2c3b3b6d2 Add first api tests 2024-03-08 14:29:17 -03:00
Gabriel Luiz Freitas Almeida
1363f387e9 Refactor tests and add new test file for data components 2024-03-08 13:43:33 -03:00
Gabriel Luiz Freitas Almeida
39434eadc4 Formatting 2024-03-08 11:36:32 -03:00
Gabriel Luiz Freitas Almeida
c7ad808c9e Refactor test_loading.py to use Graph instead of Chain 2024-03-08 10:23:55 -03:00
Gabriel Luiz Freitas Almeida
7ec33d3fe0 Add test for tweak with no node id 2024-03-08 10:23:48 -03:00
Gabriel Luiz Freitas Almeida
af5933524a Remove unused test files 2024-03-08 10:23:43 -03:00
Gabriel Luiz Freitas Almeida
544f4e8265 Add initial setup tests 2024-03-07 09:57:34 -03:00
Gabriel Luiz Freitas Almeida
4daf4ffc81 Fix variable name and simplify if statements 2024-03-06 14:56:36 -03:00
Gabriel Luiz Freitas Almeida
8e6c38f195 Merge remote-tracking branch 'origin/dev' into zustand/io/migration 2024-02-29 16:21:23 -03:00
Gabriel Luiz Freitas Almeida
ba23f93463
Refactor code and fix database issues (#1484)
* Refactor chat.py for improved readability and maintainability

* Add imports and fix formatting issues

* Refactor database connection in Alembic env.py

* Add nullable columns to tables and fix foreign key constraint

* Update sqlalchemy logging level to DEBUG in alembic.ini

* Add connection and inspector objects for database reflection

* Refactor alembic initialization and migration process

* Refactor version option in main_entry_point function

* Remove pre-commit hook and format code

* Fix database inspector type hinting

* Add unique constraints and fix credential table
2024-02-29 15:22:14 -03:00
Gabriel Luiz Freitas Almeida
f8fe58bd08 Fix formatting and icon naming conventions 2024-02-28 21:50:10 -03:00
Gabriel Luiz Freitas Almeida
0c24390d9a Comment out tests until fixed 2024-02-28 20:32:44 -03:00
Gabriel Luiz Freitas Almeida
23fbb18846 Refactor code to improve performance and readability 2024-02-28 20:15:30 -03:00
Gabriel Luiz Freitas Almeida
d0f10e107e Fix tests 2024-02-28 13:17:40 -03:00
Gabriel Luiz Freitas Almeida
5b0bf9e116 Merge remote-tracking branch 'origin/dev' into zustand/io/migration 2024-02-15 18:39:59 -03:00
Gabriel Luiz Freitas Almeida
de1c00c33f Update imports and deactivate test 2024-02-15 17:24:57 -03:00
Gabriel Luiz Freitas Almeida
e1f6db660a Update import statements in test_custom_types.py 2024-02-09 08:47:22 -03:00
Gabriel Luiz Freitas Almeida
6854c25dae Merge remote-tracking branch 'origin/dev' into zustand/io/migration 2024-02-06 14:21:50 -03:00
Gabriel Luiz Freitas Almeida
392b81b519 Reapply "Refactor state management to use Zustand, migrate components to CustomComponent and other fixes"
This reverts commit f3b3d2cf68.
2024-02-05 19:02:34 -03:00
Gabriel Luiz Freitas Almeida
f3b3d2cf68
Revert "Refactor state management to use Zustand, migrate components to CustomComponent and other fixes" 2024-02-05 18:29:03 -03:00
Gabriel Luiz Freitas Almeida
1b867586c2 Update OpenAI models and options 2024-02-05 18:17:23 -03:00
Gabriel Luiz Freitas Almeida
c0c64c99c9 Update imports to use langchain_core.documents 2024-02-01 09:37:37 -03:00
Gabriel Luiz Freitas Almeida
c08b277f15 Merge remote-tracking branch 'origin/dev' into zustand/io/migration 2024-01-31 17:54:51 -03:00
Gabriel Luiz Freitas Almeida
44696a9eb4 Refactor locustfile.py: Import modules and reorder code 2024-01-30 16:16:38 -03:00
Gabriel Luiz Freitas Almeida
4b697fc0df Remove vectorstore_creator import and test_vectorstore_template.py 2024-01-30 14:03:33 -03:00
Gabriel Luiz Freitas Almeida
4918f03032 Remove test_agents_template.py and update test_zero_shot_agent, test_json_agent, and test_csv_agent 2024-01-30 11:53:21 -03:00
Gabriel Luiz Freitas Almeida
9968a6b134 Add file upload, download, list, and delete operations 2024-01-28 12:01:08 -03:00
Gabriel Luiz Freitas Almeida
bcd0151e7b Add mime type validation for file download 2024-01-27 00:11:00 -03:00
Gabriel Luiz Freitas Almeida
6fd4ac1bb9 Refactor file deletion test in test_files.py 2024-01-26 23:03:55 -03:00
Gabriel Luiz Freitas Almeida
11c9a84cbe Refactor file operations tests 2024-01-26 22:50:52 -03:00
Gabriel Luiz Freitas Almeida
2e6ea1808d Add unit tests for file upload, download, list, and delete operations 2024-01-26 22:41:21 -03:00
Gabriel Luiz Freitas Almeida
dbf0a2a920 Refactor code and fix minor issues 2024-01-26 09:45:33 -03:00
Gabriel Luiz Freitas Almeida
fccf3eeb25 Fix session loading issues in test cases 2024-01-25 19:44:33 -03:00