resolveEdge
suspend fun resolveEdge(context: AIAgentContextBase, nodeOutput: Output): AIAgentNodeBase.ResolvedEdge?(source)
Resolves the edge associated with the provided node output and execution context. Iterates through available edges and identifies the first edge that can successfully process the given node output within the provided context. If a resolvable edge is found, it returns a ResolvedEdge
containing the edge and its output. Otherwise, returns null.
Return
A ResolvedEdge
containing the matched edge and its output, or null if no edge matches.
Parameters
context
The execution context in which the edge is resolved.
nodeOutput
The output of the current node used to resolve the edge.