> ## Documentation Index
> Fetch the complete documentation index at: https://cognitio-agent.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Interface: PreCompactHookData

> Generated from the public TypeScript API.

Context supplied before manual or automatic compaction, including token counts and existing instructions.

## Properties

### auto

```ts theme={null}
auto: boolean;
```

***

### customInstructions?

```ts theme={null}
optional customInstructions?: string;
```

***

### messageCount

```ts theme={null}
messageCount: number;
```

***

### overflow?

```ts theme={null}
optional overflow?: boolean;
```

***

### preCompactTokenCount

```ts theme={null}
preCompactTokenCount: number;
```

***

### trigger

```ts theme={null}
trigger: "manual" | "auto";
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.