Skip to main content

parse_kind

Function parse_kind 

Source
pub fn parse_kind(kind: &str) -> Result<&'static str>
Expand description

The canonical kind for what an agent wrote: case and plurals do not matter (Methods), nor common synonyms (implements, class, call). Unknown kinds fail with the valid ones and the closest of them.

ยงErrors

EngineError::Query for an unknown kind.