Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component
This commit is contained in:
commit
859c9beaad
1 changed files with 1 additions and 5 deletions
|
|
@ -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 |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue