Ruben Quadros
02/15/2026, 9:49 AMclass ExamplePersistence : Persistence<String> //String is userId
What I'm having difficulty understanding is how/where do I set this userId in my agent config so that this is then available to my ExamplePersistence?
This is my current implementation:
val agent = AIAgent(
strategy = strategy,
promptExecutor = simpleGoogleAIExecutor(apiKey = apiKey),
llmModel = model,
toolRegistry = tools
) {
install(Persistence) {
storage = myPersistence
}
}
agent.run(input)
I saw this thread but could not figure out from this either 😅Ruben Quadros
02/15/2026, 10:02 AMAnastasiia Zarechneva
02/16/2026, 10:45 AMagentId should do the thing here, but let's wait for more opinions 👀Mark Tkachenko
02/16/2026, 1:41 PM