diff --git a/apps/ai-game-creator-shell/src-tauri/src/agent/tool/arguments.rs b/apps/ai-game-creator-shell/src-tauri/src/agent/tool/arguments.rs index fd55ead6d..8618e5644 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/agent/tool/arguments.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/agent/tool/arguments.rs @@ -91,7 +91,7 @@ pub(crate) fn page( .as_u64() .and_then(|value| usize::try_from(value).ok()) .ok_or_else(|| ToolPageRejection::OffsetNotInteger { - got: value.to_string(), + got: not_text_repr(value), }) }) .transpose()? @@ -107,7 +107,7 @@ pub(crate) fn page( .as_u64() .and_then(|value| usize::try_from(value).ok()) .ok_or_else(|| ToolPageRejection::LimitNotInteger { - got: value.to_string(), + got: not_text_repr(value), }) }) .transpose()?