MCPcopy Create free account
hub / github.com/The-Pocket/PocketFlow-Go / SetItemFallback

Method SetItemFallback

pocketflow.go:407–410  ·  view source on GitHub ↗

SetItemFallback sets the ExecItemFallbackFunc.

(f func(ctx *PfContext, params map[string]any, item any, lastErr error) (any, error))

Source from the content-addressed store, hash-verified

405
406// SetItemFallback sets the ExecItemFallbackFunc.
407func (bn *BatchNode) SetItemFallback(f func(ctx *PfContext, params map[string]any, item any, lastErr error) (any, error)) *BatchNode {
408 bn.ExecItemFallbackFunc = f
409 return bn
410}
411
412// --- BaseNode Implementation for BatchNode ---
413

Callers 1

Calls

no outgoing calls

Tested by 1