Skip to content

ai_assistant_tool_round_limit_default

github-actions[bot] edited this page Nov 14, 2026 · 20 revisions

Filters the default maximum number of consecutive tool-call rounds before the assistant stops the loop.

Auto-generated Example

add_filter(
   'ai_assistant_tool_round_limit_default',
    function( int $rounds ) {
        // Your code here.
        return $rounds;
    }
);

Parameters

  • int $rounds Maximum default tool-call rounds. Default 25.

Files

apply_filters('ai_assistant_tool_round_limit_default', 25)

← All Hooks

Clone this wiki locally