Initialize the sliding window conversation manager.
Optionalconfig: SlidingWindowConversationManagerConfigConfiguration options for the sliding window manager.
Registers callbacks with the hook registry.
Registers:
The hook registry to register callbacks with
Implements a sliding window strategy for managing conversation history.
This class handles the logic of maintaining a conversation window that preserves tool usage pairs and avoids invalid window states. When the message count exceeds the window size, it will either truncate large tool results or remove the oldest messages while ensuring tool use/result pairs remain valid.
As a HookProvider, it registers callbacks for: