Skip to content

strands.agent.conversation_manager.null_conversation_manager

Null implementation of conversation management.

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
def apply_management(agent: "Agent", **kwargs: Any) -> None

Defined 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.
def reduce_context(agent: "Agent",
e: Exception | None = None,
**kwargs: Any) -> None

Defined 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.