diff --git a/Anthropic.Playground/Anthropic.Playground.csproj b/Anthropic.Playground/Anthropic.Playground.csproj index 2993509..f7abd6b 100644 --- a/Anthropic.Playground/Anthropic.Playground.csproj +++ b/Anthropic.Playground/Anthropic.Playground.csproj @@ -17,7 +17,7 @@ - + diff --git a/Anthropic.Playground/Program.cs b/Anthropic.Playground/Program.cs index 906247d..bdaa31d 100644 --- a/Anthropic.Playground/Program.cs +++ b/Anthropic.Playground/Program.cs @@ -1,6 +1,6 @@ -using Anthropic.Extensions; -using Anthropic.Playground.TestHelpers; -using Anthropic.Services; +using Anthropic.Playground.TestHelpers; +using Betalgo.Anthropic.Extensions; +using Betalgo.Anthropic.Services; using LaserCatEyes.HttpClientListener; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; diff --git a/Anthropic.Playground/TestHelpers/ChatTestHelper.cs b/Anthropic.Playground/TestHelpers/ChatTestHelper.cs index c47d346..7fbe79d 100644 --- a/Anthropic.Playground/TestHelpers/ChatTestHelper.cs +++ b/Anthropic.Playground/TestHelpers/ChatTestHelper.cs @@ -1,6 +1,6 @@ -using Anthropic.ApiModels.ResponseModels; -using Anthropic.ApiModels.SharedModels; -using Anthropic.Services; +using Betalgo.Anthropic.ApiModels.ResponseModels; +using Betalgo.Anthropic.ApiModels.SharedModels; +using Betalgo.Anthropic.Services; namespace Anthropic.Playground.TestHelpers; diff --git a/Anthropic.Playground/TestHelpers/ChatToolUseTestHelper.cs b/Anthropic.Playground/TestHelpers/ChatToolUseTestHelper.cs index 0253253..e7995e7 100644 --- a/Anthropic.Playground/TestHelpers/ChatToolUseTestHelper.cs +++ b/Anthropic.Playground/TestHelpers/ChatToolUseTestHelper.cs @@ -1,8 +1,8 @@ -using Anthropic.ApiModels.ResponseModels; -using Anthropic.ApiModels.SharedModels; -using Anthropic.Extensions; -using Anthropic.Playground.SampleModels; -using Anthropic.Services; +using Anthropic.Playground.SampleModels; +using Betalgo.Anthropic.ApiModels.ResponseModels; +using Betalgo.Anthropic.ApiModels.SharedModels; +using Betalgo.Anthropic.Extensions; +using Betalgo.Anthropic.Services; namespace Anthropic.Playground.TestHelpers; diff --git a/Anthropic.sln b/Anthropic.sln index ddd6c51..bf07121 100644 --- a/Anthropic.sln +++ b/Anthropic.sln @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.9.34714.143 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Anthropic", "Anthropic\Anthropic.csproj", "{D31EE00D-CD98-44D7-A6C7-17E2B321BF99}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Betalgo.Anthropic", "Anthropic\Betalgo.Anthropic.csproj", "{D31EE00D-CD98-44D7-A6C7-17E2B321BF99}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SDK", "SDK", "{5ACC30B7-901D-4EF9-96C5-C895749FA659}" EndProject diff --git a/Anthropic.sln.DotSettings b/Anthropic.sln.DotSettings index 21af865..6789b46 100644 --- a/Anthropic.sln.DotSettings +++ b/Anthropic.sln.DotSettings @@ -1,3 +1,4 @@  + True True True \ No newline at end of file diff --git a/Anthropic/ApiModels/AnthropicOptions.cs b/Anthropic/ApiModels/AnthropicOptions.cs index 99f28bd..e4cdd09 100644 --- a/Anthropic/ApiModels/AnthropicOptions.cs +++ b/Anthropic/ApiModels/AnthropicOptions.cs @@ -1,4 +1,4 @@ -namespace Anthropic.ApiModels; +namespace Betalgo.Anthropic.ApiModels; public class AnthropicOptions { diff --git a/Anthropic/ApiModels/AnthropicProviderType.cs b/Anthropic/ApiModels/AnthropicProviderType.cs index 2a96447..fd761dd 100644 --- a/Anthropic/ApiModels/AnthropicProviderType.cs +++ b/Anthropic/ApiModels/AnthropicProviderType.cs @@ -1,4 +1,4 @@ -namespace Anthropic.ApiModels; +namespace Betalgo.Anthropic.ApiModels; /// /// Anthropic Provider Type diff --git a/Anthropic/ApiModels/IObjectInterfaces.cs b/Anthropic/ApiModels/IObjectInterfaces.cs index c2908ba..ceb6d98 100644 --- a/Anthropic/ApiModels/IObjectInterfaces.cs +++ b/Anthropic/ApiModels/IObjectInterfaces.cs @@ -1,4 +1,4 @@ -namespace Anthropic.ApiModels; +namespace Betalgo.Anthropic.ApiModels; public interface IObjectInterfaces { diff --git a/Anthropic/ApiModels/JsonConverters.cs b/Anthropic/ApiModels/JsonConverters.cs index 6adbc80..1da2319 100644 --- a/Anthropic/ApiModels/JsonConverters.cs +++ b/Anthropic/ApiModels/JsonConverters.cs @@ -1,8 +1,8 @@ using System.Text.Json; using System.Text.Json.Serialization; -using Anthropic.ApiModels.SharedModels; +using Betalgo.Anthropic.ApiModels.SharedModels; -namespace Anthropic.ApiModels; +namespace Betalgo.Anthropic.ApiModels; internal class JsonConverters { diff --git a/Anthropic/ApiModels/RequestModels/MessageRequest.cs b/Anthropic/ApiModels/RequestModels/MessageRequest.cs index b3844b1..9aaba40 100644 --- a/Anthropic/ApiModels/RequestModels/MessageRequest.cs +++ b/Anthropic/ApiModels/RequestModels/MessageRequest.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; -using Anthropic.ApiModels.SharedModels; +using Betalgo.Anthropic.ApiModels.SharedModels; -namespace Anthropic.ApiModels.RequestModels; +namespace Betalgo.Anthropic.ApiModels.RequestModels; /// /// Represents a request to create a message using the Anthropic API. diff --git a/Anthropic/ApiModels/ResponseModels/BaseResponse.cs b/Anthropic/ApiModels/ResponseModels/BaseResponse.cs index 9635f8d..7175cd9 100644 --- a/Anthropic/ApiModels/ResponseModels/BaseResponse.cs +++ b/Anthropic/ApiModels/ResponseModels/BaseResponse.cs @@ -1,9 +1,9 @@ using System.Net; using System.Net.Http.Headers; using System.Text.Json.Serialization; -using Anthropic.ApiModels.SharedModels; +using Betalgo.Anthropic.ApiModels.SharedModels; -namespace Anthropic.ApiModels.ResponseModels; +namespace Betalgo.Anthropic.ApiModels.ResponseModels; public class TypeBaseResponse : IType { diff --git a/Anthropic/ApiModels/ResponseModels/MessageResponse.cs b/Anthropic/ApiModels/ResponseModels/MessageResponse.cs index 4bbd3ab..4f16ef8 100644 --- a/Anthropic/ApiModels/ResponseModels/MessageResponse.cs +++ b/Anthropic/ApiModels/ResponseModels/MessageResponse.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; -using Anthropic.ApiModels.SharedModels; +using Betalgo.Anthropic.ApiModels.SharedModels; -namespace Anthropic.ApiModels.ResponseModels; +namespace Betalgo.Anthropic.ApiModels.ResponseModels; public class PingResponse : BaseResponse, IStreamResponse { diff --git a/Anthropic/ApiModels/ResponseModels/RateLimitInfo.cs b/Anthropic/ApiModels/ResponseModels/RateLimitInfo.cs index 746569a..6e6ac3e 100644 --- a/Anthropic/ApiModels/ResponseModels/RateLimitInfo.cs +++ b/Anthropic/ApiModels/ResponseModels/RateLimitInfo.cs @@ -1,7 +1,7 @@ using System.Net.Http.Headers; -using Anthropic.Extensions; +using Betalgo.Anthropic.Extensions; -namespace Anthropic.ApiModels.ResponseModels; +namespace Betalgo.Anthropic.ApiModels.ResponseModels; /// /// Represents rate limit information from Anthropic API headers. diff --git a/Anthropic/ApiModels/ResponseModels/ResponseHeaderValues.cs b/Anthropic/ApiModels/ResponseModels/ResponseHeaderValues.cs index 41cc85d..3738b37 100644 --- a/Anthropic/ApiModels/ResponseModels/ResponseHeaderValues.cs +++ b/Anthropic/ApiModels/ResponseModels/ResponseHeaderValues.cs @@ -1,6 +1,6 @@ -using Anthropic.Extensions; +using Betalgo.Anthropic.Extensions; -namespace Anthropic.ApiModels.ResponseModels; +namespace Betalgo.Anthropic.ApiModels.ResponseModels; /// /// Represents the values of various headers in an HTTP response. diff --git a/Anthropic/ApiModels/SharedModels/ContentBlock.cs b/Anthropic/ApiModels/SharedModels/ContentBlock.cs index c4bf7e4..ba60d42 100644 --- a/Anthropic/ApiModels/SharedModels/ContentBlock.cs +++ b/Anthropic/ApiModels/SharedModels/ContentBlock.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; -using Anthropic.ApiModels.ResponseModels; +using Betalgo.Anthropic.ApiModels.ResponseModels; -namespace Anthropic.ApiModels.SharedModels; +namespace Betalgo.Anthropic.ApiModels.SharedModels; public class ContentBlock : TypeBaseResponse { diff --git a/Anthropic/ApiModels/SharedModels/ImageSource.cs b/Anthropic/ApiModels/SharedModels/ImageSource.cs index f8562b6..e9f48b8 100644 --- a/Anthropic/ApiModels/SharedModels/ImageSource.cs +++ b/Anthropic/ApiModels/SharedModels/ImageSource.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; -using Anthropic.ApiModels.ResponseModels; +using Betalgo.Anthropic.ApiModels.ResponseModels; -namespace Anthropic.ApiModels.SharedModels; +namespace Betalgo.Anthropic.ApiModels.SharedModels; public class ImageSource : TypeBaseResponse { diff --git a/Anthropic/ApiModels/SharedModels/Message.cs b/Anthropic/ApiModels/SharedModels/Message.cs index 3429553..cf4146e 100644 --- a/Anthropic/ApiModels/SharedModels/Message.cs +++ b/Anthropic/ApiModels/SharedModels/Message.cs @@ -1,6 +1,6 @@ using System.Text.Json.Serialization; -namespace Anthropic.ApiModels.SharedModels; +namespace Betalgo.Anthropic.ApiModels.SharedModels; public class Message { diff --git a/Anthropic/ApiModels/SharedModels/Metadata.cs b/Anthropic/ApiModels/SharedModels/Metadata.cs index 5e7a576..f627f4f 100644 --- a/Anthropic/ApiModels/SharedModels/Metadata.cs +++ b/Anthropic/ApiModels/SharedModels/Metadata.cs @@ -1,6 +1,6 @@ using System.Text.Json.Serialization; -namespace Anthropic.ApiModels.SharedModels; +namespace Betalgo.Anthropic.ApiModels.SharedModels; /// /// Represents metadata about the request. diff --git a/Anthropic/ApiModels/SharedModels/Tool.cs b/Anthropic/ApiModels/SharedModels/Tool.cs index aec6c7a..9544fac 100644 --- a/Anthropic/ApiModels/SharedModels/Tool.cs +++ b/Anthropic/ApiModels/SharedModels/Tool.cs @@ -1,6 +1,6 @@ using System.Text.Json.Serialization; -namespace Anthropic.ApiModels.SharedModels; +namespace Betalgo.Anthropic.ApiModels.SharedModels; /// /// Represents a tool definition that the model may use. diff --git a/Anthropic/ApiModels/SharedModels/ToolChoice.cs b/Anthropic/ApiModels/SharedModels/ToolChoice.cs index 87b703f..2908892 100644 --- a/Anthropic/ApiModels/SharedModels/ToolChoice.cs +++ b/Anthropic/ApiModels/SharedModels/ToolChoice.cs @@ -1,6 +1,6 @@ using System.Text.Json.Serialization; -namespace Anthropic.ApiModels.SharedModels; +namespace Betalgo.Anthropic.ApiModels.SharedModels; /// /// Represents how the model should use the provided tools. diff --git a/Anthropic/ApiModels/SharedModels/ToolParameters.cs b/Anthropic/ApiModels/SharedModels/ToolParameters.cs index e03230b..0c7d1c5 100644 --- a/Anthropic/ApiModels/SharedModels/ToolParameters.cs +++ b/Anthropic/ApiModels/SharedModels/ToolParameters.cs @@ -1,6 +1,6 @@ using System.Text.Json.Serialization; -namespace Anthropic.ApiModels.SharedModels; +namespace Betalgo.Anthropic.ApiModels.SharedModels; /// /// Function parameter is a JSON Schema object. diff --git a/Anthropic/ApiModels/SharedModels/Usage.cs b/Anthropic/ApiModels/SharedModels/Usage.cs index 24aaee0..f7f9b98 100644 --- a/Anthropic/ApiModels/SharedModels/Usage.cs +++ b/Anthropic/ApiModels/SharedModels/Usage.cs @@ -1,6 +1,6 @@ using System.Text.Json.Serialization; -namespace Anthropic.ApiModels.SharedModels; +namespace Betalgo.Anthropic.ApiModels.SharedModels; public class Usage { diff --git a/Anthropic/ApiModels/StaticValues.cs b/Anthropic/ApiModels/StaticValues.cs index 5ede883..deb45ea 100644 --- a/Anthropic/ApiModels/StaticValues.cs +++ b/Anthropic/ApiModels/StaticValues.cs @@ -1,4 +1,4 @@ -namespace Anthropic.ApiModels; +namespace Betalgo.Anthropic.ApiModels; internal class StaticValues { diff --git a/Anthropic/Anthropic.csproj b/Anthropic/Betalgo.Anthropic.csproj similarity index 100% rename from Anthropic/Anthropic.csproj rename to Anthropic/Betalgo.Anthropic.csproj diff --git a/Anthropic/EndpointProviders/AnthropicEndpointProvider.cs b/Anthropic/EndpointProviders/AnthropicEndpointProvider.cs index e99e2c5..a13d8ed 100644 --- a/Anthropic/EndpointProviders/AnthropicEndpointProvider.cs +++ b/Anthropic/EndpointProviders/AnthropicEndpointProvider.cs @@ -1,4 +1,4 @@ -namespace Anthropic.EndpointProviders; +namespace Betalgo.Anthropic.EndpointProviders; public class AnthropicEndpointProvider : IAnthropicEndpointProvider { diff --git a/Anthropic/EndpointProviders/IAnthropicEndpointProvider.cs b/Anthropic/EndpointProviders/IAnthropicEndpointProvider.cs index 98ce0ee..76fd43d 100644 --- a/Anthropic/EndpointProviders/IAnthropicEndpointProvider.cs +++ b/Anthropic/EndpointProviders/IAnthropicEndpointProvider.cs @@ -1,4 +1,4 @@ -namespace Anthropic.EndpointProviders; +namespace Betalgo.Anthropic.EndpointProviders; public interface IAnthropicEndpointProvider { diff --git a/Anthropic/Extensions/AnthropicServiceCollectionExtensions.cs b/Anthropic/Extensions/AnthropicServiceCollectionExtensions.cs index 39ffc1c..e706607 100644 --- a/Anthropic/Extensions/AnthropicServiceCollectionExtensions.cs +++ b/Anthropic/Extensions/AnthropicServiceCollectionExtensions.cs @@ -1,8 +1,8 @@ -using Anthropic.ApiModels; -using Anthropic.Services; +using Betalgo.Anthropic.ApiModels; +using Betalgo.Anthropic.Services; using Microsoft.Extensions.DependencyInjection; -namespace Anthropic.Extensions; +namespace Betalgo.Anthropic.Extensions; public static class AnthropicServiceCollectionExtensions { diff --git a/Anthropic/Extensions/AsyncDisposableStream.cs b/Anthropic/Extensions/AsyncDisposableStream.cs index ec3a24d..f6ec370 100644 --- a/Anthropic/Extensions/AsyncDisposableStream.cs +++ b/Anthropic/Extensions/AsyncDisposableStream.cs @@ -1,5 +1,5 @@ #if NETSTANDARD2_0 -namespace Anthropic.Extensions +namespace Betalgo.Anthropic.Extensions { public class AsyncDisposableStream : Stream, IAsyncDisposable { diff --git a/Anthropic/Extensions/ContentBlockExtensions.cs b/Anthropic/Extensions/ContentBlockExtensions.cs index 93544b1..5e78c17 100644 --- a/Anthropic/Extensions/ContentBlockExtensions.cs +++ b/Anthropic/Extensions/ContentBlockExtensions.cs @@ -1,7 +1,7 @@ using System.Text.Json; -using Anthropic.ApiModels.SharedModels; +using Betalgo.Anthropic.ApiModels.SharedModels; -namespace Anthropic.Extensions; +namespace Betalgo.Anthropic.Extensions; public static class ContentBlockExtensions { diff --git a/Anthropic/Extensions/HttpClientExtensions.cs b/Anthropic/Extensions/HttpClientExtensions.cs index 17c2521..13b313d 100644 --- a/Anthropic/Extensions/HttpClientExtensions.cs +++ b/Anthropic/Extensions/HttpClientExtensions.cs @@ -2,9 +2,10 @@ using System.Net.Http.Json; using System.Text.Json; using System.Text.Json.Serialization; -using Anthropic.ApiModels.ResponseModels; +using Betalgo.Anthropic.Extensions; +using Betalgo.Anthropic.ApiModels.ResponseModels; -namespace Anthropic.Extensions; +namespace Betalgo.Anthropic.Extensions; internal static class HttpClientExtensions { diff --git a/Anthropic/Extensions/ModelExtension.cs b/Anthropic/Extensions/ModelExtension.cs index 8781adf..ba2f0bf 100644 --- a/Anthropic/Extensions/ModelExtension.cs +++ b/Anthropic/Extensions/ModelExtension.cs @@ -1,6 +1,6 @@ -using Anthropic.ApiModels; +using Betalgo.Anthropic.ApiModels; -namespace Anthropic.Extensions; +namespace Betalgo.Anthropic.Extensions; internal static class ModelExtension { diff --git a/Anthropic/Extensions/StreamHandleExtension.cs b/Anthropic/Extensions/StreamHandleExtension.cs index f589ce4..64c7100 100644 --- a/Anthropic/Extensions/StreamHandleExtension.cs +++ b/Anthropic/Extensions/StreamHandleExtension.cs @@ -2,12 +2,12 @@ using System.Text; using System.Text.Json; using System.Text.Json.Serialization; -using Anthropic.ApiModels; -using Anthropic.ApiModels.ResponseModels; -using Anthropic.ApiModels.SharedModels; -using static Anthropic.Extensions.StreamPartialResponse; +using Betalgo.Anthropic.ApiModels; +using Betalgo.Anthropic.ApiModels.ResponseModels; +using Betalgo.Anthropic.ApiModels.SharedModels; +using static Betalgo.Anthropic.Extensions.StreamPartialResponse; -namespace Anthropic.Extensions; +namespace Betalgo.Anthropic.Extensions; public static class StreamHandleExtension { diff --git a/Anthropic/Services/AnthropicMessagesService.cs b/Anthropic/Services/AnthropicMessagesService.cs index 881c713..65fcec3 100644 --- a/Anthropic/Services/AnthropicMessagesService.cs +++ b/Anthropic/Services/AnthropicMessagesService.cs @@ -1,9 +1,9 @@ using System.Runtime.CompilerServices; -using Anthropic.ApiModels.RequestModels; -using Anthropic.ApiModels.ResponseModels; -using Anthropic.Extensions; +using Betalgo.Anthropic.ApiModels.RequestModels; +using Betalgo.Anthropic.ApiModels.ResponseModels; +using Betalgo.Anthropic.Extensions; -namespace Anthropic.Services; +namespace Betalgo.Anthropic.Services; public partial class AnthropicService : IMessagesService { diff --git a/Anthropic/Services/AnthropicService.cs b/Anthropic/Services/AnthropicService.cs index 9f48caf..b165cd2 100644 --- a/Anthropic/Services/AnthropicService.cs +++ b/Anthropic/Services/AnthropicService.cs @@ -1,9 +1,9 @@ -using Anthropic.ApiModels; -using Anthropic.EndpointProviders; +using Betalgo.Anthropic.ApiModels; +using Betalgo.Anthropic.EndpointProviders; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; -namespace Anthropic.Services; +namespace Betalgo.Anthropic.Services; public partial class AnthropicService : IAnthropicService, IDisposable { diff --git a/Anthropic/Services/IAnthropicService.cs b/Anthropic/Services/IAnthropicService.cs index 0d59f05..583f9aa 100644 --- a/Anthropic/Services/IAnthropicService.cs +++ b/Anthropic/Services/IAnthropicService.cs @@ -1,4 +1,4 @@ -namespace Anthropic.Services; +namespace Betalgo.Anthropic.Services; public interface IAnthropicService {