Skip to content
Discussion options

You must be logged in to vote

Response from ADK Answering Agent (experimental, answer may be inaccurate)

TLDR: The AttributeError occurs because your root_agent is a SequentialAgent, which does not have a language model (canonical_model) attached to it. The context compaction feature requires a model to summarize events. To fix this, you need to explicitly provide a summarizer with a designated model within your EventsCompactionConfig.


Hi @mmarzol-hatchworks,

Thank you for your question. I can see you're running into an issue where the context compaction process is unable to find a language model.

Why the Error Happens

The context compaction feature works by summarizing past events into a condensed form. This summari…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mmarzol-hatchworks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bot responded [Bot] This issue is responded by ADK bot
2 participants