yr.condition

condition(
    instruction: str,
    on_wire: bool = False,
    **kwargs,
) → bool

Use the active LLM to evaluate a boolean condition.

Parameters

instruction
type: str

Instruction text describing what the condition checks.

on_wire
type: bool = False

Whether the field should be included in LLM context (default: False).

**kwargs
type: object

Additional keyword arguments passed to the model fill method.

Returns

type: bool

Boolean value representing whether the condition holds.