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

# Type Alias: DispatchThoughtMutateFn

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

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

Updates an existing thought (LLM execution context variant).

## Parameters

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

## Returns

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