---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/media/type-aliases/ChainExecutor.md
description: >-
  The function a builder calls to execute its accumulated ops. Bound by the
  pipeline.
---

# Type Alias: ChainExecutor

```ts
type ChainExecutor = (ops: MediaOp[]) => Promise<PlanResult>;
```

Defined in: [src/batteries/media/builder.ts:21](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/media/builder.ts#L21)

The function a builder calls to execute its accumulated ops. Bound by the pipeline.

## Parameters

| Parameter | Type                                    |
| --------- | --------------------------------------- |
| `ops`     | [`MediaOp`](../interfaces/MediaOp.md)\[] |

## Returns

`Promise`<[`PlanResult`](PlanResult.md)>
