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

Method SetFallback

pocketflow.go:247–250  ·  view source on GitHub ↗

SetFallback sets the ExecFallbackFunc.

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

Source from the content-addressed store, hash-verified

245
246// SetFallback sets the ExecFallbackFunc.
247func (n *Node) SetFallback(f func(ctx *PfContext, params map[string]any, prepResult any, lastErr error) (any, error)) *Node {
248 n.ExecFallbackFunc = f
249 return n
250}
251
252// --- BaseNode Implementation for Node ---
253

Callers 1

Calls

no outgoing calls

Tested by 1