SubtaskBuilder
class SubtaskBuilder(val context: AIAgentFunctionalContextBase<*>, val taskDescription: String)(source)
A builder class responsible for creating and managing subtasks within the context of an AI agent's functional operations.
Parameters
context
The functional context associated with the AI agent, providing the necessary environment for the subtask.
taskDescription
A textual description of the task to be handled by the subtask.
Constructors
Functions
Link copied to clipboard
fun <Output : Any> withFinishTool(finishTool: ERROR CLASS: Symbol not found for Tool<*, Output>): SubtaskBuilderWithOutput<Output>
Associates a finishing tool with the subtask builder, allowing the subtask to produce an output of the specified type.
Link copied to clipboard
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.