[GH-ISSUE #2287] [langchain]: <Document bug> #288

Closed
opened 2026-02-17 17:19:33 -05:00 by yindo · 0 comments
Owner

Originally created by @ryzqi on GitHub (Jan 20, 2026).
Original GitHub issue: https://github.com/langchain-ai/docs/issues/2287

Type of issue

issue / bug

Language

Python

Description

https://docs.langchain.com/oss/python/langchain/multi-agent/handoffs-customer-support#5-create-the-agent,in this doc, SummarizationMiddleware(
model="gpt-4o-mini",
trigger=("tokens", 4000),
keep=("messages", 10)
)
but when i use it,
TypeError: SummarizationMiddleware.init() got an unexpected keyword argument 'trigger'

Originally created by @ryzqi on GitHub (Jan 20, 2026). Original GitHub issue: https://github.com/langchain-ai/docs/issues/2287 ### Type of issue issue / bug ### Language Python ### Description https://docs.langchain.com/oss/python/langchain/multi-agent/handoffs-customer-support#5-create-the-agent,in this doc, SummarizationMiddleware( model="gpt-4o-mini", trigger=("tokens", 4000), keep=("messages", 10) ) but when i use it, TypeError: SummarizationMiddleware.__init__() got an unexpected keyword argument 'trigger'
yindo added the langchainexternal labels 2026-02-17 17:19:33 -05:00
yindo closed this issue 2026-02-17 17:19:33 -05:00
yindo changed title from [langchain]: <Document bug> to [GH-ISSUE #2287] [langchain]: <Document bug> 2026-06-05 17:26:04 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#288