Skip to main content
The CriticNode class evaluates the output of a target node against a list of criteria. It is automatically added as a dependent of the target node so it always runs after the node it evaluates.

Constructor

Parameters

The target_node is automatically added to dependencies. You do not need to list it manually.

Basic Usage

Default Criteria

When you omit criteria, the node uses three built-in labels:

Custom Criteria

Provide specific, measurable criteria for your use case:

Content Writing

Code Review

Data Extraction

Writing Good Criteria

Retry Configuration

YAML Configuration

Complete Example