// Create a float value extractor in the Unity Editor
var confidenceValue = ScriptableObject.CreateInstance<WitFloatValue>();
confidenceValue.path = "intents[0].confidence";
// Use it to extract values from responses
var response = WitResponseNode.Parse("{\"intents\":[{\"confidence\":0.95}]}");float confidence = (float)confidenceValue.GetValue(response);
bool isHighConfidence = confidenceValue.Equals(response, 0.9f);