Commit graph

  • 7f23334f97 🐛 fix(directory_reader.py): add check for usage of 'Optional' type hint without importing it ✨ feat(directory_reader.py): add methods to check if a specific type hint is imported and used in function arguments ✨ feat(directory_reader.py): add method to check if a type hint is used but not imported in the code ✨ feat(directory_reader.py): add check for usage of 'Optional' type hint without importing it in the process_file method gustavoschaedler 2023-07-28 23:24:17 +01:00
  • 7b03dfabe6 change images Rodrigo Nader 2023-07-28 17:37:28 -03:00
  • 0bec0ab1db update docs Rodrigo Nader 2023-07-28 17:16:49 -03:00
  • 735f2556c2 Merge branch 'python_custom_node_component' of personal:logspace-ai/langflow into python_custom_node_component anovazzi1 2023-07-28 16:09:13 -03:00
  • 115a784b66 Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component Lucas Oliveira 2023-07-28 15:21:14 -03:00
  • 5e78f6be79 Changed gitignore Lucas Oliveira 2023-07-28 15:19:31 -03:00
  • bdc62ba725 🐛 fix(__main__.py): change default value of workers option from -1 to 2 to limit the number of worker processes Gabriel Luiz Freitas Almeida 2023-07-28 15:17:03 -03:00
  • eaceee9480 GitIgnore changed Lucas Oliveira 2023-07-28 15:07:03 -03:00
  • 638f450ead Fixed bug showing on console from Unknown Lucas Oliveira 2023-07-28 15:05:10 -03:00
  • 22faf54737 Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component Lucas Oliveira 2023-07-28 15:01:08 -03:00
  • 6be4799950 improve custom component docs Rodrigo Nader 2023-07-28 15:00:57 -03:00
  • df8d84d07f Fixed unknown node not showing Lucas Oliveira 2023-07-28 14:59:40 -03:00
  • 48995ce849 Merge branch 'python_custom_node_component' of personal:logspace-ai/langflow into python_custom_node_component anovazzi1 2023-07-28 14:58:26 -03:00
  • 199052e754 fix(extraSidebarComponent): add useEffect hook to show components with errors on load fix(extraSidebarComponent): update key prop in ShadTooltip component to use unique value fix(extraSidebarComponent): update draggable attribute in component div to be disabled if there is an error feat(api): add error property to APIClassType to indicate if there is an error in the component anovazzi1 2023-07-28 14:58:05 -03:00
  • 148483ed56 Fixed key bug inside accordion Lucas Oliveira 2023-07-28 14:51:06 -03:00
  • 1ea05b3584 Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component Lucas Oliveira 2023-07-28 14:49:11 -03:00
  • 641bcb4a58 Fixed unique keys bug Lucas Oliveira 2023-07-28 14:48:40 -03:00
  • 208b5d4bb8 📝 docs(custom.mdx): improve formatting and add missing punctuation in the table description 🐛 fix(custom.mdx): add missing punctuation in the field descriptions ✨ feat(custom.mdx): add clarification to the field descriptions and provide examples for some fields 📝 docs(custom.mdx): add missing punctuation in the method description 🐛 fix(custom.mdx): add comment to clarify the purpose of the line Gabriel Luiz Freitas Almeida 2023-07-28 14:45:05 -03:00
  • 859c9beaad Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component gustavoschaedler 2023-07-28 18:34:19 +01:00
  • 0d57263a0a 📝 docs(custom.mdx): fix typo in the comment, change "top level" to "top-level" for consistency Gabriel Luiz Freitas Almeida 2023-07-28 14:33:53 -03:00
  • 2f0ce5fc1b 🐛 fix(types.py): change default value of "error" field in component_template to None for better consistency and readability gustavoschaedler 2023-07-28 18:32:03 +01:00
  • c6091444d5 📝 docs(custom.mdx): remove outdated information about loading flow and tweaks parameter in CustomComponent class Gabriel Luiz Freitas Almeida 2023-07-28 14:31:48 -03:00
  • f82a97b010 📝 docs(prompt-customization.mdx): add line breaks for better readability and remove unnecessary empty lines Gabriel Luiz Freitas Almeida 2023-07-28 14:26:40 -03:00
  • 1b09ddf667 📝 docs(custom-component.mdx): add a tip admonition with a link to the FlowRunner Component example for more powerful usage of custom components Gabriel Luiz Freitas Almeida 2023-07-28 14:26:17 -03:00
  • ab6d6bc803 📝 docs(flow-runner.mdx): update introduction to clarify the purpose of the CustomComponent 📝 docs(flow-runner.mdx): update example description to focus on creating a component to run other flows Gabriel Luiz Freitas Almeida 2023-07-28 14:25:50 -03:00
  • 231978d1df 🎨 style(docs): update image rendering in examples and guidelines files for better readability and consistency 🔧 chore(docs): fix formatting in chat-widget.mdx file Gabriel Luiz Freitas Almeida 2023-07-28 12:44:44 -03:00
  • 36772dac99 🐛 fix(types.py): add missing error field to component template in build_invalid_menu function 🐛 fix(base.py): add missing error field to FrontendNode class to match the template structure gustavoschaedler 2023-07-28 16:58:04 +01:00
  • 6bf7612292 📚 docs(sidebars.js): add "flow-runner" example to the "Examples" section for better documentation coverage Gabriel Luiz Freitas Almeida 2023-07-28 11:58:58 -03:00
  • 90bb8535ec 📸 feat(docs): add screenshots of flow runner and flow runner code for documentation purposes Gabriel Luiz Freitas Almeida 2023-07-28 11:57:44 -03:00
  • 1d47d47c4d 📝 docs(custom.mdx): update table formatting and clarify field_type and options usage in custom component documentation 📝 docs(custom-component.mdx): remove is_list from function field and clarify options usage in build_config method Gabriel Luiz Freitas Almeida 2023-07-28 11:57:13 -03:00
  • 784f813dc5 📝 docs(flow-runner.mdx): update FlowRunner example to improve readability and add field customization in build_config method Gabriel Luiz Freitas Almeida 2023-07-28 11:56:34 -03:00
  • 734a91b913 ✨ feat(flow-runner.mdx): add FlowRunner example to the documentation to demonstrate how to create a custom component that runs other flows Gabriel Luiz Freitas Almeida 2023-07-28 11:26:50 -03:00
  • 4ad226f35b 📚 docs(custom-component.mdx): remove unnecessary code and examples from the custom component guidelines 📚 docs(custom-component.mdx): remove unnecessary code and examples related to the FlowRunner component from the custom component guidelines Gabriel Luiz Freitas Almeida 2023-07-28 11:24:16 -03:00
  • 457453656a 📝 docs(custom.mdx): update documentation for Custom Component Gabriel Luiz Freitas Almeida 2023-07-28 11:23:26 -03:00
  • 98eca09270 🔧 fix(custom_component.py): add type hints to improve code readability and maintainability 🔧 fix(custom_component.py): add return type hint to 'load_flow' method for better code documentation 🔧 fix(custom_component.py): add return type hint to 'list_flows' method for better code documentation Gabriel Luiz Freitas Almeida 2023-07-28 11:22:40 -03:00
  • 25a59d745d 🔧 chore(types.py): refactor add_new_custom_field function to improve readability and maintainability 🔧 chore(types.py): refactor build_field_config function to improve readability and maintainability Gabriel Luiz Freitas Almeida 2023-07-28 11:22:10 -03:00
  • 28cebb2d39 🔧 chore(docs): update custom-component.mdx Gabriel Luiz Freitas Almeida 2023-07-28 09:30:56 -03:00
  • dc2207d194 📝 docs(img): add images for document processor and document processor code Gabriel Luiz Freitas Almeida 2023-07-28 09:30:28 -03:00
  • 559778d4b6 🐛 fix(ZoomableImage.js): add style prop to ZoomableImage component to allow custom styling ✨ feat(ZoomableImage.js): add default style to ZoomableImage component for consistent layout and centering of images Gabriel Luiz Freitas Almeida 2023-07-28 09:29:18 -03:00
  • 2ce2be4544 minor Rodrigo Nader 2023-07-27 22:14:05 -03:00
  • 645f35e186 Enhance custom component docs Rodrigo Nader 2023-07-27 22:08:12 -03:00
  • d579257f0d 🐛 fix(types.py): handle exceptions when getting custom function and building field config to prevent crashes and log errors ✨ feat(types.py): add validation check for custom component before building field config to ensure only valid components are processed 🐛 fix(types.py): handle empty function_args case to prevent errors when adding extra fields to the frontend node 🐛 fix(types.py): handle exceptions when creating custom component to prevent crashes and log errors gustavoschaedler 2023-07-28 01:21:05 +01:00
  • 9cd919b7f5 📝 docs(custom-component.mdx): update guidelines for custom components and add examples Gabriel Luiz Freitas Almeida 2023-07-27 18:12:16 -03:00
  • 58ce967e01
    Chat widget api (#688) Gabriel Luiz Freitas Almeida 2023-07-27 17:40:11 -03:00
  • 397c665536 Merge branch 'python_custom_node_component' into ChatWidgetAPI Gabriel Luiz Freitas Almeida 2023-07-27 17:38:35 -03:00
  • 0b28d5d8de format Gabriel Luiz Freitas Almeida 2023-07-27 17:36:34 -03:00
  • aeca627222 📝 docs(custom-component.mdx): update guidelines for custom components Gabriel Luiz Freitas Almeida 2023-07-27 17:28:46 -03:00
  • 4783b47815 🔧 chore(custom.css): adjust max-width and min-width of .ch-scrollycoding-content and .ch-scrollycoding-sticker to improve layout 🔧 chore(custom.css): add min-height to .ch-scrollycoding-step-content for better spacing Gabriel Luiz Freitas Almeida 2023-07-27 17:20:29 -03:00
  • b2e784dcb7 🐛 fix(types.py): fix issue with incorrect assignment of field_advanced variable in add_new_custom_field function ✨ feat(types.py): add support for advanced field configuration in add_new_custom_field function 🐛 fix(types.py): fix issue with incorrect assignment of field_advanced variable in add_code_field function ✨ feat(types.py): add support for advanced field configuration in add_code_field function 🐛 fix(types.py): fix issue with incorrect sorting of function_args in add_extra_fields function ✨ feat(types.py): add sorting of function_args in add_extra_fields function 🐛 fix(types.py): fix issue with incorrect usage of field_config in add_code_field function ✨ feat(types.py): add support for field_config in add_code_field function 🐛 fix(types.py): fix issue with incorrect usage of field_config in build_langchain_template_custom_component function ✨ feat(types.py): add support for field_config in build_langchain_template_custom_component function Gabriel Luiz Freitas Almeida 2023-07-27 17:19:24 -03:00
  • 35724e1473 🐛 fix(code_parser.py): handle "None" values in default arguments correctly Gabriel Luiz Freitas Almeida 2023-07-27 17:17:57 -03:00
  • fe61d4aa51 fix(Makefile): fix typo in 'rm -rf' command to remove node_modules directory in install_frontend target fix(Makefile): remove unnecessary 'rm -rf' command in run_frontend target anovazzi1 2023-07-27 16:57:43 -03:00
  • 0a452750dd update make file to make_frontend to remove node_modules before install and avoid binding error anovazzi1 2023-07-27 16:26:15 -03:00
  • d9663bee45 Rename widget.md to chat-widget.md Rodrigo Nader 2023-07-27 15:49:22 -03:00
  • bdcee2ba17 refactor: Add more types and remove unnused value property Igor Carvalho 2023-07-27 15:34:56 -03:00
  • 07b5419586 🔧 chore(constants.ts): add URL_EXCLUDED_FROM_ERROR_RETRIES constant to store URLs excluded from error retries for better error handling 🔧 chore(api.tsx): add logic to exclude certain URLs from error retries in the ApiInterceptor component to improve error handling 🔧 chore(index.ts): update postCustomComponent function to use the api instance instead of axios for consistency and reusability Cristhian Zanforlin Lousa 2023-07-27 12:13:45 -03:00
  • f4793940b0 🐛 fix(tabsContext.tsx): add missing import statement for addVersionToDuplicates function ✨ feat(tabsContext.tsx): add version number to duplicate flow names to ensure uniqueness 🐛 fix(reactflowUtils.ts): add missing newline at end of file Cristhian Zanforlin Lousa 2023-07-26 22:17:48 -03:00
  • fb407cf9d1 🔥 refactor(test_custom_component.py): remove unused imports and test_list_flows_no_flows test case 🔥 refactor(test_custom_component.py): remove test_list_flows_no_flows test case as it is no longer needed Gabriel Luiz Freitas Almeida 2023-07-27 14:35:49 -03:00
  • 3b93c5814b 🐛 fix(utils.py): simplify format_content function to improve readability and maintainability Gabriel Luiz Freitas Almeida 2023-07-27 14:33:31 -03:00
  • 707e55c880 🐛 fix(loading.py): refactor instantiate_prompt function to improve readability and maintainability ✨ feat(utils.py): add utility functions to handle node type and format kwargs in instantiate_prompt function Gabriel Luiz Freitas Almeida 2023-07-27 14:32:10 -03:00
  • 2144e0d92d 🐛 fix(code_parser.py): strip single quotes from default values in CodeParser class to improve consistency and readability gustavoschaedler 2023-07-27 15:12:18 +01:00
  • d9816902e4 🐛 fix(GenericNode/index.tsx): fix rendering of validationStatus.params when it is a string Gabriel Luiz Freitas Almeida 2023-07-27 09:56:15 -03:00
  • 28bf88cf79 🐛 fix(custom_component.py): fix custom_repr method to return a string representation of repr_value Gabriel Luiz Freitas Almeida 2023-07-27 09:55:48 -03:00
  • 3baa3a1ca5 Merge branch 'python_custom_node_component' of personal:logspace-ai/langflow into python_custom_node_component anovazzi1 2023-07-27 09:47:20 -03:00
  • 3d103398e3 fix(codeAreaModal): clear error state when setting value to code and closing modal to prevent displaying previous errors anovazzi1 2023-07-27 09:46:29 -03:00
  • 4a0fe95093 🔧 chore(types.py): add support for custom field value in add_new_custom_field function Gabriel Luiz Freitas Almeida 2023-07-27 09:44:01 -03:00
  • 2b55b0c3b3 🔀 refactor(custom_component.py): rename load_flow method parameter flow_id to graph_id for clarity 🔀 refactor(custom_component.py): add optional tweaks parameter to load_flow method to allow for processing tweaks on the graph data 🔀 refactor(custom_component.py): rename data_graph variable to graph_data for consistency and clarity 🔀 refactor(custom_component.py): add logic to process tweaks on the graph_data if tweaks parameter is provided Gabriel Luiz Freitas Almeida 2023-07-27 09:39:27 -03:00
  • f49bca8e9d 📝 docs(widget.mdx): add Admonition component to provide additional information about using the Chat Widget in Angular projects 📝 docs(widget.mdx): update caution admonition to provide instructions on passing JSON props as Stringified JSONs Cristhian Zanforlin Lousa 2023-07-27 09:06:58 -03:00
  • e43f52dd7a 📝 docs(custom-component.mdx): update guidelines for creating custom components Gabriel Luiz Freitas Almeida 2023-07-27 08:04:18 -03:00
  • 529322e56a 🎨 style(custom.css): adjust max-width and min-width of .ch-scrollycoding-content and .ch-scrollycoding-sticker to improve layout proportions Gabriel Luiz Freitas Almeida 2023-07-27 08:00:22 -03:00
  • d8980d34f2 🔧 chore(docusaurus.config.js): enable sidebar to be hideable in the docs section for better user experience Gabriel Luiz Freitas Almeida 2023-07-27 07:59:58 -03:00
  • 1c5eb4a2f8 Changed text to be more specific Lucas Oliveira 2023-07-27 07:54:27 -03:00
  • 5b34d8e725 Added note to JSONs on docs Lucas Oliveira 2023-07-27 07:52:24 -03:00
  • fa8b3eca92 📝 docs(widget.mdx): update code snippet language from html to jsx for accuracy and clarity Gabriel Luiz Freitas Almeida 2023-07-27 07:34:21 -03:00
  • 5110644082 🔧 chore(widget.mdx): remove unnecessary comment in langflow-chat component example Gabriel Luiz Freitas Almeida 2023-07-27 07:33:32 -03:00
  • 3e0fc3cc1b 📝 docs(widget.mdx): improve formatting and readability of the Chat Widget documentation Gabriel Luiz Freitas Almeida 2023-07-27 07:32:30 -03:00
  • 34008bf3d0 🔄 refactor(index.tsx): reorder import statements for better readability and consistency Gabriel Luiz Freitas Almeida 2023-07-27 07:02:48 -03:00
  • 8d8fae78c8 🔧 fix(__init__.py): update import statement for CustomComponent to reflect new location 🔧 fix(constants.py): update import statement for CustomComponent to reflect new location 🔧 fix(constants.py): update field_config to build_config to match changes in CustomComponent class 🔧 fix(constants.py): update build method signature to match changes in CustomComponent class Gabriel Luiz Freitas Almeida 2023-07-27 07:02:14 -03:00
  • 6b7ab2aded 📝 docs(custom-component.mdx): add documentation for custom components 🎨 style(custom.css): update styling for code blocks and sidebar in documentation Gabriel Luiz Freitas Almeida 2023-07-27 06:58:10 -03:00
  • 9a1c20d750 📝 docs(custom.mdx): add documentation for custom component Gabriel Luiz Freitas Almeida 2023-07-26 17:27:09 -03:00
  • ea8865dc18 🔧 chore(docs): update docusaurus.config.js to use monokai theme for code highlighting, show copy button, and display line numbers 📝 docs(sidebars.js): add "guidelines/custom-component" and "components/custom" to the sidebar for better navigation and discoverability Gabriel Luiz Freitas Almeida 2023-07-26 17:26:31 -03:00
  • bb247af614 🔧 chore(package.json): update dependencies Gabriel Luiz Freitas Almeida 2023-07-26 15:04:01 -03:00
  • e78ce40cbf 🔧 fix(docusaurus.config.js): fix import statement for remarkCodeHike to resolve linting error ✨ feat(docusaurus.config.js): add support for code highlighting with remarkCodeHike plugin Gabriel Luiz Freitas Almeida 2023-07-26 14:56:54 -03:00
  • 8ac890c553 🔧 chore(chains.mdx): add import statement for Admonition component to improve code organization and readability 🔧 chore(chains.mdx): fix formatting and indentation for better code readability 🔧 chore(chains.mdx): update verbose parameter description to improve clarity 🔧 chore(chains.mdx): fix formatting and indentation for better code readability 🔧 chore(chains.mdx): update verbose parameter description to improve clarity 🔧 chore(chains.mdx): fix formatting and indentation for better code readability 🔧 chore(chains.mdx): update verbose parameter description to improve clarity 🔧 chore(chains.mdx): fix formatting and indentation for better code readability 🔧 chore(chains.mdx): update verbose parameter description to improve clarity 🔧 chore(chains.mdx): fix formatting and indentation for better code readability 🔧 chore(chains.mdx): update verbose parameter description to improve clarity 🔧 chore(chains.mdx): fix formatting and indentation for better code readability 🔧 chore(chains.mdx): update verbose parameter description to improve clarity 🔧 chore(chains.mdx): fix formatting and indentation for better code readability 🔧 chore(chains.mdx): update verbose parameter description to improve clarity 🔧 chore(chains.mdx): fix formatting and indentation for better code readability 🔧 chore(chains.mdx): update verbose parameter description to improve clarity 🔧 chore(chains.mdx): fix formatting and indentation for better code readability 🔧 chore(chains.mdx): update verbose parameter description to improve clarity 🔧 chore(chains.mdx): fix formatting and indentation for better code readability 🔧 chore(chains.mdx): update verbose parameter description to improve clarity 🔧 chore(chains.mdx): fix formatting and indentation for better code readability 🔧 chore(chains.mdx): update verbose parameter description to improve clarity 🔧 chore(chains.mdx): fix formatting and indentation for better code readability 🔧 chore(chains.mdx): update verbose parameter description to improve clarity 🔧 chore(chains.mdx): fix formatting and indentation for better code readability 🔧 chore(chains.mdx): update verbose parameter description to improve clarity 🔧 chore(chains.mdx): fix formatting and indentation for better code readability 🔧 Gabriel Luiz Freitas Almeida 2023-07-26 14:42:48 -03:00
  • 0ed7b7cb2a 📝 docs(widget.mdx): add instructions for including Chat Widget in Angular component's view 📝 docs(widget.mdx): provide example code for adding the 'langflow-chat' tag with necessary attributes to include the Chat Widget in the component's view Cristhian Zanforlin Lousa 2023-07-27 00:11:40 -03:00
  • 33ad61ae71 📝 docs(widget.mdx): add instructions for using Chat Widget in Angular application Cristhian Zanforlin Lousa 2023-07-27 00:05:17 -03:00
  • 492371b185 Fixed Save With My API keys toggle Lucas Oliveira 2023-07-26 23:25:19 -03:00
  • 498d0b0423 Merge branch 'types_refactor' of github.com:logspace-ai/langflow into types_refactor Igor Carvalho 2023-07-26 23:01:12 -03:00
  • 289a3f5d83 Remove console.log Igor Carvalho 2023-07-26 23:01:07 -03:00
  • ae83c987a5 Added documentation link to the description of the Api Tab Lucas Oliveira 2023-07-26 23:00:51 -03:00
  • 7804ca9eaf refactor: Add more types Igor Carvalho 2023-07-26 22:59:55 -03:00
  • fd701ba272 Added documentation of Chat Widget. Lucas Oliveira 2023-07-26 22:57:04 -03:00
  • e5ac8c5211
    Merge branch 'dev' into types_refactor Igor Carvalho 2023-07-26 18:38:14 -03:00
  • 6a32079d1b Merge branch 'types_refactor' of github.com:logspace-ai/langflow into types_refactor Igor Carvalho 2023-07-26 18:31:58 -03:00
  • c69eb33d24 fix pull problems Igor Carvalho 2023-07-26 18:31:15 -03:00
  • 0d92a62759 Merge dev into types_refactor Igor Carvalho 2023-07-26 18:26:22 -03:00
  • 011dd98050 fixed bug on check and save anovazzi1 2023-07-26 16:44:15 -03:00
  • 1124b10308 Changed comment to exemplify better Lucas Oliveira 2023-07-26 16:20:39 -03:00
  • 8df8875e7e Added description to Chat Widget HTML and changed comment from code Lucas Oliveira 2023-07-26 16:04:11 -03:00
  • d67e72d0b0 config package.json to find type errors anovazzi1 2023-07-26 15:49:10 -03:00
  • f4396fd6ea Fixed tooltip not appearing Lucas Oliveira 2023-07-26 15:43:59 -03:00