Quick question, when creating an `AIAgentConfig`, ...
# koog-agentic-framework
s
Quick question, when creating an
AIAgentConfig
, you can provide a
maxAgentIterations
argument. Was just wondering what constitutes as an "iteration" in Koog? Is it the amount of times an LLM can be called within one "run"? So for example: 1. User Message 2. Call LLM 3. Tool call detected in LLM response 4. Execute tool and add result to Prompt 5. Call LLM again with tool call result 6. Final output How many "iterations" are happening here?
y
totally new to this koog framework, but from my initial experience, it seems here we are having 6 iterations..
s
Interesting, so I wonder if each node we travel to in the graph counts as one iteration
@Mark Tkachenko could you shine some light on this please? 🙂 Does
maxAgentIterations
in
AIAgentConfig
basically limit how many nodes an agent can traverse/run before it errors out?
so one node execution = one iteration in the state
m
One node execution is the iteration, yeah
👍 1