graphStrategy
fun <Input, Output> graphStrategy(strategy: AIAgentGraphStrategy<Input, Output>): GraphAgentBuilder<Input, Output>(source)
Configures and returns a GraphAgentBuilder instance using the specified AIAgentGraphStrategy.
The method allows associating an AI agent with a specific graph-based strategy for managing and executing workflows. It provides flexibility to define input and output types specific to the desired strategy.
Return
An instance of GraphAgentBuilder configured with the specified strategy.
Parameters
strategy
The AIAgentGraphStrategy instance defining the workflow, including the start and finish nodes as well as the tool selection strategy.