use super::tests::{custom, granted, history_calling};
use super::*;
use serde_json::json;
use tempfile::TempDir;
#[test]
fn a_transcript_that_names_the_retired_multi_tool_still_assembles() {
let wt = TempDir::new().unwrap();
let tools = compose(
wt.path(),
&granted(&[]),
&history_calling(&["multi_tool"]),
&[],
)
.unwrap();
assert_eq!(tools.len(), 1);
let (name, description, input_schema) = custom(&tools[0]);
assert_eq!(name, "multi_tool");
assert!(
description.is_some_and(|d| d.contains("not callable")),
"{description:?}"
);
assert_eq!(*input_schema, json!({"type":"object"}));
}