llmAsAJudge
fun llmAsAJudge(task: String, llmModel: LLModel? = null): AIAgentNodeBase<Input, CriticResult<Input>>(source)
Configures an AI agent node to evaluate and critique input data as a simulated "judge" using a specified task and an optional Large Language Model (LLM).
Return
An instance of AIAgentNodeBase configured to process input of type Input and generate output of type CriticResult.
Parameters
task
The task or criteria used by the AI agent to evaluate input data.
llmModel
An optional instance of LLModel representing the Large Language Model to be used. Defaults to null.