Skip to content
providerkit
GitHub

AgentMemory

Defined in: agents/src/memory.ts:139

optional limit?: number;

Defined in: agents/src/memory.ts:141

At most 20 matches. Default 5.


optional maxChars?: number;

Defined in: agents/src/memory.ts:143

Complete rendered block, including framing. Default 4,000; at most 16,000.


optional onError?: "fail" | "continue";

Defined in: agents/src/memory.ts:145

Default continue. Scope violations and erased access always fail closed.