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

Method SetPost

pocketflow.go:401–404  ·  view source on GitHub ↗

SetPost sets the PostFunc. Receives []any prep and []any exec results.

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

Source from the content-addressed store, hash-verified

399
400// SetPost sets the PostFunc. Receives []any prep and []any exec results.
401func (bn *BatchNode) SetPost(f func(ctx *PfContext, params map[string]any, prepResult []any, execResult []any) (string, error)) *BatchNode {
402 bn.PostFunc = f
403 return bn
404}
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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected