Create a SummarizationMiddleware with model-aware defaults.
Computes trigger, keep, and truncation settings from the model's profile (or uses fixed-token fallbacks) and returns a configured middleware.
create_summarization_middleware(
model: BaseChatModel,
backend: BACKEND_TYPES
) -> _DeepAgentsSummarizationMiddleware| Name | Type | Description |
|---|---|---|
model* | BaseChatModel | Resolved chat model instance. |
backend* | BACKEND_TYPES | Backend instance or factory for persisting conversation history. |