mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
17fd773a30
Co-authored-by: -LAN- <laipz8200@outlook.com>
17 lines
568 B
Python
17 lines
568 B
Python
from extensions.ext_code_based_extension import code_based_extension
|
|
|
|
|
|
class CodeBasedExtensionService:
|
|
@staticmethod
|
|
def get_code_based_extension(module: str) -> list[dict]:
|
|
module_extensions = code_based_extension.module_extensions(module)
|
|
return [
|
|
{
|
|
"name": module_extension.name,
|
|
"label": module_extension.label,
|
|
"form_schema": module_extension.form_schema,
|
|
}
|
|
for module_extension in module_extensions
|
|
if not module_extension.builtin
|
|
]
|