gproxy_transform/transform/common/
tools.rs1pub fn synthetic_tool_call_id(prefix: &str, index: usize) -> String {
2 format!("{prefix}_{index}")
3}
4
5pub fn preserve_tool_call_id(id: impl Into<String>) -> String {
6 id.into()
7}
8
9pub fn tool_result_is_error(value: Option<bool>) -> bool {
10 value.unwrap_or(false)
11}