chore: run dotnet format
This commit is contained in:
@@ -98,4 +98,4 @@ public interface IAnthropicApiClient
|
|||||||
/// <param name="modelId">The ID of the model to get.</param>
|
/// <param name="modelId">The ID of the model to get.</param>
|
||||||
/// <returns>A task that represents the asynchronous operation. The task result contains the response as an <see cref="AnthropicResult{T}"/> where T is <see cref="AnthropicModel"/>.</returns>
|
/// <returns>A task that represents the asynchronous operation. The task result contains the response as an <see cref="AnthropicResult{T}"/> where T is <see cref="AnthropicModel"/>.</returns>
|
||||||
Task<AnthropicResult<AnthropicModel>> GetModelAsync(string modelId);
|
Task<AnthropicResult<AnthropicModel>> GetModelAsync(string modelId);
|
||||||
}
|
}
|
||||||
@@ -11,4 +11,4 @@ public class CanceledMessageBatchResult : MessageBatchResult
|
|||||||
public CanceledMessageBatchResult() : base(MessageBatchResultType.Canceled)
|
public CanceledMessageBatchResult() : base(MessageBatchResultType.Canceled)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -16,4 +16,4 @@ public class ErroredMessageBatchResult : MessageBatchResult
|
|||||||
public ErroredMessageBatchResult() : base(MessageBatchResultType.Errored)
|
public ErroredMessageBatchResult() : base(MessageBatchResultType.Errored)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -17,4 +17,4 @@ public class MessageBatchResultItem
|
|||||||
/// Gets the result of the message batch result item.
|
/// Gets the result of the message batch result item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public MessageBatchResult Result { get; init; } = default!;
|
public MessageBatchResult Result { get; init; } = default!;
|
||||||
}
|
}
|
||||||
@@ -24,4 +24,4 @@ public static class MessageBatchResultType
|
|||||||
/// Represents an expired message batch result.
|
/// Represents an expired message batch result.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string Expired = "expired";
|
public const string Expired = "expired";
|
||||||
}
|
}
|
||||||
@@ -9,12 +9,12 @@ public static class MessageBatchStatus
|
|||||||
/// The status of a message batch that is being canceled.
|
/// The status of a message batch that is being canceled.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string Canceling = "canceling";
|
public const string Canceling = "canceling";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The status of a message batch that is in progress.
|
/// The status of a message batch that is in progress.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string InProgress = "in_progress";
|
public const string InProgress = "in_progress";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The status of a message batch that has ended.
|
/// The status of a message batch that has ended.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -17,4 +17,4 @@ public class SucceededMessageBatchResult : MessageBatchResult
|
|||||||
public SucceededMessageBatchResult() : base(MessageBatchResultType.Succeeded)
|
public SucceededMessageBatchResult() : base(MessageBatchResultType.Succeeded)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -7,13 +7,13 @@ public class MessageBatchStatusTests
|
|||||||
{
|
{
|
||||||
MessageBatchStatus.Canceling.Should().Be("canceling");
|
MessageBatchStatus.Canceling.Should().Be("canceling");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public void InProgress_WhenCalled_ItShouldReturnCancelingStatus()
|
public void InProgress_WhenCalled_ItShouldReturnCancelingStatus()
|
||||||
{
|
{
|
||||||
MessageBatchStatus.InProgress.Should().Be("in_progress");
|
MessageBatchStatus.InProgress.Should().Be("in_progress");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public void Ended_WhenCalled_ItShouldReturnCancelingStatus()
|
public void Ended_WhenCalled_ItShouldReturnCancelingStatus()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user