🔧 fix(base.py): add output_types field to FrontendNode class to support specifying output types

🔧 fix(documentloaders.py): add_extra_base_classes method to set base_classes and output_types for DocumentLoaderFrontNode
🔧 fix(textsplitters.py): add_extra_base_classes method to set base_classes and output_types for TextSplittersFrontendNode
🔧 fix(vectorstores.py): change field_type to "Document" for documents field in VectorStoreFrontendNode
🔧 fix(index.ts): add output_types field to APIClassType interface
The changes were made to add support for specifying output types in the FrontendNode class and its subclasses. This allows for more flexibility in defining the behavior and capabilities of the frontend nodes in the application.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-03 16:37:37 -03:00
commit db17aceb3b
5 changed files with 13 additions and 2 deletions

View file

@ -13,6 +13,7 @@ export type APIClassType = {
template: APITemplateType;
display_name: string;
input_types?: Array<string>;
output_types?: Array<string>;
[key: string]: Array<string> | string | APITemplateType;
};