Skip to content

Commit

Permalink
rename Service -> WebAPI (microsoft#3177)
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleLittleCloud authored Jul 22, 2024
1 parent 06e6b3f commit 1daf852
Show file tree
Hide file tree
Showing 24 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion dotnet/sample/AutoGen.WebAPI.Sample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Runtime.CompilerServices;
using AutoGen.Core;
using AutoGen.Service;
using AutoGen.WebAPI;

var alice = new DummyAgent("alice");
var bob = new DummyAgent("bob");
Expand Down
2 changes: 1 addition & 1 deletion dotnet/src/AutoGen.WebAPI/Extension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using AutoGen.Core;
using Microsoft.AspNetCore.Builder;

namespace AutoGen.Service;
namespace AutoGen.WebAPI;

public static class Extension
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;

namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;

internal class OpenAIMessageConverter : JsonConverter<OpenAIMessage>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json.Serialization;

namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;

internal class OpenAIAssistantMessage : OpenAIMessage
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json.Serialization;

namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;

internal class OpenAIChatCompletion
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json.Serialization;

namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;

internal class OpenAIChatCompletionChoice
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json.Serialization;

namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;

internal class OpenAIChatCompletionMessage
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json.Serialization;

namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;

internal class OpenAIChatCompletionOption
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json.Serialization;

namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;

internal class OpenAIChatCompletionUsage
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json.Serialization;

namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;

internal class OpenAIImageUrlObject
{
Expand Down
2 changes: 1 addition & 1 deletion dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json.Serialization;

namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;

[JsonConverter(typeof(OpenAIMessageConverter))]
internal abstract class OpenAIMessage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json.Serialization;

namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;

internal class OpenAIStreamOptions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json.Serialization;

namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;

internal class OpenAISystemMessage : OpenAIMessage
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json.Serialization;

namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;

internal class OpenAIToolCallObject
{
Expand Down
2 changes: 1 addition & 1 deletion dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIToolMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json.Serialization;

namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;

internal class OpenAIToolMessage : OpenAIMessage
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json.Serialization;

namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;

internal class OpenAIUserImageContent : OpenAIUserMessageItem
{
Expand Down
2 changes: 1 addition & 1 deletion dotnet/src/AutoGen.WebAPI/OpenAI/DTO/OpenAIUserMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json.Serialization;

namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;

internal class OpenAIUserMessage : OpenAIMessage
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json.Serialization;

namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;

internal abstract class OpenAIUserMessageItem
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json.Serialization;

namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;

internal class OpenAIUserMultiModalMessage : OpenAIMessage
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json.Serialization;

namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;

internal class OpenAIUserTextContent : OpenAIUserMessageItem
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Linq;
using System.Threading.Tasks;
using AutoGen.Core;
using AutoGen.Service.OpenAI.DTO;
using AutoGen.WebAPI.OpenAI.DTO;

namespace AutoGen.Server;

Expand Down
4 changes: 2 additions & 2 deletions dotnet/src/AutoGen.WebAPI/OpenAIChatCompletionMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
using System.Threading.Tasks;
using AutoGen.Core;
using AutoGen.Server;
using AutoGen.Service.OpenAI.DTO;
using AutoGen.WebAPI.OpenAI.DTO;
using Microsoft.AspNetCore.Http;

namespace AutoGen.Service;
namespace AutoGen.WebAPI;

public class OpenAIChatCompletionMiddleware : Microsoft.AspNetCore.Http.IMiddleware
{
Expand Down
2 changes: 1 addition & 1 deletion dotnet/test/AutoGen.WebAPI.Tests/EchoAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Runtime.CompilerServices;
using AutoGen.Core;

namespace AutoGen.Service.Tests;
namespace AutoGen.WebAPI.Tests;

public class EchoAgent : IStreamingAgent
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

namespace AutoGen.Service.Tests;
namespace AutoGen.WebAPI.Tests;

public class OpenAIChatCompletionMiddlewareTests
{
Expand Down

0 comments on commit 1daf852

Please sign in to comment.