chore: run dotnet format
This commit is contained in:
@@ -3,8 +3,8 @@ using System.Text;
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
|
|
||||||
using AnthropicClient.Json;
|
using AnthropicClient.Json;
|
||||||
using AnthropicClient.Utils;
|
|
||||||
using AnthropicClient.Models;
|
using AnthropicClient.Models;
|
||||||
|
using AnthropicClient.Utils;
|
||||||
|
|
||||||
namespace AnthropicClient;
|
namespace AnthropicClient;
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ namespace AnthropicClient.Models;
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public abstract class MessageRequest
|
public abstract class MessageRequest
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the model ID to use for the request.
|
/// Gets the model ID to use for the request.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Model { get; init; } = string.Empty;
|
public string Model { get; init; } = string.Empty;
|
||||||
|
|||||||
@@ -369,7 +369,7 @@ public class ChatMessageRequestTests : SerializationTest
|
|||||||
specificToolChoice!.Type.Should().Be("tool");
|
specificToolChoice!.Type.Should().Be("tool");
|
||||||
specificToolChoice.Name.Should().Be("test-tool");
|
specificToolChoice.Name.Should().Be("test-tool");
|
||||||
chatMessageRequest.Tools.Should().HaveCount(0);
|
chatMessageRequest.Tools.Should().HaveCount(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public void JsonDeserialization_WhenDeserializedWithUnknownToolChoice_ItShouldThrowJsonException()
|
public void JsonDeserialization_WhenDeserializedWithUnknownToolChoice_ItShouldThrowJsonException()
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ public class ToolCallTests : SerializationTest
|
|||||||
[Fact]
|
[Fact]
|
||||||
public async Task InvokeAsync_WhenCalledAndToolHasCustomParameterName_ItShouldReturnSuccessResult()
|
public async Task InvokeAsync_WhenCalledAndToolHasCustomParameterName_ItShouldReturnSuccessResult()
|
||||||
{
|
{
|
||||||
var func = ([FunctionParameter("Person's Age", "Age")]int i) => i.ToString();
|
var func = ([FunctionParameter("Person's Age", "Age")] int i) => i.ToString();
|
||||||
var anthropicFunction = new AnthropicFunction(func.Method, func.Target);
|
var anthropicFunction = new AnthropicFunction(func.Method, func.Target);
|
||||||
var tool = new Tool("tool", "description", anthropicFunction);
|
var tool = new Tool("tool", "description", anthropicFunction);
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
global using FluentAssertions;
|
global using System.Text.Json;
|
||||||
|
global using System.Text.Json.JsonDiffPatch.Xunit;
|
||||||
|
|
||||||
global using AnthropicClient.Models;
|
global using AnthropicClient.Models;
|
||||||
global using AnthropicClient.Utils;
|
global using AnthropicClient.Utils;
|
||||||
|
|
||||||
global using System.Text.Json;
|
global using FluentAssertions;
|
||||||
global using System.Text.Json.JsonDiffPatch.Xunit;
|
|
||||||
|
|
||||||
global using Microsoft.Extensions.Configuration;
|
global using Microsoft.Extensions.Configuration;
|
||||||
Reference in New Issue
Block a user