File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
235235cagent 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
238238cagent new --model dmr/ai/gemma3n:2B-F16 --max-iterations 15
239239` ` `
240240
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments