Skip to main content

parse_payload

Function parse_payload 

Source
pub fn parse_payload<T: DeserializeOwned>(
    v: Value,
    what: &str,
) -> Result<T, ToolError>
Expand description

Accepts a payload either as a JSON object or as a YAML document in a string — agents naturally write the YAML the docs show.