functionalStrategy
fun <Input, Output> functionalStrategy(strategy: AIAgentFunctionalStrategy<Input, Output>): FunctionalAgentBuilder<Input, Output>(source)
Sets the functional strategy to be used by the agent builder.
The provided strategy defines the behavior and processing logic for the AI agent in a loop-based execution model. This method configures the builder to utilize the specified strategy and returns an instance of FunctionalAgentBuilder for further configuration.
Return
An instance of FunctionalAgentBuilder configured with the provided functional strategy.
Parameters
strategy
An instance of AIAgentFunctionalStrategy that contains the custom logic used by the AI agent for decision-making or execution processes.