This commit is contained in:
Timothy Jaeryang Baek
2026-06-25 14:37:05 +01:00
parent 5576e6ed8a
commit e124c2656a
4 changed files with 130 additions and 6 deletions
+2
View File
@@ -285,6 +285,8 @@ async def load_function_module_by_id(function_id: str, content: str | None = Non
return module.Filter(), 'filter', frontmatter
elif hasattr(module, 'Action'):
return module.Action(), 'action', frontmatter
elif hasattr(module, 'Event'):
return module.Event(), 'event', frontmatter
else:
raise Exception('No Function class found in the module')
except Exception as e: