Hey all! I just updated from 0.2 to current and th...
# koog-agentic-framework
f
Hey all! I just updated from 0.2 to current and there were some breaking changes to my edges around handling multiple tool calls. I’m trying to understand the best nodes for my use case which is: Send a question -> LLM Responds with either an assistant message or 1+ tool calls -> tool calls are executed in parallel -> all results are sent to the llm -> llm responds with more tool calls or a single assistant message. Could someone help me with the best way to do that? I can’t really tell if requestLLMMultiple is making multiple separate LLM call requests or just enabling multiple tool responses.
a
What you are describing sounds exactly like a
singleRunStrategy(runMode = ToolCalls.PARALLEL)
. It uses nodes
nodeLLMRequestMultiple, nodeExecuteMultipleTools, nodeSendMultipleToolResults
. These llm request nodes make a single llm call, allowing the model to give multiple tool calls in a single response. If you need to write a more advanced strategy, you can start with our simple implementation here, and add more nodes and edges
f
Thank you yes this is perfect. It works how I expected I was able to verify with the singleRunStrategy docs.
🙌 1