refactor/类型化工具调用错误 #568

Merged
k88936 merged 68 commits from feat/typed-tool-error into master 2026-10-02 17:07:13 +08:00
Showing only changes of commit 6788a75ca6 - Show all commits
@@ -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} 之间。")