for a simple loop requestLLM -> nodeExecuteToo...
# koog-agentic-framework
s
for a simple loop requestLLM -> nodeExecuteTool (on tool call) -> nodeSendToolResults (append to prompt and call requestLLM again) I find the "streaming" alternatives lacking (Might be wrong though hence the message here) I can change it to nodeRequestLLMStreaming - Collect all the frames, asynchronously just update the UI Then again, I don't see any nodes for sending the tool results back - I can implement it but would be nice if there is a simple strategy node available for streaming!
j
Hey @Sanga! Perhaps nodeLLMRequestStreamingAndSendResults might be what you're looking for? It streams the LLM response, collects all frames, converts them to messages, and automatically appends them to the prompt — this is the streaming equivalent of the "collect response + update prompt" half of the loop.
Check out StreamingAgentWithTools example to see it in action (
nodeStreaming
)
s
Yeah I actually ended up in writing a custom node Stream - update the UI but also collect the mesages and transform. for tool result, append to prompt and stream again. Also I meant to ask, we always worry about the first non reasoning message in requestLLM() - Is this an implicit assumption that llm can't request multiple tools or?
Also appreciate the quick reply, thanks @Jakub Amanowicz