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

Method SetPost

pocketflow.go:241–244  ·  view source on GitHub ↗

SetPost sets the PostFunc.

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

Source from the content-addressed store, hash-verified

239
240// SetPost sets the PostFunc.
241func (n *Node) SetPost(f func(ctx *PfContext, params map[string]any, prepResult any, execResult any) (string, error)) *Node {
242 n.PostFunc = f
243 return n
244}
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 {

Callers 4

setNumberNodeFunction · 0.45
addNumberNodeFunction · 0.45
simpleLogNodeFunction · 0.45

Calls

no outgoing calls

Tested by 4

setNumberNodeFunction · 0.36
addNumberNodeFunction · 0.36
simpleLogNodeFunction · 0.36