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

Method initCore

pocketflow.go:117–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115}
116
117func (n *nodeCore) initCore() {
118 if n.params == nil {
119 n.params = make(map[string]any)
120 }
121 if n.successors == nil {
122 n.successors = make(map[string]BaseNode)
123 }
124}
125
126func (n *nodeCore) SetParams(params map[string]any) {
127 n.initCore()

Callers 9

SetParamsMethod · 0.95
GetParamsMethod · 0.95
NextMethod · 0.95
GetSuccessorsMethod · 0.95
GetNextNodeMethod · 0.95
NewNodeFunction · 0.80
NewBatchNodeFunction · 0.80
NewFlowFunction · 0.80
NewBatchFlowFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected