resolve
open override fun resolve(subgraph: AIAgentSubgraph<*, *>): AIAgentGraphStrategy<Input, Output>(source)
Resolves the given subgraph into an AIAgentStrategy
instance to ensure that the resolved object matches the expected strategy name and type.
Return
The resolved subgraph as an instance of AIAgentStrategy
.
Parameters
subgraph
The subgraph to be resolved. It must have the same name as the current strategy instance and must also be of type AIAgentStrategy
.
Throws
If the subgraph's name does not match the name of the current strategy.
If the subgraph is not of type AIAgentStrategy
.