Hey folks! Thanks for Koog. I have been trying to ...
# koog-agentic-framework
d
Hey folks! Thanks for Koog. I have been trying to port my conversational bot to Koog. But I am stuck.
agent.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?