functionalStrategy
fun <Input, Output> functionalStrategy(name: String = "funStrategy", strategy: BiFunction<AIAgentFunctionalContext, Input, Output>): FunctionalAgentBuilder<Input, Output>(source)
Creates a functional agent builder using the provided strategy configuration.
This method allows defining a custom functional strategy for the AI agent.
Return
A FunctionalAgentBuilder configured with the specified functional strategy.
Parameters
name
The name identifying the functional strategy. Defaults to "funStrategy".
strategy
The implementation of the functional strategy's execution logic.
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.