🐛 fix(nodes.py): flatten list of tools if it is a list of lists
🐛 fix(toolkits/base.py): add "toolkit" check to avoid adding "Tool" to non-toolkit classes
📝 docs(agents.py): update node descriptions to reflect CSV and zero shot agents
The changes in base.py and nodes.py ensure that the code works as intended and avoids errors when extending lists. The change in toolkits/base.py ensures that "Tool" is only added to classes that are toolkits. The changes in agents.py update the node descriptions to reflect that the CSVAgentNode constructs a CSV agent and the InitializeAgentNode constructs a zero shot agent.
🐛 fix(base.py): remove deepcopy for VectorStore and VectorStoreRouter agents
🐛 fix(nodes.py): remove deepcopy for VectorStore and VectorStoreRouter agents
🔧 chore(loading.py): comment out unused code for loading toolkits
🐛 fix(toolkits/base.py): add Tool to base_classes in get_signature method
The changes to the config file add the VectorStoreToolkit to the list of toolkits. The deepcopy for VectorStore and VectorStoreRouter agents was causing issues, so it was removed from the base.py and nodes.py files. The loading.py file had some unused code for loading toolkits, so it was commented out. Finally, the base.py file had a bug where the Tool class was not being added to the base_classes list in the get_signature method, so it was added.
The keys of the nodeIcons object have been renamed to improve semantics and readability. The new names are more descriptive of the functionality of the corresponding icons.
The "suffix" and "prefix" fields have been changed from type "str" to "prompt" to allow for more flexibility in the input. The "format_instructions" field has been updated to be required and multiline, and to show the instructions by default. This change will make it easier for users to understand the expected input format.
🔨 refactor(util.py): add format_instructions to the list of fields to format in format_dict function
The suffix and format_instructions fields in the ZeroShotPromptNode class were swapped to improve the readability of the code. The format_instructions field is now above the suffix field, which makes more sense as it is a required field. In the util.py file, the format_instructions field was added to the list of fields to format in the format_dict function. This ensures that the format_instructions field is properly formatted when the function is called.
Description:
This pull request proposes the addition of a scrollbar to the modal
window containing advanced settings when the number of input fields
exceeds the limit of the screen. This enhancement aims to improve user
experience by providing a convenient way to access all settings, even
when the available screen space is limited.
The number of inputs in the screen is limited by a variable on Utils
that can be easily changed in the future if It's needed.
✨ feat(template): add method to add fields to a template
The VectorStoreFrontendNode now supports adding extra fields to its
template. The add_extra_fields method is called after the node is loaded
and adds the weaviate_url field to the template if the node is of type
Weaviate. The Template class now has a method to add fields to a
template. This method is used by the VectorStoreFrontendNode to add the
weaviate_url field to its template.
✨ feat(template): add method to add fields to a template
The VectorStoreFrontendNode now supports adding extra fields to its template. The add_extra_fields method is called after the node is loaded and adds the weaviate_url field to the template if the node is of type Weaviate. The Template class now has a method to add fields to a template. This method is used by the VectorStoreFrontendNode to add the weaviate_url field to its template.
The changes in this commit are purely cosmetic, as the code has been formatted with prettier to improve its readability and consistency. No functional changes have been made.
The langchain and langchain-serve dependencies have been updated to versions 0.0.184 and 0.0.38 respectively. This update may include bug fixes, performance improvements, or new features.