add file based loading

This commit is contained in:
Gergő Jedlicska
2023-12-13 14:39:20 +01:00
parent 8eb8488c29
commit 6ceffa9c51
3 changed files with 373 additions and 346 deletions
+3 -1
View File
@@ -3,7 +3,7 @@
Use the automation_context module to wrap your function in an Autamate context helper
"""
from pydantic import Field
from pydantic import Field, SecretStr
from speckle_automate import (
AutomateBase,
AutomationContext,
@@ -21,6 +21,8 @@ class FunctionInputs(AutomateBase):
https://docs.pydantic.dev/latest/usage/models/
"""
# an example how to use secret values
whisper_message: SecretStr = Field(title="This is a secret message")
forbidden_speckle_type: str = Field(
title="Forbidden speckle type",
description=(