Skip to content

Commit

Permalink
Namespace changed as Betalgo.Anthropic
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhantolga committed Aug 27, 2024
1 parent fde1c94 commit 2ac35d1
Show file tree
Hide file tree
Showing 36 changed files with 66 additions and 64 deletions.
2 changes: 1 addition & 1 deletion Anthropic.Playground/Anthropic.Playground.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Anthropic\Anthropic.csproj" />
<ProjectReference Include="..\Anthropic\Betalgo.Anthropic.csproj" />
</ItemGroup>

</Project>
6 changes: 3 additions & 3 deletions Anthropic.Playground/Program.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
6 changes: 3 additions & 3 deletions Anthropic.Playground/TestHelpers/ChatTestHelper.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
10 changes: 5 additions & 5 deletions Anthropic.Playground/TestHelpers/ChatToolUseTestHelper.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
2 changes: 1 addition & 1 deletion Anthropic.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Anthropic.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/UserDictionary/Words/=Betalgo/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Mergy/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=ratelimit/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
2 changes: 1 addition & 1 deletion Anthropic/ApiModels/AnthropicOptions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Anthropic.ApiModels;
namespace Betalgo.Anthropic.ApiModels;

public class AnthropicOptions
{
Expand Down
2 changes: 1 addition & 1 deletion Anthropic/ApiModels/AnthropicProviderType.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Anthropic.ApiModels;
namespace Betalgo.Anthropic.ApiModels;

/// <summary>
/// Anthropic Provider Type
Expand Down
2 changes: 1 addition & 1 deletion Anthropic/ApiModels/IObjectInterfaces.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Anthropic.ApiModels;
namespace Betalgo.Anthropic.ApiModels;

public interface IObjectInterfaces
{
Expand Down
4 changes: 2 additions & 2 deletions Anthropic/ApiModels/JsonConverters.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions Anthropic/ApiModels/RequestModels/MessageRequest.cs
Original file line number Diff line number Diff line change
@@ -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;

/// <summary>
/// Represents a request to create a message using the Anthropic API.
Expand Down
4 changes: 2 additions & 2 deletions Anthropic/ApiModels/ResponseModels/BaseResponse.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions Anthropic/ApiModels/ResponseModels/MessageResponse.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions Anthropic/ApiModels/ResponseModels/RateLimitInfo.cs
Original file line number Diff line number Diff line change
@@ -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;

/// <summary>
/// Represents rate limit information from Anthropic API headers.
Expand Down
4 changes: 2 additions & 2 deletions Anthropic/ApiModels/ResponseModels/ResponseHeaderValues.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Anthropic.Extensions;
using Betalgo.Anthropic.Extensions;

namespace Anthropic.ApiModels.ResponseModels;
namespace Betalgo.Anthropic.ApiModels.ResponseModels;

/// <summary>
/// Represents the values of various headers in an HTTP response.
Expand Down
4 changes: 2 additions & 2 deletions Anthropic/ApiModels/SharedModels/ContentBlock.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions Anthropic/ApiModels/SharedModels/ImageSource.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion Anthropic/ApiModels/SharedModels/Message.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;

namespace Anthropic.ApiModels.SharedModels;
namespace Betalgo.Anthropic.ApiModels.SharedModels;

public class Message
{
Expand Down
2 changes: 1 addition & 1 deletion Anthropic/ApiModels/SharedModels/Metadata.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;

namespace Anthropic.ApiModels.SharedModels;
namespace Betalgo.Anthropic.ApiModels.SharedModels;

/// <summary>
/// Represents metadata about the request.
Expand Down
2 changes: 1 addition & 1 deletion Anthropic/ApiModels/SharedModels/Tool.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;

namespace Anthropic.ApiModels.SharedModels;
namespace Betalgo.Anthropic.ApiModels.SharedModels;

/// <summary>
/// Represents a tool definition that the model may use.
Expand Down
2 changes: 1 addition & 1 deletion Anthropic/ApiModels/SharedModels/ToolChoice.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;

namespace Anthropic.ApiModels.SharedModels;
namespace Betalgo.Anthropic.ApiModels.SharedModels;

/// <summary>
/// Represents how the model should use the provided tools.
Expand Down
2 changes: 1 addition & 1 deletion Anthropic/ApiModels/SharedModels/ToolParameters.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;

namespace Anthropic.ApiModels.SharedModels;
namespace Betalgo.Anthropic.ApiModels.SharedModels;

/// <summary>
/// Function parameter is a JSON Schema object.
Expand Down
2 changes: 1 addition & 1 deletion Anthropic/ApiModels/SharedModels/Usage.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;

namespace Anthropic.ApiModels.SharedModels;
namespace Betalgo.Anthropic.ApiModels.SharedModels;

public class Usage
{
Expand Down
2 changes: 1 addition & 1 deletion Anthropic/ApiModels/StaticValues.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Anthropic.ApiModels;
namespace Betalgo.Anthropic.ApiModels;

internal class StaticValues
{
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion Anthropic/EndpointProviders/AnthropicEndpointProvider.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Anthropic.EndpointProviders;
namespace Betalgo.Anthropic.EndpointProviders;

public class AnthropicEndpointProvider : IAnthropicEndpointProvider
{
Expand Down
2 changes: 1 addition & 1 deletion Anthropic/EndpointProviders/IAnthropicEndpointProvider.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Anthropic.EndpointProviders;
namespace Betalgo.Anthropic.EndpointProviders;

public interface IAnthropicEndpointProvider
{
Expand Down
6 changes: 3 additions & 3 deletions Anthropic/Extensions/AnthropicServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion Anthropic/Extensions/AsyncDisposableStream.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#if NETSTANDARD2_0
namespace Anthropic.Extensions
namespace Betalgo.Anthropic.Extensions
{
public class AsyncDisposableStream : Stream, IAsyncDisposable
{
Expand Down
4 changes: 2 additions & 2 deletions Anthropic/Extensions/ContentBlockExtensions.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
5 changes: 3 additions & 2 deletions Anthropic/Extensions/HttpClientExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions Anthropic/Extensions/ModelExtension.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Anthropic.ApiModels;
using Betalgo.Anthropic.ApiModels;

namespace Anthropic.Extensions;
namespace Betalgo.Anthropic.Extensions;

internal static class ModelExtension
{
Expand Down
10 changes: 5 additions & 5 deletions Anthropic/Extensions/StreamHandleExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
8 changes: 4 additions & 4 deletions Anthropic/Services/AnthropicMessagesService.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
6 changes: 3 additions & 3 deletions Anthropic/Services/AnthropicService.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion Anthropic/Services/IAnthropicService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Anthropic.Services;
namespace Betalgo.Anthropic.Services;

public interface IAnthropicService
{
Expand Down

0 comments on commit 2ac35d1

Please sign in to comment.