functionalStrategy
abstract 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
Input
The type of the input data to be processed by the strategy.
Output
The type of the output data to be produced by the strategy.
strategy
An instance of AIAgentFunctionalStrategy that contains the custom logic used by the AI agent for decision-making or execution processes.