Didier Villevalois
05/24/2025, 8:09 AMagent.run(...)
(and it's derivatives) is reinitializing the prompt in the agent's context at each call. So I did a strategy with custom nodes for user interactions and that loops indefinitely similar to [nodeStart > nodeWaitForUserInput > nodeRequest > nodeAnswerUser > nodeWaitForUserInput] but with tools. But now, it feels really weird having a maxIterationCount
that I can't set to null. Should I set it to Int.MAX_VALUE
? Is there a recommended way to reuse a prompt over multiple run
invocations?