Defined in: [src/memory/types.ts:269](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/memory/types.ts#L269)

Configuration for the [MemoryManager](/pr-cms-5569/docs/api/typescript/MemoryManager/index.md).

## Properties

### stores

```ts
stores: MemoryStore[];
```

Defined in: [src/memory/types.ts:271](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/memory/types.ts#L271)

One or more memory stores to manage.

---

### searchToolConfig?

```ts
searchToolConfig?: boolean | MemoryToolConfig;
```

Defined in: [src/memory/types.ts:273](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/memory/types.ts#L273)

Search tool configuration. Defaults to `true`.

---

### addToolConfig?

```ts
addToolConfig?: boolean | MemoryAddToolConfig;
```

Defined in: [src/memory/types.ts:278](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/memory/types.ts#L278)

Add tool configuration. Defaults to `false` (opt-in). `true` lets the tool write to all writable stores; pass a [MemoryAddToolConfig](/pr-cms-5569/docs/api/typescript/MemoryAddToolConfig/index.md) with `stores` to restrict it to specific ones.

---

### injection?

```ts
injection?: boolean | MemoryInjectionConfig;
```

Defined in: [src/memory/types.ts:294](https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/memory/types.ts#L294)

Memory context injection. Defaults to `true`. `true` uses the default injection settings; pass a [MemoryInjectionConfig](/pr-cms-5569/docs/api/typescript/MemoryInjectionConfig/index.md) to customize retrieval, timing, and formatting; `false` disables it.

`true` is equivalent to:

```ts
{
  trigger: 'userTurn',          // inject only on a fresh user ask
  maxEntries: 5,                // retrieve and inject up to 5 entries
  // query:  the latest user text on a user turn, else the most recent assistant text
  // format: a <memory> block with one <entry source="STORE_NAME"> per result (content escaped)
}
```