---
url: >-
  https://adk.nht.io/api/@nhtio/adk/types/type-aliases/DispatchMessageMutateFn.md
description: Updates an existing message (LLM execution context variant).
---

# Type Alias: DispatchMessageMutateFn

```ts
type DispatchMessageMutateFn = (
  ctx: DispatchContext,
  v: Message,
) => void | Promise<void>;
```

Defined in: [lib/contracts/dispatch\_context.ts:111](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/contracts/dispatch_context.ts#L111)

Updates an existing message (LLM execution context variant).

## Parameters

| Parameter | Type                                                  |
| --------- | ----------------------------------------------------- |
| `ctx`     | [`DispatchContext`](../interfaces/DispatchContext.md) |
| `v`       | [`Message`](../../common/classes/Message.md)          |

## Returns

`void` | `Promise`<`void`>
