Shared tool type — used by both the registry and individual tool modules.
pub type Tool {
Tool(
name: String,
description: String,
schema: json.Json,
handler: fn(String) -> Result(String, String),
parallel_safe: Bool,
)
}
Constructors
-
Tool(
name: String,
description: String,
schema: json.Json,
handler: fn(String) -> Result(String, String),
parallel_safe: Bool,
)