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