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