Strategy
Represents a specific strategy within an AI agent subgraph.
The Strategy class is a specialization of the SubgraphNode class designed to focus on resolving and managing AIAgentStrategy instances. It provides a mechanism to ensure the resolution process evaluates to the expected strategy type, preserving type safety and logical consistency within the graph-based AI workflow.
Parameters
name
The unique identifier for the strategy.
Properties
Functions
Link copied to clipboard
open override fun resolve(subgraph: AIAgentSubgraphBase<*, *>): AIAgentGraphStrategyBase<Input, Output>
Resolves the given subgraph into an AIAgentStrategy instance to ensure that the resolved object matches the expected strategy name and type.