Commit graph

3,787 commits

Author SHA1 Message Date
Rodrigo Nader
0bec0ab1db update docs 2023-07-28 17:16:49 -03:00
anovazzi1
735f2556c2 Merge branch 'python_custom_node_component' of personal:logspace-ai/langflow into python_custom_node_component 2023-07-28 16:09:13 -03:00
Lucas Oliveira
115a784b66 Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component 2023-07-28 15:21:14 -03:00
Lucas Oliveira
5e78f6be79 Changed gitignore 2023-07-28 15:19:31 -03:00
Gabriel Luiz Freitas Almeida
bdc62ba725 🐛 fix(__main__.py): change default value of workers option from -1 to 2 to limit the number of worker processes 2023-07-28 15:17:03 -03:00
Lucas Oliveira
eaceee9480 GitIgnore changed 2023-07-28 15:07:03 -03:00
Lucas Oliveira
638f450ead Fixed bug showing on console from Unknown 2023-07-28 15:05:10 -03:00
Lucas Oliveira
22faf54737 Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component 2023-07-28 15:01:08 -03:00
Rodrigo Nader
6be4799950 improve custom component docs 2023-07-28 15:00:57 -03:00
Lucas Oliveira
df8d84d07f Fixed unknown node not showing 2023-07-28 14:59:40 -03:00
anovazzi1
48995ce849 Merge branch 'python_custom_node_component' of personal:logspace-ai/langflow into python_custom_node_component 2023-07-28 14:58:26 -03:00
anovazzi1
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
2023-07-28 14:58:05 -03:00
Lucas Oliveira
148483ed56 Fixed key bug inside accordion 2023-07-28 14:51:06 -03:00
Lucas Oliveira
1ea05b3584 Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component 2023-07-28 14:49:11 -03:00
Lucas Oliveira
641bcb4a58 Fixed unique keys bug 2023-07-28 14:48:40 -03:00
Gabriel Luiz Freitas Almeida
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
2023-07-28 14:45:05 -03:00
gustavoschaedler
859c9beaad Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component 2023-07-28 18:34:19 +01:00
Gabriel Luiz Freitas Almeida
0d57263a0a 📝 docs(custom.mdx): fix typo in the comment, change "top level" to "top-level" for consistency 2023-07-28 14:33:53 -03:00
gustavoschaedler
2f0ce5fc1b 🐛 fix(types.py): change default value of "error" field in component_template to None for better consistency and readability
🐛 fix(base.py): change default value of "error" field in FrontendNode class to None for better consistency and readability
2023-07-28 18:32:03 +01:00
Gabriel Luiz Freitas Almeida
c6091444d5 📝 docs(custom.mdx): remove outdated information about loading flow and tweaks parameter in CustomComponent class 2023-07-28 14:31:48 -03:00
Gabriel Luiz Freitas Almeida
f82a97b010 📝 docs(prompt-customization.mdx): add line breaks for better readability and remove unnecessary empty lines 2023-07-28 14:26:40 -03:00
Gabriel Luiz Freitas Almeida
1b09ddf667 📝 docs(custom-component.mdx): add a tip admonition with a link to the FlowRunner Component example for more powerful usage of custom components 2023-07-28 14:26:17 -03:00
Gabriel Luiz Freitas Almeida
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
2023-07-28 14:25:50 -03:00
Gabriel Luiz Freitas Almeida
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

🎨 style(components.mdx): Remove unnecessary div wrapper and fix indentation
🎨 style(features.mdx): Remove unnecessary div wrapper and fix indentation
🎨 style(prompt-customization.mdx): Remove unnecessary div wrappers and fix indentation
🎨 style(index.mdx): Remove unnecessary div wrapper and fix indentation
2023-07-28 12:59:15 -03:00
gustavoschaedler
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
2023-07-28 16:58:04 +01:00
Gabriel Luiz Freitas Almeida
6bf7612292 📚 docs(sidebars.js): add "flow-runner" example to the "Examples" section for better documentation coverage 2023-07-28 11:58:58 -03:00
Gabriel Luiz Freitas Almeida
90bb8535ec 📸 feat(docs): add screenshots of flow runner and flow runner code for documentation purposes 2023-07-28 11:57:44 -03:00
Gabriel Luiz Freitas Almeida
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
2023-07-28 11:57:13 -03:00
Gabriel Luiz Freitas Almeida
784f813dc5 📝 docs(flow-runner.mdx): update FlowRunner example to improve readability and add field customization in build_config method 2023-07-28 11:56:34 -03:00
Gabriel Luiz Freitas Almeida
734a91b913 feat(flow-runner.mdx): add FlowRunner example to the documentation to demonstrate how to create a custom component that runs other flows 2023-07-28 11:26:50 -03:00
Gabriel Luiz Freitas Almeida
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
2023-07-28 11:24:16 -03:00
Gabriel Luiz Freitas Almeida
457453656a 📝 docs(custom.mdx): update documentation for Custom Component
The changes in this commit update the documentation for the Custom Component.

- Clarify that the code must be a class that inherits from the `langflow.CustomComponent` class.
- Explain that the type annotations of the `build` instance method are used to create the fields of the component.
- Provide a table of supported types for the `build` method.
- Introduce the `build_config` instance method for defining configuration fields.
- Describe the format and available keys for the `build_config` method.
- Add usage example for the `build` method.

These changes improve the clarity and completeness of the documentation for the Custom Component, making it easier for users to understand and utilize this feature.
2023-07-28 11:23:26 -03:00
Gabriel Luiz Freitas Almeida
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
2023-07-28 11:22:40 -03:00
Gabriel Luiz Freitas Almeida
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
2023-07-28 11:22:10 -03:00
Gabriel Luiz Freitas Almeida
28cebb2d39 🔧 chore(docs): update custom-component.mdx
🐛 fix(custom-component.mdx): change class name from BestComponent to DocumentProcessor to improve semantics and clarity
 feat(custom-component.mdx): add support for processing the page content of a document based on a selected function
📝 docs(custom-component.mdx): update example and explanations to reflect the changes made in the code

🐛 fix(custom-component.mdx): fix code indentation and remove unused imports
 feat(custom-component.mdx): update component name and description to improve clarity and semantics
🐛 fix(custom-component.mdx): update build method parameters and return type to match the actual implementation
 feat(custom-component.mdx): add support for configuring fields in the build_config method
🐛 fix(custom-component.mdx): fix code indentation and remove unused imports in the build_config method
 feat(custom-component.mdx): add support for configuring fields in the build_config method
2023-07-28 09:30:56 -03:00
Gabriel Luiz Freitas Almeida
dc2207d194 📝 docs(img): add images for document processor and document processor code
📝 docs(img): add images for document processor and document processor code to enhance documentation and provide visual representation of the process
2023-07-28 09:30:28 -03:00
Gabriel Luiz Freitas Almeida
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
2023-07-28 09:29:18 -03:00
Rodrigo Nader
2ce2be4544 minor 2023-07-27 22:14:05 -03:00
Rodrigo Nader
645f35e186 Enhance custom component docs 2023-07-27 22:08:12 -03:00
gustavoschaedler
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
2023-07-28 01:21:05 +01:00
Gabriel Luiz Freitas Almeida
9cd919b7f5 📝 docs(custom-component.mdx): update guidelines for custom components and add examples
📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components
2023-07-27 18:12:16 -03:00
Gabriel Luiz Freitas Almeida
58ce967e01
Chat widget api (#688) 2023-07-27 17:40:11 -03:00
Gabriel Luiz Freitas Almeida
397c665536 Merge branch 'python_custom_node_component' into ChatWidgetAPI 2023-07-27 17:38:35 -03:00
Gabriel Luiz Freitas Almeida
0b28d5d8de format 2023-07-27 17:36:34 -03:00
Gabriel Luiz Freitas Almeida
aeca627222 📝 docs(custom-component.mdx): update guidelines for custom components
 feat(custom-component.mdx): add rules and explanations for creating custom components

📝 docs(custom-component.mdx): update rule 1 to specify that the script must contain a single class inheriting from CustomComponent

📝 docs(custom-component.mdx): update rule 2 to specify that the class must have a build method

📝 docs(custom-component.mdx): update rule 3 to specify that the type annotations of the build method will be used to create the fields of the component

📝 docs(custom-component.mdx): update rule 4 to specify that the class can have a build_config method

📝 docs(custom-component.mdx): update rule 4 to provide details on the format of the build_config method

📝 docs(custom-component.mdx): update rule 4 to correct a typo in the display_name key

📝 docs(custom-component.mdx): update rule 4 to provide additional details on the options and multiline keys in the build_config method

📝 docs(custom-component.mdx): add example for creating a FlowRunner component

📝 docs(custom-component.mdx): update example for creating a FlowRunner component to include display_name and description attributes

📝 docs(custom-component.mdx): update example for creating a FlowRunner component to import Document from the schema module

📝 docs(custom-component.mdx): update example for creating a FlowRunner component to add parameters and return type to the build method
2023-07-27 17:28:46 -03:00
Gabriel Luiz Freitas Almeida
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
2023-07-27 17:20:29 -03:00
Gabriel Luiz Freitas Almeida
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
2023-07-27 17:19:24 -03:00
Gabriel Luiz Freitas Almeida
35724e1473 🐛 fix(code_parser.py): handle "None" values in default arguments correctly 2023-07-27 17:17:57 -03:00
Rodrigo Nader
d9663bee45 Rename widget.md to chat-widget.md
- The code changes renamed the file `widget.mdx` to `chat-widget.mdx`.
- The content has been modified to reflect the new name and provide a more detailed description of the Langflow Chat Widget.
- The usage instructions have been updated to reflect the changes.

This commit renames `widget.mdx` to `chat-widget.mdx` and provides more detailed information about the Langflow Chat Widget, including its features, usage in HTML, React, and Angular, and customization options.
2023-07-27 15:49:22 -03:00
Cristhian Zanforlin Lousa
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
2023-07-27 14:59:11 -03:00