pub fn parse_args<T: DeserializeOwned>(
tool_name: &str,
args: Value,
) -> Result<T>Expand description
Deserialize tool arguments from a serde_json::Value into a typed struct. Returns a typed error mentioning which tool failed to parse.
pub fn parse_args<T: DeserializeOwned>(
tool_name: &str,
args: Value,
) -> Result<T>Deserialize tool arguments from a serde_json::Value into a typed struct. Returns a typed error mentioning which tool failed to parse.