hematite/tools/
tool_schema_cache.rs1use std::sync::OnceLock;
2
3#[allow(dead_code)]
4pub static TOOL_SCHEMA_CACHE: OnceLock<String> = OnceLock::new();
5
6#[allow(dead_code)]
7pub fn get_or_init_cache() -> &'static str {
8 TOOL_SCHEMA_CACHE.get_or_init(|| {
9 r#"[
10 {
11 "name": "SlimLspTool",
12 "description": "Reads cargo check output explicitly mapping diagnostics, compiler suggestions, and broken lines natively without background socket locking.",
13 "parameters": {}
14 },
15 {
16 "name": "FileReadTool",
17 "description": "Reads raw file text natively tracking the memory boundaries securely."
18 },
19 {
20 "name": "GuardTool",
21 "description": "Resolves exact canonical pathing shielding internal directory structures dynamically."
22 }
23 ]"#.to_string()
24 })
25}