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

Method SetPrep

pocketflow.go:229–232  ·  view source on GitHub ↗

SetPrep sets the PrepFunc.

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

Source from the content-addressed store, hash-verified

227
228// SetPrep sets the PrepFunc.
229func (n *Node) SetPrep(f func(ctx *PfContext, params map[string]any) (any, error)) *Node {
230 n.PrepFunc = f
231 return n
232}
233
234// SetExec sets the ExecFunc.
235func (n *Node) SetExec(f func(ctx *PfContext, params map[string]any, prepResult any) (any, error)) *Node {

Callers 3

addNumberNodeFunction · 0.45
resultCaptureNodeFunction · 0.45

Calls

no outgoing calls

Tested by 3

addNumberNodeFunction · 0.36
resultCaptureNodeFunction · 0.36