Files
AutoMetabuilder/backend/autometabuilder/workflow/plugins/var/var_set.py
copilot-swe-agent[bot] 379908dd64 Add missing var plugin files and update gitignore
- Added var plugin implementation files (get, set, delete, exists)
- Updated .gitignore to not ignore backend/autometabuilder/workflow/plugins/var/
- These files were created but not committed due to gitignore pattern

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-10 13:54:57 +00:00

15 lines
371 B
Python

"""Workflow plugin: set variable in workflow store."""
def run(runtime, inputs):
"""Set variable value in workflow store."""
key = inputs.get("key")
value = inputs.get("value")
if key is None:
return {"result": None, "key": None, "error": "key is required"}
runtime.store[key] = value
return {"result": value, "key": key}