File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " deepagents " : patch
3+ ---
4+
5+ Fix warnings being shown when creating deep agent
Original file line number Diff line number Diff line change @@ -136,8 +136,8 @@ export function createDeepAgent<
136136 // Subagent middleware: Automatic conversation summarization when token limits are approached
137137 summarizationMiddleware ( {
138138 model,
139- maxTokensBeforeSummary : 170000 ,
140- messagesToKeep : 6 ,
139+ trigger : { tokens : 170_000 } ,
140+ keep : { messages : 6 } ,
141141 } ) ,
142142 // Subagent middleware: Anthropic prompt caching for improved performance
143143 anthropicPromptCachingMiddleware ( {
@@ -153,8 +153,8 @@ export function createDeepAgent<
153153 // Automatically summarizes conversation history when token limits are approached
154154 summarizationMiddleware ( {
155155 model,
156- maxTokensBeforeSummary : 170000 ,
157- messagesToKeep : 6 ,
156+ trigger : { tokens : 170_000 } ,
157+ keep : { messages : 6 } ,
158158 } ) ,
159159 // Enables Anthropic prompt caching for improved performance and reduced costs
160160 anthropicPromptCachingMiddleware ( {
You can’t perform that action at this time.
0 commit comments