If I create an agent and call multiple times to ``...
# ai
e
If I create an agent and call multiple times to
Copy code
agent.runAndGetResult(it)
it returns always the first response. Is it a bug?
Internally it uses AIAgent.agentResultDeferred: CompletableDeferredString? and it "completes" with the result of the first call. I think the other option is to use "handleEvents" to retrieve the results. Is there any other way?
p
Yea, looks like a bug I also think that
handleEvents
is currently the only way to process the llm outputs. I also want to suggest that
runAndGetResults
should return a list of all responses from llm, but I haven't reported that yet
btw, you can ask about koog in #C08SLB97W23 channel
🙏 1
u
I'm facing same issue
p
try new version 0.2.1