Skip to content

Commit 9b76c88

Browse files
authored
Merge pull request #2229 from dgageot/board/fix-docker-agent-issue-2228-c3556d9b
docs: add max_old_tool_call_tokens and max_consecutive_tool_calls to agent config reference
2 parents 00cb2d5 + 563feff commit 9b76c88

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/configuration/agents/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ agents:
3030
add_description_parameter: bool # Optional: add description to tool schema
3131
code_mode_tools: boolean # Optional: enable code mode tool format
3232
max_iterations: int # Optional: max tool-calling loops
33+
max_consecutive_tool_calls: int # Optional: max identical consecutive tool calls
34+
max_old_tool_call_tokens: int # Optional: token budget for old tool call content
3335
num_history_items: int # Optional: limit conversation history
3436
skills: boolean # Optional: enable skill discovery
3537
commands: # Optional: named prompts
@@ -72,6 +74,8 @@ agents:
7274
| `add_description_parameter` | boolean | ✗ | When `true`, adds agent descriptions as a parameter in tool schemas. Helps with tool selection in multi-agent scenarios. |
7375
| `code_mode_tools` | boolean | ✗ | When `true`, formats tool responses in a code-optimized format with structured output schemas. Useful for MCP gateway and programmatic access. |
7476
| `max_iterations` | int | ✗ | Maximum number of tool-calling loops. Default: unlimited (0). Set this to prevent infinite loops. |
77+
| `max_consecutive_tool_calls` | int | ✗ | Maximum consecutive identical tool calls before the agent is terminated, preventing degenerate loops. Default: `5`. |
78+
| `max_old_tool_call_tokens` | int | ✗ | Maximum number of tokens to keep from old tool call arguments and results. Older tool calls beyond this budget have their content replaced with a placeholder, saving context space. Tokens are approximated as `len/4`. Set to `-1` to disable truncation (unlimited). Default: `40000`. |
7579
| `num_history_items` | int | ✗ | Limit the number of conversation history messages sent to the model. Useful for managing context window size with long conversations. Default: unlimited (all messages sent). |
7680
| `rag` | array | ✗ | List of RAG source names to attach to this agent. References sources defined in the top-level `rag` section. See [RAG]({{ '/features/rag/' | relative_url }}). |
7781
| `skills` | boolean | ✗ | Enable automatic skill discovery from standard directories. |

0 commit comments

Comments
 (0)