AIAgentSubgraphBuilder

constructor(name: String? = null, inputType: TypeToken, outputType: TypeToken, toolSelectionStrategy: ToolSelectionStrategy, llmModel: LLModel?, llmParams: LLMParams?, responseProcessor: ResponseProcessor? = null)(source)

Parameters

llmModel

Initial LLM model used in this subgraph

llmParams

Initial LLM prompt parameters used in this subgraph

responseProcessor

Initial optional processor defining the post-processing of messages returned from the LLM.

Type Parameters

Input

The input type expected by the starting node of the subgraph.

Output

The output type produced by the finishing node of the subgraph.


constructor(name: String? = null, inputType: KType, outputType: KType, toolSelectionStrategy: ToolSelectionStrategy, llmModel: LLModel?, llmParams: LLMParams?, responseProcessor: ResponseProcessor? = null)(source)

Deprecated

KTypes usage in graphs and nodes is deprecated. Please, use TypeTokens instead.

Constructs an instance of AIAgentSubgraphBuilder with the provided parameters, using KTypes for input and output type representation.

This constructor is deprecated. All KType parameters should be replaced by the use of TypeToken instead.

Parameters

name

An optional name for the subgraph being built.

inputType

The type of the input data for the subgraph, represented as a KType.

outputType

The type of the output data for the subgraph, represented as a KType.

toolSelectionStrategy

The strategy used to select the tools for this subgraph.

llmModel

An optional Large Language Model (LLModel) to be used within the subgraph.

llmParams

An optional set of parameters (LLMParams) for configuring the LLM behavior.

responseProcessor

An optional ResponseProcessor for post-processing responses in the subgraph.