SubgraphWithFinishToolBuilder
class SubgraphWithFinishToolBuilder<Input : Any, Output : Any, OutputTransformed : Any>(name: String?, toolSelectionStrategy: ToolSelectionStrategy = ToolSelectionStrategy.ALL, llmModel: LLModel? = null, llmParams: LLMParams? = null, responseProcessor: ResponseProcessor? = null, inputClass: ERROR CLASS: Symbol not found for Class<Input>, finishTool: Tool<Output, OutputTransformed>)(source)
Builder class for constructing a subgraph with a finish tool in a graph strategy.
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: LLModel? = null, llmParams: LLMParams? = null, responseProcessor: ResponseProcessor? = null, inputClass: ERROR CLASS: Symbol not found for Class<Input>, finishTool: Tool<Output, OutputTransformed>)
Functions
Link copied to clipboard
fun withTask(defineTask: ContextualAction<Input, String>): SubgraphWithTaskBuilder<Input, OutputTransformed>
Configures a task to be executed as part of the subgraph.
fun withTask(defineTask: SimpleAction<Input, String>): SubgraphWithTaskBuilder<Input, OutputTransformed>
Defines a task within the subgraph using the provided task implementation.