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.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new NullConversationManager(): NullConversationManager;Returns
Section titled “Returns”NullConversationManager
Inherited from
Section titled “Inherited from”ConversationManager.constructor
Properties
Section titled “Properties”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.
Overrides
Section titled “Overrides”Methods
Section titled “Methods”initAgent()
Section titled “initAgent()”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.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
agent | LocalAgent | The agent to register hooks with |
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”reduce()
Section titled “reduce()”reduce(_args): boolean;Defined in: src/conversation-manager/null-conversation-manager.ts:28
No-op reduction — never modifies the conversation history.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
_args | ConversationManagerReduceOptions |
Returns
Section titled “Returns”boolean
false always