TypedGraphStrategyBuilder

class TypedGraphStrategyBuilder<Input : Any, Output : Any>(strategyName: String, inputClass: KClass<Input>, outputClass: KClass<Output>, toolSelectionStrategy: ToolSelectionStrategy = ToolSelectionStrategy.ALL, builder: AIAgentGraphStrategyBuilder<Input, Output> = AIAgentGraphStrategyBuilder( strategyName, typeToken(inputClass), typeToken(outputClass), toolSelectionStrategy ), edgeBuilders: MutableList<AIAgentGraphStrategyBuilder<Input, Output>.() -> Unit> = mutableListOf())(source)

Builder class used for constructing and configuring an AIAgentGraphStrategy.

Parameters

strategyName

The name of the strategy being built.

Type Parameters

Input

The type of the input entity.

Output

The type of the output entity.

Constructors

Link copied to clipboard
constructor(strategyName: String, inputClass: KClass<Input>, outputClass: KClass<Output>, toolSelectionStrategy: ToolSelectionStrategy = ToolSelectionStrategy.ALL, builder: AIAgentGraphStrategyBuilder<Input, Output> = AIAgentGraphStrategyBuilder( strategyName, typeToken(inputClass), typeToken(outputClass), toolSelectionStrategy ), edgeBuilders: MutableList<AIAgentGraphStrategyBuilder<Input, Output>.() -> Unit> = mutableListOf())

Properties

Link copied to clipboard

Provides access to the "finish" node of the strategy graph being constructed.

Link copied to clipboard

Provides access to the starting node of the graph strategy being constructed.

Functions

Link copied to clipboard

Builds and returns an instance of AIAgentGraphStrategy configured with the specified parameters, input/output types, and edge builders.

Link copied to clipboard

Adds an edge to the graph strategy using the provided AIAgentEdge.

Adds an edge to the graph strategy, connecting two nodes with a compatible data flow between them.

Link copied to clipboard

Configures the strategy for selecting tools to be used in the current graph strategy builder.