SummarizationConfig
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/middleware/types.ts:35
Configuration for summarization middleware.
Properties
Section titled “Properties”
optionalkeep?:object
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/middleware/types.ts:54
How many tokens, messages, or a fraction of context to keep. Set one of:
fraction?
Section titled “fraction?”
optionalfraction?:number
messages?
Section titled “messages?”
optionalmessages?:number
tokens?
Section titled “tokens?”
optionaltokens?:number
model?
Section titled “model?”
optionalmodel?:BaseChatModel<BaseChatModelCallOptions,AIMessageChunk<MessageStructure<MessageToolSet>>>
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/middleware/types.ts:40
Model to use for summarization. If not provided, uses the main LLM from config.
summaryPrompt?
Section titled “summaryPrompt?”
optionalsummaryPrompt?:string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/middleware/types.ts:62
Custom prompt template for summarization.
trigger?
Section titled “trigger?”
optionaltrigger?:object
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/middleware/types.ts:45
Maximum tokens before triggering summarization. Set one of:
fraction?
Section titled “fraction?”
optionalfraction?:number
messages?
Section titled “messages?”
optionalmessages?:number
tokens?
Section titled “tokens?”
optionaltokens?:number