subtaskWithVerification
Executes a subtask with validation and verification of the results. The method defines a subtask for the AI agent using the provided input and additional parameters and ensures that the output is evaluated based on its correctness and feedback.
Return
A CriticResult object containing the verification status, feedback, and the original input for the subtask.
Parameters
The type of the input provided to the subtask.
The input data for the subtask, which will be used to create and execute the task.
An optional list of tools that can be used during the execution of the subtask.
An optional parameter specifying the LLM model to be used for the subtask.
Optional configuration parameters for the LLM, such as temperature and token limits.
The mode in which tools should be executed, either sequentially or in parallel.
An optional parameter specifying the maximum number of retries for getting valid responses from the assistant.
A suspend function that defines the subtask as a string based on the provided input.