refactor/类型化工具调用错误 #568
@@ -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} 之间。")
|
||||
|
||||
Reference in New Issue
Block a user