Filters the maximum string field size kept inside compacted tool results.
Longer string values are truncated with context metadata before the result is sent to the provider.
add_filter( 'ai_assistant_tool_result_string_max_chars', function( int $chars ) { // Your code here. return $chars; } );
int
$chars
apply_filters('ai_assistant_tool_result_string_max_chars', 8 * 1024)
← All Hooks
There was an error while loading. Please reload this page.