Skip to content
Discussion options

You must be logged in to vote

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

TLDR: You are correct, get_fast_api_app is a high-level utility for the adk command-line tools and does not directly support passing EventsCompactionConfig. To use context compaction, you should define an App object with your desired EventsCompactionConfig and then create your own FastAPI server instance to serve it.


Hello! I see you're looking to enable context compaction for your ADK agent. Here’s how you can achieve that.

The get_fast_api_app function is a convenience wrapper used by the ADK command-line interface and is designed to simplify the process of serving agents from a directory. It does not expose adv…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hangfei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
web [Component] This issue will be transferred to adk-web
2 participants
Converted from issue

This discussion was converted from issue #3537 on November 14, 2025 14:52.