Commit Graph

16 Commits

Author SHA1 Message Date
6886828ddd 🔀 refactor(process.py): change load_flow_from_json function signature to accept either a JSON file path or a JSON object
🔀 refactor(base.py): import Chain from langchain.chains.base instead of importing it from langflow.graph.vertex.types
🔀 refactor(process.py): remove print statement from process_tweaks function
🔀 refactor(process.py): change load_flow_from_json function signature to accept optional tweaks parameter
🔀 refactor(process.py): change return type of build method in Graph class from List[Vertex] to Chain
🧪 test(loading.py): add test case for loading a flow from a JSON file and applying tweaks
🧪 test(loading.py): remove unused import statement
The import statement for Chain in base.py is now more explicit and imports it from langchain.chains.base instead of importing it from langflow.graph.vertex.types. The load_flow_from_json function in process.py now accepts either a JSON file path or a JSON object. The print statement in process_tweaks function has been removed. The load_flow_from_json function in process.py now accepts an optional tweaks parameter. The return type of the build method in the Graph class has been changed from List[Vertex] to Chain. A new test case has been added to loading.py to test loading a flow from a JSON file and applying tweaks. An unused import statement has been removed from loading.py.
2023-06-19 11:36:43 -03:00
6b5539232f 🚀 chore(server, tests): update API endpoint URLs to include version number
The API endpoint URLs have been updated to include the version number to improve the API's versioning and maintainability. The changes were made to the server.ts file and the tests that use the API endpoints.

🐛 fix(tests): update API endpoint paths in test files
The API endpoint paths in the test files were outdated and have been updated to reflect the current API version. This ensures that the tests are running against the correct endpoints and that the tests are up-to-date with the current API version.
2023-06-06 10:06:40 -03:00
3b733ada01 refactor(tests): remove unused imports and variables, fix typos and update node types 2023-05-07 20:15:29 +00:00
203b8ff6fe formatting 2023-03-31 14:06:40 -03:00
f4b51514a1 refac: change graph module structure 2023-03-29 16:12:59 -03:00
86e65575ee fix: load_flow_from_json now uses the Graph 2023-03-28 22:04:27 -03:00
c2d4d3e9c0 refactor: separating modules to fix circular import 2023-03-28 15:28:08 -03:00
7dbda097f5 feat: complex example test passing 2023-03-26 01:15:01 -03:00
8ccc22086b feat: added tests for building the langchain obj 2023-03-25 20:20:47 -03:00
b4963572b0 feat: added more graph tests 2023-03-24 11:29:58 -03:00
269c06e9c1 feat: added tests for graph 2023-03-24 11:21:29 -03:00
616d015c5a feat: implementation of Graph objects 2023-03-24 10:49:19 -03:00
13cbbd27b6 feat: new tests to prepare for agents as tools 2023-03-23 15:33:29 -03:00
70dbc7eb1e refac: langflow_backend -> langflow 2023-03-17 09:50:02 -03:00
fcb3abccf1 style: formatting and fixes 2023-03-14 11:00:56 -03:00
498eadefc0 feat: adding test and make commands for testing 2023-03-10 07:20:40 -03:00