AIAgentFunctionalStrategy
class AIAgentFunctionalStrategy<TInput, TOutput>(val name: String, val func: suspend AIAgentFunctionalContext.(TInput) -> TOutput) : AIAgentStrategy<TInput, TOutput, AIAgentFunctionalContext> (source)
A strategy for implementing AI agent behavior that operates in a loop-based manner.
The AIAgentFunctionalStrategy class allows for the definition of a custom looping logic that processes input and produces output by utilizing an AIAgentFunctionalContext. This strategy can be used to define iterative decision-making or execution processes for AI agents.
Parameters
TInput
The type of input data processed by the strategy.
TOutput
The type of output data produced by the strategy.
Properties
Link copied to clipboard
A suspending function representing the loop logic for the strategy. It accepts input data of type TInput and an AIAgentFunctionalContext to execute the loop and produce the output.