---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/orchestration/functions/isPredicateLeaf.md
---

# Function: isPredicateLeaf()

```ts
function isPredicateLeaf(v: unknown): v is PredicateLeaf;
```

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

Type guard for [PredicateLeaf](../interfaces/PredicateLeaf.md). A leaf is a plain object carrying a string `path` and a
string `op`; the `op` is narrowed to `PredicateOp` only when it is a member of the closed set.

## Parameters

| Parameter | Type      |
| --------- | --------- |
| `v`       | `unknown` |

## Returns

`v is PredicateLeaf`
