mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-31 19:45:15 +02:00
refactor(automation): rename schema config to params, drop dead fields
This commit is contained in:
parent
c8a89ccac8
commit
9fa35f21cf
11 changed files with 31 additions and 37 deletions
|
|
@ -14,11 +14,11 @@ class PlanStep(BaseModel):
|
|||
action: str = Field(..., min_length=1, description="Action type; resolved via registry.")
|
||||
when: str | None = Field(
|
||||
default=None,
|
||||
description="Optional Jinja expression; step is skipped when falsy.",
|
||||
description="Optional predicate; step is skipped when falsy.",
|
||||
)
|
||||
config: dict[str, Any] = Field(
|
||||
params: dict[str, Any] = Field(
|
||||
default_factory=dict,
|
||||
description="Action-type-specific config; Jinja-rendered at execute time.",
|
||||
description="Action-type-specific params; rendered at execute time.",
|
||||
)
|
||||
output_as: str | None = Field(
|
||||
default=None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue