---
url: 'https://adk.nht.io/api/@nhtio/adk/batteries/variables/defaultFilterThoughts.md'
description: 'Default thought filter; alias of [`filterThoughts`](https://adk.nht.io/api/@nhtio/adk/batteries/functions/filterThoughts).'
---

# Variable: defaultFilterThoughts

```ts
const defaultFilterThoughts: (
  thoughts: Iterable<Thought>,
  mode: "all-self" | "latest-self" | "all",
  selfIdentity: string,
  replayCompatibility: readonly string[],
) => Thought[] = filterThoughts;
```

Defined in: [batteries/llm/chat\_common/helpers.ts:486](https://github.com/NHTIO/ADK/blob/v1.20260609.0/src/batteries/llm/chat_common/helpers.ts#L486)

Default thought filter; alias of [filterThoughts](../functions/filterThoughts.md).

Implements [ChatHelpersCommon.filterThoughts](../llm/ollama/interfaces/ChatHelpersCommon.md#property-filterthoughts).

## Parameters

| Parameter             | Type                                                       |
| --------------------- | ---------------------------------------------------------- |
| `thoughts`            | `Iterable`<[`Thought`](../../common/classes/Thought.md)> |
| `mode`                | `"all-self"` | `"latest-self"` | `"all"`                 |
| `selfIdentity`        | `string`                                                   |
| `replayCompatibility` | readonly `string`\[]                                        |

## Returns

[`Thought`](../../common/classes/Thought.md)\[]
