Phase 1: consolidate tool output constants into src/constants.py (#2989)

MAX_OUTPUT_CHARS, MAX_READ_CHARS, and MAX_DIFF_LINES are now
defined once in src/constants.py and imported by the three files
that previously duplicated them (tool_execution.py,
tool_implementations.py, agent_tools.py). agent_tools.py re-exports
them for backward compatibility.

Co-authored-by: mcnoliveira <mcnoliveira@gmail.com>
This commit is contained in:
Mateus Oliveira
2026-06-05 18:05:02 -03:00
committed by GitHub
parent 53fd856ea8
commit c2017fa089
4 changed files with 13 additions and 10 deletions
+1 -2
View File
@@ -12,8 +12,7 @@ import os
import re
from typing import Any, Dict, List, Optional
MAX_OUTPUT_CHARS = 10_000
MAX_READ_CHARS = 20_000
from src.constants import MAX_OUTPUT_CHARS, MAX_READ_CHARS
def get_mcp_manager():