MCPcopy Create free account
hub / github.com/astercloud/aster / TransformFunction

Function TransformFunction

pkg/workflow/step.go:268–272  ·  view source on GitHub ↗
(name string, transform func(input any) any)

Source from the content-addressed store, hash-verified

266}
267
268func TransformFunction(name string, transform func(input any) any) *FunctionStep {
269 return SimpleFunction(name, func(input any) (any, error) {
270 return transform(input), nil
271 })
272}
273
274// ===== ConditionStep =====
275

Callers

nothing calls this directly

Calls 1

SimpleFunctionFunction · 0.85

Tested by

no test coverage detected