strands.agent.conversation_manager.null_conversation_manager
Null implementation of conversation management.
NullConversationManager
Section titled “NullConversationManager”class NullConversationManager(ConversationManager)Defined in: src/strands/agent/conversation_manager/null_conversation_manager.py:12
A no-op conversation manager that does not modify the conversation history.
Useful for:
- Testing scenarios where conversation management should be disabled
- Cases where conversation history is managed externally
- Situations where the full conversation history should be preserved
apply_management
Section titled “apply_management”def apply_management(agent: "Agent", **kwargs: Any) -> NoneDefined in: src/strands/agent/conversation_manager/null_conversation_manager.py:22
Does nothing to the conversation history.
Arguments:
agent- The agent whose conversation history will remain unmodified.**kwargs- Additional keyword arguments for future extensibility.
reduce_context
Section titled “reduce_context”def reduce_context(agent: "Agent", e: Exception | None = None, **kwargs: Any) -> NoneDefined in: src/strands/agent/conversation_manager/null_conversation_manager.py:31
Does not reduce context and raises an exception.
Arguments:
agent- The agent whose conversation history will remain unmodified.e- The exception that triggered the context reduction, if any.**kwargs- Additional keyword arguments for future extensibility.
Raises:
e- If provided.ContextWindowOverflowException- If e is None.