namespace AIStudio.Tools;
///
/// The result of a rate-limited HTTP stream.
///
/// True, when the stream failed after all retries.
/// The error message which we might show to the user.
/// The response from the server.
public readonly record struct HttpRateLimitedStreamResult(
bool IsSuccessful,
bool IsFailedAfterAllRetries,
string ErrorMessage,
HttpResponseMessage? Response) : IDisposable
{
#region IDisposable
public void Dispose()
{
this.Response?.Dispose();
}
#endregion
}