Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component

This commit is contained in:
gustavoschaedler 2023-07-28 18:34:19 +01:00
commit 859c9beaad

View file

@ -30,7 +30,7 @@ The class can have a [_`build_config`_](focus://8) instance method, which is use
The [_`build_config`_](focus://8) method should always return a dictionary with specific keys representing the field names and their corresponding configurations.
It must follow the format described below:
The top level keys are the field names.
The top-level keys are the field names.
Their values are of type _`dict`_ with any of the following keys (all of them are **optional**):
@ -48,10 +48,6 @@ Their values are of type _`dict`_ with any of the following keys (all of them ar
| _`info: str`_ | To add a tooltip to the field |
| _`file_types: List[str]`_ | This is a requirement if the _`field_type`_ is file. Defines which file types will be accepted. For example, json, yaml or yml |
Now we can load the flow using the _`load_flow`_ method.
The _`tweaks`_ parameter is a dictionary that allows you to customize the flow.
The CustomComponent class provides the following methods:
| Method name | Description |