Strategy

Represents a specific strategy within an AI agent subgraph.

The Strategy class is a specialization of the SubgraphNode class designed to focus on resolving and managing AIAgentStrategy instances. It provides a mechanism to ensure the resolution process evaluates to the expected strategy type, preserving type safety and logical consistency within the graph-based AI workflow.

Parameters

name

The unique identifier for the strategy.

Constructors

Link copied to clipboard
constructor(name: String)

Properties

Link copied to clipboard

The unique name of the target node within the subgraph.

Functions

Link copied to clipboard
open override fun resolve(subgraph: AIAgentSubgraph<*, *>): AIAgentStrategy<Input, Output>

Resolves the given subgraph into an AIAgentStrategy instance to ensure that the resolved object matches the expected strategy name and type.