---
url: >-
  https://adk.nht.io/api/@nhtio/adk/types/type-aliases/DispatchThoughtRetrievalFn.md
description: Retrieves thoughts for an LLM execution context.
---

# Type Alias: DispatchThoughtRetrievalFn

```ts
type DispatchThoughtRetrievalFn = (
  ctx: DispatchContext,
) => Thought[] | Promise<Thought[]>;
```

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

Retrieves thoughts for an LLM execution context.

## Parameters

| Parameter | Type                                                  |
| --------- | ----------------------------------------------------- |
| `ctx`     | [`DispatchContext`](../interfaces/DispatchContext.md) |

## Returns

| [`Thought`](../../common/classes/Thought.md)\[]
| `Promise`<[`Thought`](../../common/classes/Thought.md)\[]>
