/** * ============================================================ * src/tools/types.ts —— 工具相关的辅助类型与默认值 * ------------------------------------------------------------ * Tool 接口本身在 src/types.ts 里定义(对外类型)。 * 这里只放工具子系统内部用的辅助类型 / 常量。 * ============================================================ */ /** 默认输出截断阈值(30K 字符 ≈ 7.5K token) */ export const DEFAULT_MAX_RESULT_SIZE_CHARS = 30_000; /** Read 工具默认行数上限(与 kakadeai 主仓库一致) */ export const MAX_LINES_TO_READ = 2000; /** * Text input IO ceiling, independent of the model's returned-content budget. * Read windows are bounded separately and can reserve runtime context capacity. */ export const MAX_FILE_SIZE_BYTES = 1024 * 1024 * 1024; // 1 GiB; returned content remains independently bounded