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."),
122
private T? GetResultCore(out
FailureReason
? failureReason)
133
failureReason =
FailureReason
.ResultDidNotContainJson;
149
failureReason =
FailureReason
.ResultDidNotContainDataProperty;
158
failureReason =
FailureReason
.DeserializationProducedNull;