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

Method Next

pocketflow.go:93–93  ·  view source on GitHub ↗

Next connects this node to another node for a specific action. Returns the *next* node for chaining.

(action string, node BaseNode)

Source from the content-addressed store, hash-verified

91
92 // Next connects this node to another node for a specific action. Returns the *next* node for chaining.
93 Next(action string, node BaseNode) BaseNode
94
95 // GetSuccessors returns the map of action->node successors.
96 GetSuccessors() map[string]BaseNode

Callers 5

TestSimpleLinearFlowFunction · 0.65
TestBranchingFlowFunction · 0.65
NextMethod · 0.65
NextMethod · 0.65
NextMethod · 0.65

Calls

no outgoing calls

Tested by 2

TestSimpleLinearFlowFunction · 0.52
TestBranchingFlowFunction · 0.52