AIAgentPlannerStrategy

A strategy implementation that utilizes a planner to manage and execute AI agent workflows.

This class integrates an AI planning component (AIAgentPlanner) with a defined execution mechanism, creating a customizable strategy for AI agents.

Type Parameters

Input

The type of input data required as the starting point for the strategy execution.

Output

The type of output data produced as the result of the strategy execution.

Constructors

Link copied to clipboard
constructor(name: String, planner: AIAgentPlanner<Input, Output, *, *>)

Types

Link copied to clipboard
object Companion

Companion object for AIAgentPlannerStrategy with factory method create.

Properties

Link copied to clipboard
open override val name: String

The name of the strategy, allowing it to be identifiable in execution contexts.

Link copied to clipboard

The planner component responsible for creating and managing the execution plan.

Functions

Link copied to clipboard
open suspend override fun execute(context: AIAgentPlannerContext, input: Input): Output

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