I am a rookie in agentic frameworks I have been wo...
# koog-agentic-framework
s
I am a rookie in agentic frameworks I have been working with koog and wanted to know how to see the output of the agent? Like if we do agent.run() it doesnt give any output The terminal shows nothing except logging warnings
d
Use
AIAgent.runAndGetResult()
For example:
Copy code
val result = agent.runAndGetResult(query)
You can see it used in most of the examples. (In the repository directory
examples/
.
s
This works in singlerunagent too?
Sorry i was referring to the docs Not the examples My bad!
d
simpleSingleRunAgent()
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.html
s
Thanks!
thank you color 1