# serializeHistoryItems

**Kind:** Function

**Source:** [`atloria-monorepo/libs/agent-core/src/context/model-compactor.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/agent-core/src/context/model-compactor.ts#L91)

Serialize SDK input items into a text representation for the compaction model.
Handles the various formats the OpenAI Agents SDK uses.

## Signature

```ts
function serializeHistoryItems(items: unknown[]): string
```

## Parameters

| Name | Type |
|---|---|
| `items` | `unknown[]` |

**Returns:** `string`
