subgraphWithVerification
subgraphWithTask with CriticResult result. It verifies if the task was performed correctly or not, and describes the problems if any.
Return
A delegate representing the constructed subgraph with verification result.
Parameters
The input type accepted by the subgraph.
The strategy used to select tools for the subgraph operations.
Optional language model to be used within the subgraph. Defaults to null.
Optional parameters for configuring the language model behavior. Defaults to null.
The mode in which tools are executed. Defaults to sequential execution.
The maximum number of assistant responses allowed before determining that the task cannot be completed.
An optional processor defining the post-processing of messages returned from the LLM.
A suspending lambda function that defines the task for the subgraph, taking the input as a parameter.
Constructs a subgraph within an AI agent's strategy graph with additional verification capabilities.
This method defines a subgraph using a given list of tools, an optional language model, and optional language model parameters. It also allows specifying whether to summarize the interaction history and defines the task to be executed in the subgraph.
Return
A delegate representing the constructed subgraph with input type Input and output type as a verified subgraph result CriticResult.
Parameters
The input type accepted by the subgraph.
A list of tools available to the subgraph.
Optional language model to be used within the subgraph.
Optional parameters to configure the language model's behavior.
The mode in which tools are executed. Defaults to sequential execution.
The maximum number of assistant responses allowed before determining that the task cannot be completed.
An optional processor defining the post-processing of messages returned from the LLM.
A suspendable function defining the task that the subgraph will execute, which takes an input and produces a string-based task description.