MCPcopy Create free account
hub / github.com/ForestHubAI/edge-agents / AddTransition

Method AddTransition

go/engine/node.go:135–138  ·  view source on GitHub ↗
(port string, tr Transition)

Source from the content-addressed store, hash-verified

133
134func (b *BranchingNode) ID() string { return b.id }
135func (b *BranchingNode) AddTransition(port string, tr Transition) error {
136 b.transitions[port] = append(b.transitions[port], tr)
137 return nil
138}
139func (b *BranchingNode) Transitions(port string) []Transition { return b.transitions[port] }
140
141// ToolNode is embedded by tool-only nodes that never participate in the state machine

Callers 1

TestBranchingNodeFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestBranchingNodeFunction · 0.76