diff --git a/apps/ai-game-creator-shell/src-tauri/src/agent/tool/error.rs b/apps/ai-game-creator-shell/src-tauri/src/agent/tool/error.rs index edf287424..fbed8af41 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/agent/tool/error.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/agent/tool/error.rs @@ -111,7 +111,7 @@ impl ToolFailure for ToolPageRejection { format!("工具参数 offset={got} 超出上限 {max},请从更小的偏移重新分页。") } Self::LimitNotInteger { got } => { - format!("工具参数 limit 必须是整数,当前是「{got}」。") + format!("工具参数 limit 必须是非负整数,当前是「{got}」。") } Self::LimitOutOfRange { got, max } => { format!("工具参数 limit={got} 超出范围,必须在 1 到 {max} 之间。")