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

# Function: isPlanEdge()

```ts
function isPlanEdge(v: unknown): v is PlanEdge;
```

Defined in: [src/batteries/orchestration/plan.ts:95](https://github.com/NHTIO/ADK/blob/v1.20260906.0/src/src/batteries/orchestration/plan.ts#L95)

True when `v` is a well-shaped `PlanEdge`.

## Parameters

| Parameter | Type      | Description        |
| --------- | --------- | ------------------ |
| `v`       | `unknown` | The value to test. |

## Returns

`v is PlanEdge`

True when `v` is a `PlanEdge`.

## Remarks

A shape guard, not a validator. `handle` must be one of the closed `EdgeHandle` values — the
five literal handles, or a `case_${string}` (the `case_` prefix is reserved for `select` cases,
so any string starting with `case_` is a legal handle). `id`, `from` and `to` must be strings.
Extra fields are tolerated.
