What happens if you have a parallel node, and both...
# koog-agentic-framework
s
What happens if you have a parallel node, and both nodes use the
llm.writeSession
to modify the prompt? Will node A modify the prompt, and then release the lock on the write session, at which point node B will also modify the prompt? Wouldn't this mean there's a potential for a race condition where node B has modified the prompt while node A hasn't finished executing yet, so it will call the LLM with the prompt set by node B? Or do parallel nodes each take a copy of the prompt and work with that?
a
Each parallel node works on a separate copy of the agent context, so there will be no race conditions
👌 1