graphStrategy
fun <Input, Output> graphStrategy(name: String = "graphStrategy", build: BuilderChainAction<GraphStrategyBuilder, AIAgentGraphStrategy<Input, Output>>): GraphAgentBuilder<Input, Output>(source)
Creates a graph agent builder using the provided strategy configuration.
This method allows defining a custom graph strategy for the AI agent.
Return
A GraphAgentBuilder configured with the specified graph strategy.
Parameters
name
The name identifying the functional strategy. Defaults to "funStrategy".
build
The configuration of the graph strategy.
Type Parameters
Input
The type of the input parameter for the strategy's execution logic.
Output
The type of the output returned by the strategy's execution logic.