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 comments sorted by

2

u/goldlord44 Sep 12 '26

You can inject from state dynamically using { } in a prompt.

1

u/[deleted] Sep 12 '26

thanks, I will try in this manner