SubtaskBuilderWithInputAndOutput
Builder class to create and configure a subtask with specified input and output types.
Parameters
The type of the input required for the subtask.
The type of the output produced by the subtask.
The functional context associated with the AI agent.
The description of the task that this subtask represents.
The input data required for the subtask.
Specifies the output of the subtask either by its class or through a finish tool.
Optional list of tools that can be used during the subtask execution.
Optional language model to be used for the subtask.
Optional parameters for the language model configuration.
Optional processor for post-processing LLM responses.
Specifies the mode in which tools should be called (e.g., sequentially).
Optional maximum number of response repetitions allowed for the assistant.
Optional executor service for managing asynchronous operations.
Constructors
Constructs a new instance of SubtaskBuilderWithInputAndOutput. This constructor allows specifying the context, task description, input, and the output class type, which will be used to configure the subtask builder for tasks requiring both input and output processing.
Secondary constructor for initializing an instance of SubtaskBuilderWithInputAndOutput with a specific context, task description, input, and a finalizing tool for output processing.
Properties
Functions
Sets the maximum number of times the assistant's response can be repeated.
Configures the subtask builder to use the specified ExecutorService for task execution.
Sets the parameters for the language model (LLM) to be used in the subtask.
Sets the response processor to be used for post-processing LLM responses during task execution.
Adds the specified sets of tools to the subtask configuration.
Sets the tools to be used for the subtask configuration.