Suhas
05/26/2025, 9:32 AMDidier Villevalois
05/26/2025, 9:39 AMAIAgent.runAndGetResult()
For example:
val result = agent.runAndGetResult(query)
You can see it used in most of the examples. (In the repository directory examples/
.Suhas
05/26/2025, 9:39 AMSuhas
05/26/2025, 9:39 AMDidier Villevalois
05/26/2025, 9:53 AMsimpleSingleRunAgent()
is just a convenience method that returns an AIAgent
. AIAgent
has the method runAndGetResult
. So the answer to your question is yes! 😊
https://api.koog.ai/agents/agents-ext/ai.koog.agents.ext.agent/simple-single-run-agent.html
https://api.koog.ai/agents/agents-core/ai.koog.agents.core.agent/-a-i-agent-base/run-and-get-result.htmlSuhas
05/26/2025, 2:04 PM