---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/orchestration/interfaces/PredicateLeaf.md
description: >-
  A leaf predicate: read `path` from the readable context and compare it with
  `op`.
---

# Interface: PredicateLeaf

Defined in: [src/batteries/orchestration/predicates.ts:31](https://github.com/NHTIO/ADK/blob/v1.20260906.0/src/src/batteries/orchestration/predicates.ts#L31)

A leaf predicate: read `path` from the readable context and compare it with `op`.

`value` is optional because `truthy` and `exists` are unary — they need no right-hand side.
For every other operator `parseStructuredPredicate` requires `value` to be present.

## Properties

| Property                             | Type                                                        | Description                                                                                   | Defined in                                                                                                                                        |
| ------------------------------------ | ----------------------------------------------------------- | --------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
|  `op`        | [`PredicateOp`](../type-aliases/PredicateOp.md)             | The comparison operator. `truthy`/`exists` are unary and must not carry `value`.              | [src/batteries/orchestration/predicates.ts:35](https://github.com/NHTIO/ADK/blob/v1.20260906.0/src/src/batteries/orchestration/predicates.ts#L35) |
|  `path`    | `string`                                                    | The dot-path into the readable context to read and compare.                                   | [src/batteries/orchestration/predicates.ts:33](https://github.com/NHTIO/ADK/blob/v1.20260906.0/src/src/batteries/orchestration/predicates.ts#L33) |
|  `value?` | [`EncodableValue`](../types/type-aliases/EncodableValue.md) | The right-hand side to compare against. Required for every operator except `truthy`/`exists`. | [src/batteries/orchestration/predicates.ts:37](https://github.com/NHTIO/ADK/blob/v1.20260906.0/src/src/batteries/orchestration/predicates.ts#L37) |
