Skip to content

Commit f0681d7

Browse files
authored
Merge pull request #238 from krissetto/max-iter-docs
Mention max_iterations in the docs
2 parents 5dcff53 + 53213f6 commit f0681d7

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ cagent new --model dmr/ai/gemma3-qat:12B
234234
# Override the max_tokens used during generation, default is 64k, 16k when using the dmr provider
235235
cagent new --model openai/gpt-5-mini --max-tokens 32000
236236
237-
# Override max_iterations to limit how much the model can loop autonomously
237+
# Override max_iterations to limit how much the model can loop autonomously when tool calling
238238
cagent new --model dmr/ai/gemma3n:2B-F16 --max-iterations 15
239239
```
240240

docs/USAGE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ During CLI sessions, you can use special commands:
8787
| `toolsets` | array | Available tools ||
8888
| `add_date` | boolean | Add current date to context ||
8989
| `add_environment_info` | boolean | Add information about the environment (working dir, OS, git...) ||
90+
| `max_iterations` | int | Specifies how many times the agent can loop when using tools ||
9091

9192
#### Example
9293

@@ -100,6 +101,7 @@ agents:
100101
sub_agents: [] # Sub-agent names (optional)
101102
add_date: boolean # Add current date to context (optional)
102103
add_environment_info: boolean # Add information about the environment (working dir, OS, git...) (optional)
104+
max_iterations: int # How many times this agent can loop when calling tools (optional, default = unlimited)
103105
```
104106
105107
### Model Properties

0 commit comments

Comments
 (0)