---
url: 'https://adk.nht.io/api/@nhtio/adk/types/type-aliases/ToolCallRetrievalFn.md'
description: A function that retrieves the tool call records relevant to the current turn.
---

# Type Alias: ToolCallRetrievalFn

```ts
type ToolCallRetrievalFn = (
  ctx: TurnContext,
) => ToolCall[] | Promise<ToolCall[]>;
```

Defined in: [lib/contracts/turn\_runner\_context.ts:134](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/contracts/turn_runner_context.ts#L134)

A function that retrieves the tool call records relevant to the current turn.

## Parameters

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

## Returns

| [`ToolCall`](../../forge/classes/ToolCall.md)\[]
| `Promise`<[`ToolCall`](../../forge/classes/ToolCall.md)\[]>

## Remarks

Receives the active [TurnContext](../interfaces/TurnContext.md) so implementations can filter by completion state,
agent identity, or any other turn-specific criteria.
May be synchronous or asynchronous.
