resolve
Resolves and returns the finishing node of the given AI agent subgraph.
Return
The finishing node of the subgraph, cast to the expected type AIAgentNodeBase<Output, Output>
.
Parameters
subgraph
The AI agent subgraph from which the finishing node is resolved.