diff --git a/src/backend/langflow/interface/custom/component.py b/src/backend/langflow/interface/custom/component.py index d122eb6da..06db5bd46 100644 --- a/src/backend/langflow/interface/custom/component.py +++ b/src/backend/langflow/interface/custom/component.py @@ -66,6 +66,9 @@ class Component(BaseModel): elif "beta" in item_name: template_config["beta"] = ast.literal_eval(item_value) + elif "documentation" in item_name: + template_config["documentation"] = ast.literal_eval(item_value) + return template_config def build(self, *args: Any, **kwargs: Any) -> Any: diff --git a/src/backend/langflow/interface/types.py b/src/backend/langflow/interface/types.py index 950f227b4..885e33694 100644 --- a/src/backend/langflow/interface/types.py +++ b/src/backend/langflow/interface/types.py @@ -199,6 +199,9 @@ def update_attributes(frontend_node, template_config): if "beta" in template_config: frontend_node["beta"] = template_config["beta"] + if "documentation" in template_config: + frontend_node["documentation"] = template_config["documentation"] + def build_field_config(custom_component: CustomComponent): """Build the field configuration for a custom component"""