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