Skip to content

Conversation

@evgeny-deriglazov
Copy link
Contributor

Overview

SummarizationMiddleware throws an error when I try to run example code.

TypeError: SummarizationMiddleware.init() got an unexpected keyword argument 'trigger'

Type of change

Need to update code example on docs web page:

  • replace trigger with max_tokens_before_summary
  • replace keep with messages_to_keep

SummarizationMiddleware throws error.

TypeError: SummarizationMiddleware.__init__() got an unexpected keyword argument 'trigger'

Need to update code example:
- replace 'trigger' with 'max_tokens_before_summary'
- replace 'keep' with 'messages_to_keep'
@github-actions github-actions bot added langchain For docs changes to LangChain oss external User is not a member of langchain-ai labels Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external User is not a member of langchain-ai langchain For docs changes to LangChain oss

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant