LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
PythonlangsmithschemasRubricItemConditionRule
Class●Since v0.15

RubricItemConditionRule

Copy
RubricItemConditionRule()

Bases

TypedDict

Constructors

Attributes

View source on GitHub
constructor
__init__
NameType
keystr
opLiteral['is', 'is_one_of', 'is_empty', 'is_not_empty']
valueslist[float]
attribute
key: str

The feedback key of an item earlier in the same rubric.

attribute
op: Literal['is', 'is_one_of', 'is_empty', 'is_not_empty']

How to test that item's feedback. is takes exactly one value, is_one_of at least one, and is_empty / is_not_empty none.

attribute
values: list[float]

Category values, not labels.

One rule in a rubric item's required_if or visible_if conditions.