Summarizer = str | BaseChatModel | Runnable[list[AnyMessage], strGenerates a summary from the messages selected for summarization.
Either a chat model (or model string) prompted with the summary prompt, or a
Runnable or callable taking the messages and returning the summary text.