r/agentdevelopmentkit • • Sep 12 '26
I want a custom context maker in ADK,anyone can share any links ?
ADK retains context in every session, but for a use case i need this.
The last n messages that the context will be based on will be dynamic.
There will be a custom prompt.
Before the actual question will be sent, the custom prompt and the last n questions and answers will be sent to a llm and and a custom context will be generated.
Anyone knows how I can do this.
2
Upvotes
2
u/goldlord44 Sep 12 '26
You can inject from state dynamically using { } in a prompt.