7 references to FailureReason
Microsoft.Extensions.AI (7)
ChatCompletion\ChatCompletion{T}.cs (7)
60
FailureReason
.ResultDidNotContainJson => throw new InvalidOperationException("The response did not contain text to be deserialized"),
61
FailureReason
.DeserializationProducedNull => throw new InvalidOperationException("The deserialized response is null"),
62
FailureReason
.ResultDidNotContainDataProperty => throw new InvalidOperationException("The response did not contain the expected 'data' property"),
124
private T? GetResultCore(out
FailureReason
? failureReason)
135
failureReason =
FailureReason
.ResultDidNotContainJson;
151
failureReason =
FailureReason
.ResultDidNotContainDataProperty;
160
failureReason =
FailureReason
.DeserializationProducedNull;