Options for the summarization middleware.
interface SummarizationMiddlewareOptionsBackend instance or factory (default: StateBackend)
Path prefix for storing conversation history. Defaults to "/conversation_history".
Context retention policy after summarization. Defaults to keeping last 20 messages.
The model for the agent. Defaults to defaultModel
Prompt template for generating summaries.
Threshold(s) that trigger summarization. Can be a single ContextSize or an array for multiple triggers.
Max tokens to include when generating summary. Defaults to 4000.
Settings for truncating large tool arguments in old messages. If not provided, argument truncation is disabled.