da9764b3c5Merge remote-tracking branch 'origin/form_io' into python_custom_node_component
gustavoschaedler
2023-07-07 22:55:17 +01:00
86e11bc1cd🔥 refactor(inputFileComponent): remove unnecessary empty line The empty line after the export default function InputFileComponent({ declaration has been removed as it was not serving any purpose and was unnecessary.
Gabriel Luiz Freitas Almeida
2023-07-07 18:45:49 -03:00
68bca25266🐛 fix(test_agents_template.py): update assertions for template variables in test_zero_shot_agent The assertions for the template variables in the test_zero_shot_agent function have been updated to reflect the changes in the template structure. This ensures that the tests accurately check the expected values of the template variables.
Gabriel Luiz Freitas Almeida
2023-07-07 18:45:01 -03:00
caaabf5023🔥 refactor(test_graph.py): remove unused imports and test cases related to specific vertex types 🔬 test(test_graph.py): remove test cases for building specific vertex types The commit removes unused imports and test cases related to specific vertex types that are no longer used in the codebase. This improves code cleanliness and reduces clutter. The removed test cases were for building specific vertex types, which are no longer necessary as the build method is now tested in a more general way.
Gabriel Luiz Freitas Almeida
2023-07-07 18:23:50 -03:00
94d598b59c🔧 fix(test_endpoints.py): fix import statement for TimeTravelGuideChainNode 🔧 fix(test_endpoints.py): update test_get_all to assert "PromptTemplate" instead of "ZeroShotPrompt" 🔧 fix(test_endpoints.py): update test_valid_prompt and test_invalid_prompt to use PROMPT_REQUEST variable 🔧 fix(test_endpoints.py): update test_various_prompts to use PROMPT_REQUEST variable 🔧 fix(test_prompts_template.py): remove test_zero_shot_prompt as it is no longer needed The import statement for TimeTravelGuideChainNode is fixed to ensure the correct module is imported. The test_get_all function is updated to assert the presence of "PromptTemplate" instead of "ZeroShotPrompt" in the response. The test_valid_prompt, test_invalid_prompt, and test_various_prompts functions are updated to use the PROMPT_REQUEST variable for the request payload. The test_zero_shot_prompt function is removed as it is no longer needed.
Gabriel Luiz Freitas Almeida
2023-07-07 18:22:59 -03:00
47ab165015Formatting
Gabriel Luiz Freitas Almeida
2023-07-07 18:09:30 -03:00
fc4dca8a6d🔧 fix(customs.py): add MongoDBChatMessageHistory to CUSTOM_NODES dictionary ✨ feat(memories.py): add MongoDBChatMessageHistoryFrontendNode class to support MongoDB as a memory store The CUSTOM_NODES dictionary in customs.py has been updated to include the "MongoDBChatMessageHistory" memory. This allows the application to use MongoDB as a memory store for chat message history. The MongoDBChatMessageHistoryFrontendNode class has been added to memories.py, providing the necessary functionality and configuration options for interacting with MongoDB as a memory store.
Gabriel Luiz Freitas Almeida
2023-07-07 17:48:37 -03:00
05f30a585f🔧 chore(GenericNode): optimize imports and remove duplicate imports 🔧 chore(ShadTooltipComponent): remove unused import and set default value for delayDuration prop 🔧 chore(ApiModal): optimize imports and remove unused imports 🔧 chore(genericModal): optimize imports and remove unused imports
Gabriel Luiz Freitas Almeida
2023-07-07 17:43:57 -03:00
c9b5a09c46🐛 fix(table.tsx): remove unnecessary "overflow-auto" class from table container div to fix styling issue
Cristhian Zanforlin Lousa
2023-07-07 18:23:04 -03:00
39daf5e8cf🔧 fix(ShadTooltipComponent): add style prop to ShadTooltip component to allow custom styling 🔧 fix(types): add style property to ShadToolTipType to reflect the changes in ShadTooltipComponent
Cristhian Zanforlin Lousa
2023-07-07 18:14:01 -03:00
2525ad218c🐛 fix(dropdownComponent): add 'nowheel' class to options when editNode is true to fix styling issue 🐛 fix(inputFileComponent): fix class order in className to ensure correct styling when editNode is true 🐛 fix(genericModal): remove unnecessary conditional rendering of '-' in Input Variables label
Cristhian Zanforlin Lousa
2023-07-07 17:37:23 -03:00
fcac473a61🔀 chore(config.yaml): reorganize the order of sections in the config file The order of sections in the config.yaml file has been adjusted for better readability and organization. The "prompts" section has been moved to the top, followed by the "memories" section, and then the "textsplitters" section. This change improves the structure and consistency of the config file.
Gabriel Luiz Freitas Almeida
2023-07-07 17:22:44 -03:00
97e1c8ab2eMerge branch 'form_io' of personal:logspace-ai/langflow into form_io
anovazzi1
2023-07-07 16:46:31 -03:00
c4ce44c592bug fix for ace
anovazzi1
2023-07-07 16:45:26 -03:00
57af6a7b66Revert "Formatting"
Gabriel Luiz Freitas Almeida
2023-07-07 16:44:31 -03:00
6f9520d620🐛 fix(base.py): add type hint for 'template' attribute in FrontendNodeRequest class 🐛 fix(utils.py): add input validation for 'chat_inputs.message' to prevent errors when no message is provided 🐛 fix(loading.py): add type hint for 'format_kwargs' variable in instantiate_prompt function 🐛 fix(base.py): add type hint for 'inputs' parameter in get_result_and_steps function The changes in base.py and utils.py are bug fixes that address potential issues in the code. The type hint for the 'template' attribute in the FrontendNodeRequest class is added to improve code clarity and maintainability. The input validation for 'chat_inputs.message' in the process_graph function ensures that an error is raised when no message is provided, preventing potential issues down the line. In loading.py, the type hint for the 'format_kwargs' variable in the instantiate_prompt function improves type safety. Lastly, in base.py, the type hint for the 'inputs' parameter in the get_result_and_steps function ensures proper type checking.
Gabriel Luiz Freitas Almeida
2023-07-07 15:54:15 -03:00
4e078d7de5🐛 fix(agents.py): change field type name from 'type_name' to 'field_type' for consistency The 'type_name' attribute for the 'Tools' field in the 'ZeroShotAgent' class has been changed to 'field_type' to improve consistency with the naming conventions used in the codebase.
Gabriel Luiz Freitas Almeida
2023-07-07 15:53:48 -03:00
da0cf30057🐛 fix(loading.py): fix condition to remove empty input_key and output_key parameters The condition to remove empty input_key and output_key parameters has been fixed to correctly handle cases where the parameters are empty strings. This ensures that the parameters are only removed if they are either empty strings or not present in the params dictionary.
Gabriel Luiz Freitas Almeida
2023-07-07 15:38:36 -03:00
7304b922b9Formatting
Gabriel Luiz Freitas Almeida
2023-07-07 15:34:22 -03:00
4bc1a843d1🔧 chore(frontend): add prettier-plugin-organize-imports package to improve code formatting The prettier-plugin-organize-imports package is added to the project to improve code formatting. This plugin helps to organize and sort import statements in a consistent and standardized manner, making the codebase more readable and maintainable.
Gabriel Luiz Freitas Almeida
2023-07-07 15:33:43 -03:00
1a83cce2f0🔧 fix(genericModal/index.tsx): fix CSS class name in DialogContent to include gap-2 to add gap between elements 🔧 fix(genericModal/index.tsx): fix CSS class name in flex container to change height to h-[55vh] 🔧 fix(genericModal/index.tsx): fix CSS class name in div container to change height to h-[60px] and adjust width for different screen sizes 🔧 fix(genericModal/index.tsx): fix CSS class name in Badge component to add max-width and truncate long text 🔧 fix(genericModal/index.tsx): fix logic to handle long text in Tooltip component and truncate it if necessary 🔧 fix(genericModal/index.tsx): fix logic to handle button click in DialogFooter component and close modal if input value is empty
Cristhian Zanforlin Lousa
2023-07-07 15:16:57 -03:00
85e27d488c🐛 fix(utils.ts): fix a syntax error in the buildInputs function The syntax error was caused by a missing quotation mark in the default value of the JSON string. The fix adds the missing quotation mark to ensure the JSON string is valid.
Gabriel Luiz Freitas Almeida
2023-07-07 15:10:20 -03:00
0c3517149d🎨 style(chatMessage/index.tsx): add images for robot and male technologist icons to improve visual representation 🔧 chore(chatMessage/index.tsx): update image paths for robot and male technologist icons to match new file locations
Lucas Oliveira
2023-07-07 15:07:21 -03:00
1c6fd14fa5🐛 fix(chatMessage): adjust styling of chat message container to improve alignment and spacing
Lucas Oliveira
2023-07-07 14:58:03 -03:00
257e73059f🔧 fix(constants.tsx): import missing lucide-react icons to fix compilation errors 🔧 fix(chatMessage/index.tsx): import missing lucide-react icons to fix compilation errors 🔧 fix(formModal/index.tsx): import missing THOUGHTS_ICON constant to fix compilation errors
Lucas Oliveira
2023-07-07 14:57:21 -03:00
effd0ea52dMerge branch 'dev' into form_io
Lucas Oliveira
2023-07-07 14:44:09 -03:00
Fix characters passing through password icon (#622)
Lucas Oliveira
2023-07-07 14:43:01 -03:00
54f7cfb821🔥 refactor(cardComponent/index.tsx): remove unnecessary dialog component and simplify delete button implementation
Lucas Oliveira
2023-07-07 14:41:48 -03:00
dcb8de5335🐛 fix(index.css): increase right padding of .search-icon class to improve alignment with other elements
Cristhian Zanforlin Lousa
2023-07-07 14:24:17 -03:00
2262e8e0bd🐛 fix(index.css): increase right padding of .search-icon class to improve alignment with other elements
Cristhian Zanforlin Lousa
2023-07-07 14:12:04 -03:00
e422ed9c78🐛 fix(constants.tsx): fix indentation issue in getPythonApiCode function The import statement for the 'typing' module was incorrectly indented, causing a syntax error. The import statement has been fixed to align with the correct indentation.
Gabriel Luiz Freitas Almeida
2023-07-07 13:55:15 -03:00
512b499915✨ feat(constants.tsx): add support for dynamic inputs in getPythonApiCode and getCurlCode functions In the getPythonApiCode function, the run_flow function had an unnecessary type annotation for the message parameter. It was removed to improve code readability. Additionally, the variable name in the run_flow function was changed from inputs to payload to better reflect its purpose.
Gabriel Luiz Freitas Almeida
2023-07-07 13:51:16 -03:00
d718b153darefactor(chatTrigger): Add new chatTrigger tailwind constants classes
Igor Carvalho
2023-07-07 13:31:35 -03:00
bb362bd4ff🐛 fix(chatMessage/index.tsx): fix CSS class name and position of the hidden message icon
Lucas Oliveira
2023-07-07 12:54:44 -03:00
dc415e22f5🐛 fix(chatMessage/index.tsx): remove unnecessary class name "bg-border" to fix styling issue ✨ feat(chatMessage/index.tsx): add labels for chatbot and user avatars to improve accessibility and user experience 🐛 fix(chatMessage/index.tsx): adjust styling of chat message content to prevent overflow and improve readability 🐛 fix(chatMessage/index.tsx): adjust button background color to match the background color of the chat message container
Lucas Oliveira
2023-07-07 12:46:56 -03:00
fde865f9ca🔀 chore(constants.tsx): refactor buildFlowScript function to use template literals for better readability and maintainability
Lucas Oliveira
2023-07-07 12:30:20 -03:00
9ea667aa64🔥 refactor(utils.ts): remove console.log statement in buildInputs function to improve code cleanliness and remove unnecessary logging
Lucas Oliveira
2023-07-07 12:27:53 -03:00
a6e44c43e6🔨 refactor(constants.tsx): add support for tabsState parameter in getPythonApiCode, getCurlCode, and getPythonCode functions to build inputs dynamically 🔨 refactor(modals/ApiModal/index.tsx): pass tabsState parameter to getPythonApiCode, getCurlCode, and getPythonCode functions to build inputs dynamically 🔨 refactor(utils.ts): add buildInputs function to build inputs dynamically based on tabsState
Lucas Oliveira
2023-07-07 12:27:21 -03:00
dc8cee8f49Merge branch 'form_io' of github.com:logspace-ai/langflow into form_io
Lucas Oliveira
2023-07-07 12:05:26 -03:00
be7d9c93feFormatting changes
Lucas Oliveira
2023-07-07 12:05:01 -03:00
1020539ae6Changed chat message button to show entire prompt instead of chat input
Lucas Oliveira
2023-07-07 12:03:54 -03:00
f7f08cc97d🔥 refactor(chatMessage): remove unused code and simplify the ChatMessage component
Cristhian Zanforlin Lousa
2023-07-07 11:54:16 -03:00
3842b90907🐛 fix(GenericNode): improve readability of tooltip title by formatting the JSX code 🐛 fix(inputFileComponent): fix class order in className to ensure proper styling 🐛 fix(textAreaComponent): fix class order in className to ensure proper styling 🐛 fix(API): remove trailing whitespace at the end of the file 🐛 fix(ApiModal): add missing space before if statement condition 🐛 fix(genericModal): remove unnecessary whitespace and fix class order in className 🐛 fix(utils): add missing comma in INVALID_CHARACTERS array 🐛 fix(tailwind.config.js): add missing comma in custom-scroll CSS rule
Lucas Oliveira
2023-07-07 11:36:34 -03:00
07276523a3🐛 fix(chatMessage/index.tsx): remove unnecessary div wrapper around matched text in AccordionContent 🔨 refactor(chatMessage/index.tsx): simplify rendering of matched text in AccordionContent by using a span instead of a div 🔨 refactor(chatMessage/index.tsx): remove unnecessary div wrapper around chat.message[chat.chatKey]
Lucas Oliveira
2023-07-07 11:35:50 -03:00
5b2cc6f68a🎨 style(inputFileComponent): add margin-left to FileSearch2 component to improve spacing 🎨 style(genericModal): add custom-scroll class to div to enable vertical scrolling 🐛 fix(genericModal): set value of inputValue before closing modal in case 1 of switch statement 🐛 fix(genericModal): fix indentation and add missing semicolon in case 2 of switch statement
Cristhian Zanforlin Lousa
2023-07-07 06:53:04 -03:00
320989870eMerge branch 'form_io' into python_custom_node_component
Gabriel Luiz Freitas Almeida
2023-07-07 01:36:18 -03:00
c49b764fc0🔧 fix(utils.py): import CustomComponent class and add import_custom_component function 🔧 fix(types.py): process field_type to convert "Prompt" to "prompt" The utils.py file was missing an import statement for the CustomComponent class from the langflow.interface.custom.custom module. This import statement has been added to the top of the file. Additionally, a new function import_custom_component has been added to import a custom component based on its name.
Gabriel Luiz Freitas Almeida
2023-07-07 01:34:51 -03:00
99bc9f01ba🐛 fix(custom.py): evaluate items in split_item list using ast.literal_eval to handle cases where items are not strings The code now uses ast.literal_eval to evaluate each item in the split_item list. This is done to handle cases where the items are not strings and cannot be directly converted to their respective types. This ensures that the output_list contains correctly evaluated items.
Gabriel Luiz Freitas Almeida
2023-07-07 01:34:37 -03:00
92217155e4🔨 refactor(loading.py): reorganize code and remove duplicate import_by_type function 🐛 fix(loading.py): fix instantiation of custom components and handle single document input in instantiate_textsplitter function The code in loading.py has been reorganized to improve readability and remove duplicate import_by_type function. The instantiation of custom components has been fixed to correctly build the class object. Additionally, the instantiate_textsplitter function now handles single document input by converting it to a list before processing.
Gabriel Luiz Freitas Almeida
2023-07-07 01:34:26 -03:00
93892df805🔧 chore(validate.py): remove unnecessary contextlib.suppress block The contextlib.suppress block was suppressing import errors, but it is no longer needed as the import errors are handled elsewhere in the code. Removing this block improves code readability and removes unnecessary complexity.
Gabriel Luiz Freitas Almeida
2023-07-07 01:34:14 -03:00
2815f5a139🚀 feat(langflow): add Prompt class to types module The Prompt class is added to the types module in the langflow package. This class will be used for defining prompts in the language flow processing.
Gabriel Luiz Freitas Almeida
2023-07-07 01:33:36 -03:00
34be9577c2🔀 refactor(constants.py): refactor YourComponent class to improve readability and remove unused imports 🔀 refactor(constants.py): refactor build method in YourComponent class to use PromptTemplate and limit response text length The YourComponent class in constants.py has been refactored to improve readability and remove unused imports. The build method now uses PromptTemplate to handle the template parameter and limits the length of the response text to 300 characters to avoid potential issues.
Gabriel Luiz Freitas Almeida
2023-07-07 01:33:15 -03:00
1f4e947516🔧 fix(base.py): remove unused import statement 🔧 fix(constants.py): remove unused import statements 🔧 fix(types.py): refactor add_new_custom_field function to update field_config values
Gabriel Luiz Freitas Almeida
2023-07-07 00:42:36 -03:00
daad3bb4e7🐛 fix(custom.py): add support for parsing annotated assignments in CustomComponent class 🐛 fix(custom_components.py): update import statement for DEFAULT_CUSTOM_COMPONENT_CODE constant 🐛 fix(tools.py): update import statement for DEFAULT_CUSTOM_COMPONENT_CODE constant
Gabriel Luiz Freitas Almeida
2023-07-07 00:42:16 -03:00
ae59104b3a🔨 refactor(formatter/base.py): make FieldFormatter inherit from pydantic.BaseModel for improved type checking 🔥 chore(constants.py): remove unused DEFAULT_CUSTOM_COMPONENT_CODE constant The FieldFormatter class now inherits from pydantic.BaseModel, which allows for improved type checking and validation of the format method arguments. The unused DEFAULT_CUSTOM_COMPONENT_CODE constant has been removed to clean up the codebase.
Gabriel Luiz Freitas Almeida
2023-07-07 00:41:35 -03:00
7a0ab93357refactor: Remove unused function and fix code formatting
Rodrigo Nader
2023-07-07 00:10:41 -03:00
General UI Fixes (#624)
Gabriel Luiz Freitas Almeida
2023-07-07 00:03:28 -03:00
790d8b5669✨ feat(custom_components.py): add CustomComponentFrontendNode class to create a custom component The CustomComponentFrontendNode class is added to the custom_components.py file. This class represents a custom component in the frontend of the application. It has properties such as name, display_name, template, description, and base_classes. The template property defines the structure of the custom component, including a code field with default value. The to_dict() method is also implemented to convert the class instance to a dictionary. This allows the custom component to be serialized and used in other parts of the application.
Gabriel Luiz Freitas Almeida
2023-07-06 23:57:57 -03:00
93dbf552f0✨ feat(frontend_node): add custom_components to the list of exported modules The custom_components module is now included in the list of exported modules in the frontend_node package. This change allows other modules or packages to import and use the custom components provided by the frontend_node package.
Gabriel Luiz Freitas Almeida
2023-07-06 23:57:47 -03:00
2775789ccb🔥 refactor(custom.py): remove unused imports and commented out code 🚀 feat(custom.py): refactor CustomComponent class to remove unused code and improve code organization The changes in this commit remove unused imports and commented out code from the custom.py file. The CustomComponent class has been refactored to remove the CustomComponent_old class and unused methods. The code has been reorganized to improve readability and maintainability.
Gabriel Luiz Freitas Almeida
2023-07-06 23:57:28 -03:00
97572bea25🔥 refactor(constants.py): remove unused import and unused CustomComponent from CUSTOM_TOOLS dictionary The import statement for CustomComponent is no longer needed as it is not used in the CUSTOM_TOOLS dictionary. Removing the unused import and the unused CustomComponent entry from the dictionary improves code cleanliness and reduces potential confusion.
Gabriel Luiz Freitas Almeida
2023-07-06 23:57:17 -03:00
97399632e2✨ feat(custom.py): add CustomComponent class to handle custom code components 🐛 fix(custom.py): fix typo in function_entrypoint_name variable assignment The CustomComponent class is added to handle custom code components. It includes methods to handle imports, classes, and functions in the provided code. The class also has methods to extract class information, get entrypoint function arguments and return type, build a template configuration, validate the class template, and get the entrypoint function. A typo in the assignment of the function_entrypoint_name variable is fixed.
Gabriel Luiz Freitas Almeida
2023-07-06 23:57:04 -03:00
692994f100✨ feat(custom): add custom component interface and base classes 🔧 chore(custom): create a custom component creator class to handle custom component creation and loading
Gabriel Luiz Freitas Almeida
2023-07-06 23:56:49 -03:00
5e4507852c✨ feat(constants.py): add constants file for langflow interface custom types This commit adds a new file constants.py to the src/backend/langflow/interface/custom directory. The file defines a dictionary LANGCHAIN_BASE_TYPES which maps string names to corresponding langflow interface custom types. This file will be used to store and access the custom types used in the langflow interface.
Gabriel Luiz Freitas Almeida
2023-07-06 23:56:21 -03:00
024cd3398a🔧 fix(types.py): import correct module for custom component creator 🔧 fix(types.py): fix import for CustomComponent class 🔧 fix(types.py): remove unused imports 🔧 fix(types.py): fix function signature for add_new_custom_field 🔧 fix(types.py): fix function signature for build_langchain_template_custom_component 🔧 fix(types.py): fix return type validation and error handling in build_langchain_template_custom_component 🔧 fix(types.py): fix appending base classes to frontend_node in build_langchain_template_custom_component 🔧 fix(types.py): fix return statement in build_langchain_template_custom_component The changes in this commit fix import statements, function signatures, and error handling in the types.py file. The correct module is now imported for the custom component creator. The import for the CustomComponent class is fixed. Unused imports are removed. The function signature for add_new_custom_field is fixed to include the field_config parameter. The function signature for build_langchain_template_custom_component is fixed to include the field_config parameter. The return type validation and error handling in build_langchain_template_custom_component are fixed to handle invalid return types. The base classes are correctly appended to the frontend_node in build_langchain_template_custom_component. The return statement in build_langchain_template_custom_component is fixed to return the frontend_node.
Gabriel Luiz Freitas Almeida
2023-07-06 23:56:04 -03:00
f41cd1905f🚀 feat(listing.py): add support for custom components in the type dictionary The type dictionary now includes a new key "custom_components" which contains a list of custom components created using the custom_component_creator. This allows for better organization and management of custom components within the application.
Gabriel Luiz Freitas Almeida
2023-07-06 23:53:38 -03:00
fc615bf319🔥 refactor(customs.py): remove unused "CustomComponent" node from CUSTOM_NODES dictionary The "CustomComponent" node was removed from the CUSTOM_NODES dictionary as it was no longer being used. This improves code cleanliness and removes unnecessary clutter.
Gabriel Luiz Freitas Almeida
2023-07-06 23:53:27 -03:00
bed962e513🔀 refactor(endpoints.py): fix import statement for CustomComponent The import statement for CustomComponent has been updated to reflect the correct module path. This ensures that the correct CustomComponent class is imported and used in the code.
Gabriel Luiz Freitas Almeida
2023-07-06 23:52:59 -03:00
a29b83e4fa🔧 chore(settings.py): add support for custom components in the settings ✨ feat(settings.py): allow updating custom components in the settings The custom_components attribute has been added to the Settings class to support custom components in the application. This allows users to define and use their own components in addition to the built-in ones. The update_settings method has been updated to include the custom_components attribute when updating the settings. This change improves the flexibility and extensibility of the application.
Gabriel Luiz Freitas Almeida
2023-07-06 23:52:43 -03:00
a06b47c9a8🐛 fix(GenericNode/index.tsx): remove unnecessary console.log statement 🔧 chore(GenericNode/index.tsx): optimize rendering of GenericNode component by removing unused useEffect dependency The console.log statement was removed as it was no longer needed. The useEffect dependency was optimized by removing the unused data.node.template dependency, which improves the performance of the component rendering.
Gabriel Luiz Freitas Almeida
2023-07-06 23:51:07 -03:00
4595d51e62🐛 fix(parameterComponent): set disabled prop to false in TextAreaComponent to enable editing ✨ feat(GenericNode): import Zap icon from lucide-react to use in validation status tooltip 🐛 fix(textAreaComponent): import classNames from utils to fix missing import error 🐛 fix(constants): update HIGHLIGH_CSS constant to add overflow-y-hidden and max-w-[75vw] classes 🐛 fix(ApiModal): add condition to check if tweak.current exists before calling startTweaks() ✨ feat(ApiModal): import Variable icon from lucide-react to use in input variables section 🐛 fix(genericModal): import Variable icon from lucide-react to use in input variables section 🐛 fix(utils): add newline character to INVALID_CHARACTERS array 🐛 fix(tailwind.config.js): set height property to "8px" for scrollbar in custom-scroll class
Cristhian Zanforlin Lousa
2023-07-06 21:38:42 -03:00
d010a2f515style: Fix characters passing through password icon
Igor Carvalho
2023-07-06 20:05:20 -03:00
0733b56b8frefactor(codeAreaModal/v2.tsx): improve code readability and error display in CodeAreaModal component
anovazzi1
2023-07-06 19:30:37 -03:00
2459e4ecb9🔀 chore(config.yaml): remove unused CustomComponent entry and add custom configuration for CustomComponent 🔀 fix(config.yaml): fix indentation issue in the custom configuration section The unused CustomComponent entry has been removed from the tools section to clean up the configuration file. Additionally, a custom configuration section has been added for the CustomComponent, allowing for specific configuration options for this component. The indentation issue in the custom configuration section has also been fixed for consistency.
Gabriel Luiz Freitas Almeida
2023-07-06 17:42:20 -03:00
Update GCP_DEPLOYMENT.md correct url for opening spot (#618)
Gabriel Luiz Freitas Almeida
2023-07-06 17:38:40 -03:00
6675592737🔧 refactor(base.py): remove unnecessary condition in get_signature method The condition name in settings.<type> is removed from the get_signature method in the base.py files of the agents, chains, memories, and prompts modules. This condition was unnecessary as it was already checked in the get_custom_nodes function. Removing this condition simplifies the code and improves readability.
Gabriel Luiz Freitas Almeida
2023-07-06 17:35:25 -03:00
116c600d95🐛 fix(base.py): add check for name in settings to prevent accessing non-existent keys The code now checks if the name is present in the settings before accessing the corresponding keys in the get_custom_nodes function. This prevents accessing non-existent keys and avoids potential errors.
Gabriel Luiz Freitas Almeida
2023-07-06 17:27:55 -03:00
44943d225a🔥 refactor(customs.py): comment out unused ZeroShotPrompt in CUSTOM_NODES dictionary The ZeroShotPrompt node in the CUSTOM_NODES dictionary is currently not being used and commented out for clarity and to improve code readability.
Gabriel Luiz Freitas Almeida
2023-07-06 17:21:03 -03:00
8cba8514c4🐛 fix(agents.py): change type annotation of name parameter in format_field method to Optional[str] for better clarity The type annotation of the name parameter in the format_field method has been changed to Optional[str] to indicate that it can be either a string or None. This change improves the clarity of the code and makes it easier to understand the expected input for the method.
Gabriel Luiz Freitas Almeida
2023-07-06 17:18:32 -03:00
7645e24796Merge branch 'form_io' of github.com:logspace-ai/langflow into form_io
Lucas Oliveira
2023-07-06 17:17:26 -03:00
409c8e4ab2🔧 fix(chatMessage): import Badge component to use in ChatMessage component
Lucas Oliveira
2023-07-06 17:15:31 -03:00
afa1c17379🔗 docs(config.yaml): update documentation links for PromptTemplate and CharacterTextSplitter The documentation links for PromptTemplate and CharacterTextSplitter have been updated to the correct URLs. This ensures that users can access the relevant documentation for these components.
Gabriel Luiz Freitas Almeida
2023-07-06 17:11:26 -03:00
ee2278c37e🚀 feat(base.py): add pydantic BaseModel as a base class for FieldFormatter to enable data validation and serialization The FieldFormatter class now inherits from pydantic.BaseModel in addition to ABC (Abstract Base Class). This change allows FieldFormatter instances to benefit from the data validation and serialization capabilities provided by pydantic, improving the reliability and maintainability of the code.
Gabriel Luiz Freitas Almeida
2023-07-06 17:11:05 -03:00
86bbdb0c30🐛 fix(tools.py): add "BaseTool" to the base_classes list to inherit from the correct parent class The "base_classes" list in the ToolNode class has been updated to include "BaseTool" in addition to "Tool". This ensures that the ToolNode class correctly inherits from the BaseTool class, which is the intended parent class for this node.
Gabriel Luiz Freitas Almeida
2023-07-06 17:10:26 -03:00
e36027b679🔀 chore(base.py): add "BaseTool" to the base_classes list in get_signature method The "BaseTool" class is added to the base_classes list in the get_signature method. This change ensures that the "BaseTool" class is considered as one of the base classes when creating a tool's signature.
Gabriel Luiz Freitas Almeida
2023-07-06 17:10:06 -03:00
9094876ed3✨ feat(agents/base.py): add support for creating frontend nodes for agents 🔧 fix(agents/base.py): import missing AgentFrontendNode class from langflow.template.frontend_node.agents 🔧 fix(initialize/loading.py): pass node_type to instantiate_agent function to handle creation of frontend nodes for agents 🔧 fix(template/frontend_node/agents.py): add format_field method to AgentFrontendNode class to customize field behavior The missing import statement for the AgentFrontendNode class from langflow.template.frontend_node.agents has been added to the base.py file. Support for creating frontend nodes for agents has been added to the AgentCreator class in the base.py file. The instantiate_agent function in the loading.py file now receives the node_type parameter to handle the creation of frontend nodes for agents. The AgentFrontendNode class in the agents.py file now includes a format_field method to customize the behavior of certain fields.
Gabriel Luiz Freitas Almeida
2023-07-06 17:09:18 -03:00
9f80af8f83🐛 fix(types.py): fix missing return statement in PromptVertex's _built_object_repr method The _built_object_repr method in the PromptVertex class was missing a return statement, causing it to not return any value. This fix adds the missing return statement to ensure the method returns the correct value.
Gabriel Luiz Freitas Almeida
2023-07-06 17:08:54 -03:00
b32e4ca8b9🐛 fix(util.py): improve type formatting in format_dict function The format_dict function now properly handles different variations of list types by removing unnecessary characters from the type string. This improves the consistency and accuracy of the type formatting in the function.
Gabriel Luiz Freitas Almeida
2023-07-06 17:08:28 -03:00
4616ca68bdMerge branch 'form_io' of github.com:logspace-ai/langflow into form_io
Lucas Oliveira
2023-07-06 15:51:51 -03:00
4e9204d884🔥 refactor(genericModal/index.tsx): remove unused code that sets the value of inputValue in case 1 of myModalType
Lucas Oliveira
2023-07-06 15:51:25 -03:00
f6ed832f26🔥 refactor(genericModal/index.tsx): remove unused imports and lodash set function 🐛 fix(genericModal/index.tsx): update error message to be more descriptive and change setErrorData to setNoticeData The commit removes unused imports for Tooltip components and the lodash set function, as they are no longer used in the file. Additionally, the error message displayed when the template does not contain any variables for data entry is updated to be more descriptive. Instead of setting an error message, a notice message is set using the setNoticeData function from the alertContext. This provides a clearer message to the user about the absence of variables in the template.
Gabriel Luiz Freitas Almeida
2023-07-06 15:51:13 -03:00
54b13a6bb6🔀 refactor(callback.py): reorganize imports and add missing type hints 🔀 refactor(callback.py): reorganize imports and add missing type hints to improve code readability and maintainability The changes in this commit include reorganizing the imports to group them properly and adding missing type hints to improve code readability and maintainability.
Gabriel Luiz Freitas Almeida
2023-07-06 15:32:46 -03:00
ac9969624e🐛 fix(loading.py): remove empty input_key and output_key from params dictionary The code now removes the "input_key" and "output_key" keys from the params dictionary if they are empty strings. This ensures that the dictionary does not contain unnecessary keys with empty values.
Gabriel Luiz Freitas Almeida
2023-07-06 15:32:18 -03:00