pub use gadk_platform::go_quote;
#[cfg(test)]
mod tests {
#[test]
fn percent_q_call_sites_use_go_quote() {
let err = crate::AgentError::Tool {
tool: "t\u{ad}".into(),
source: crate::ToolError::ConfirmationRejected,
};
assert_eq!(err.to_string(), "error tool \"t\\u00ad\" call is rejected");
let fc = gadk_genai::FunctionCall {
id: "c1".into(),
args: serde_json::json!({"x": 1}).as_object().unwrap().clone(),
..Default::default()
};
let err = crate::original_call_from(&fc).unwrap_err();
assert_eq!(
err.to_string(),
"required argument \"originalFunctionCall\" is missing from call with ID c1"
);
}
}