SubtaskBuilderWithInput

class SubtaskBuilderWithInput<Input>(val context: AIAgentFunctionalContextBase<*>, val taskDescription: String, val input: Input)(source)

A builder class designed for constructing subtasks with input data in the context of an AI agent's functional framework.

This class facilitates the creation of subtasks by providing the context, task description, and input data to be used. It enables chaining methods to specify additional configurations, such as output types or finish tools.

Parameters

Input

The type of the input data to be utilized by the subtask.

Constructors

Link copied to clipboard
constructor(context: AIAgentFunctionalContextBase<*>, taskDescription: String, input: Input)

Properties

Link copied to clipboard

The functional context associated with the AI agent, used for task execution.

Link copied to clipboard

The input data provided to the subtask.

Link copied to clipboard

A textual description of the subtask being created.

Functions

Link copied to clipboard

Associates a finishing tool with the subtask builder, allowing the subtask to produce an output of the specified type.

Link copied to clipboard
fun <Output : Any> withOutput(outputClass: ERROR CLASS: Symbol not found for Class<Output>): SubtaskBuilderWithInputAndOutput<Input, Output>

Specifies the output type for a subtask to be built.

Link copied to clipboard

Configures the subtask builder to include a verification step in the task pipeline.