Files
AutoMetabuilder/backend/autometabuilder/workflow/plugins/math/math_power.py
2026-01-10 13:36:29 +00:00

9 lines
194 B
Python

"""Workflow plugin: power operation."""
def run(_runtime, inputs):
"""Calculate a to the power of b."""
a = inputs.get("a", 0)
b = inputs.get("b", 1)
return {"result": a ** b}