7 references to FailureReason
Microsoft.Extensions.AI (7)
ChatCompletion\ChatResponse{T}.cs (7)
65FailureReason.ResultDidNotContainJson => throw new InvalidOperationException("The response did not contain JSON to be deserialized."), 66FailureReason.DeserializationProducedNull => throw new InvalidOperationException("The deserialized response is null."), 67FailureReason.ResultDidNotContainDataProperty => throw new InvalidOperationException("The response did not contain the expected 'data' property."), 120private T? GetResultCore(out FailureReason? failureReason) 131failureReason = FailureReason.ResultDidNotContainJson; 147failureReason = FailureReason.ResultDidNotContainDataProperty; 156failureReason = FailureReason.DeserializationProducedNull;