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.
Properties
Functions
Link copied to clipboard
fun <Output : Any> withFinishTool(finishTool: Tool<*, Output>): SubtaskBuilderWithInputAndOutput<Input, Output>
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.