AIAgentStrategy

An interface representing the execution strategy of an AI agent.

This strategy defines how the AI agent processes input to produce an output within the context of its operation. It serves as the primary mechanism to encapsulate various decision-making, learning, or processing approaches used by the agent in a flexible manner.

Parameters

TInput

The type of input data that the strategy will process.

TOutput

The type of output data that the strategy will generate.

TContext

The type of context in which the strategy is executed, extending AIAgentContext.

Inheritors

Properties

Link copied to clipboard
abstract val name: String

The name of the AI agent strategy.

Functions

Link copied to clipboard
abstract suspend fun execute(context: TContext, input: TInput): TOutput?

Executes the AI agent's strategy using the provided context and input.