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

Method SetPostBatch

pocketflow.go:745–748  ·  view source on GitHub ↗

SetPostBatch sets the function to run after all batches complete.

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

Source from the content-addressed store, hash-verified

743
744// SetPostBatch sets the function to run after all batches complete.
745func (bf *BatchFlow) SetPostBatch(f func(ctx *PfContext, params map[string]any, batchPrepResult []map[string]any) (string, error)) *BatchFlow {
746 bf.PostBatchFunc = f
747 return bf
748}
749
750// --- BaseNode Implementation Overrides for BatchFlow ---
751

Callers 1

TestBatchFlowExecutionFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestBatchFlowExecutionFunction · 0.76