Skip to main content

parse_args

Function parse_args 

Source
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.