SubgraphWithFinishToolBuilder

class SubgraphWithFinishToolBuilder<Input : Any, Output : Any, OutputTransformed : Any>(name: String?, toolSelectionStrategy: ToolSelectionStrategy = ToolSelectionStrategy.ALL, llmModel: ERROR CLASS: Symbol not found for LLModel?? = null, llmParams: ERROR CLASS: Symbol not found for LLMParams?? = null, responseProcessor: ERROR CLASS: Symbol not found for ResponseProcessor?? = null, inputClass: Class<Input>, finishTool: ERROR CLASS: Symbol not found for Tool<Output, OutputTransformed>)(source)

Builder class for constructing a subgraph with a finish tool in a graph strategy.

Type Parameters

Input

The type of the input entity.

Output

The type of the output entity before transformation.

OutputTransformed

The type of the output entity after transformation.

Constructors

Link copied to clipboard
constructor(name: String?, toolSelectionStrategy: ToolSelectionStrategy = ToolSelectionStrategy.ALL, llmModel: ERROR CLASS: Symbol not found for LLModel?? = null, llmParams: ERROR CLASS: Symbol not found for LLMParams?? = null, responseProcessor: ERROR CLASS: Symbol not found for ResponseProcessor?? = null, inputClass: Class<Input>, finishTool: ERROR CLASS: Symbol not found for Tool<Output, OutputTransformed>)

Functions

Link copied to clipboard

Configures a task to be executed as part of the subgraph.

Defines a task within the subgraph using the provided task implementation.