Skip to content

NullConversationManager

Defined in: src/conversation-manager/null-conversation-manager.ts:17

A no-op conversation manager that does not modify the conversation history.

Does not register any proactive hooks. Overflow errors will not be retried since reduce always returns false.

new NullConversationManager(): NullConversationManager;

NullConversationManager

ConversationManager.constructor

readonly name: "strands:null-conversation-manager" = 'strands:null-conversation-manager';

Defined in: src/conversation-manager/null-conversation-manager.ts:21

Unique identifier for this conversation manager.

ConversationManager.name

initAgent(agent): void;

Defined in: src/conversation-manager/conversation-manager.ts:92

Initialize the conversation manager with the agent instance.

Registers overflow recovery: when a ContextWindowOverflowError occurs, calls ConversationManager.reduce and retries the model call if reduction succeeded. If reduce returns false, the error propagates out of the agent loop uncaught.

Subclasses that need proactive management MUST call super.initAgent(agent) to preserve this overflow recovery behavior.

ParameterTypeDescription
agentLocalAgentThe agent to register hooks with

void

ConversationManager.initAgent


reduce(_args): boolean;

Defined in: src/conversation-manager/null-conversation-manager.ts:28

No-op reduction — never modifies the conversation history.

ParameterType
_argsConversationManagerReduceOptions

boolean

false always

ConversationManager.reduce