fn parse_variable_def(value: &Value) -> Option<PromptVariable>
Parses a variable definition from a JSON value.