DefinedAIAgentSubgraphBuilder

constructor(name: String?, toolSelectionStrategy: ToolSelectionStrategy = ToolSelectionStrategy.ALL, llmModel: LLModel? = null, llmParams: LLMParams? = null, responseProcessor: ResponseProcessor? = null, inputClass: ERROR CLASS: Symbol not found for Class<Input>, outputClass: ERROR CLASS: Symbol not found for Class<Output>, buildSubgraph: GraphBuilderAction<Input, Output>)(source)

Initializes the builder with a name, tool selection strategy, LLM configuration, response processor, input/output types, and a subgraph build action.

Parameters

Input

The type of the input data for the subgraph.

Output

The type of the output data for the subgraph.

name

The name of the subgraph.

toolSelectionStrategy

Strategy to determine which tools are included in this subgraph. Defaults to using all tools.

llmModel

The Large Language Model (LLM) to use for generating responses, or null if no model is provided.

llmParams

Optional parameters for configuring the behavior of the LLM, such as temperature or context length.

responseProcessor

A processor for handling and modifying the response after the subgraph's execution.

inputClass

The class representing the input type for the subgraph.

outputClass

The class representing the output type for the subgraph.

buildSubgraph

The action that defines the logic for constructing the subgraph.