rename Service -> WebAPI (#3177)

This commit is contained in:
Xiaoyun Zhang 2024-07-22 09:44:12 -07:00 committed by GitHub
parent 06e6b3ff05
commit 1daf852f86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
24 changed files with 25 additions and 25 deletions

View File

@ -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");

View File

@ -4,7 +4,7 @@
using AutoGen.Core;
using Microsoft.AspNetCore.Builder;
namespace AutoGen.Service;
namespace AutoGen.WebAPI;
public static class Extension
{

View File

@ -5,7 +5,7 @@ using System;
using System.Text.Json;
using System.Text.Json.Serialization;
namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;
internal class OpenAIMessageConverter : JsonConverter<OpenAIMessage>
{

View File

@ -3,7 +3,7 @@
using System.Text.Json.Serialization;
namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;
internal class OpenAIAssistantMessage : OpenAIMessage
{

View File

@ -3,7 +3,7 @@
using System.Text.Json.Serialization;
namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;
internal class OpenAIChatCompletion
{

View File

@ -3,7 +3,7 @@
using System.Text.Json.Serialization;
namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;
internal class OpenAIChatCompletionChoice
{

View File

@ -3,7 +3,7 @@
using System.Text.Json.Serialization;
namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;
internal class OpenAIChatCompletionMessage
{

View File

@ -3,7 +3,7 @@
using System.Text.Json.Serialization;
namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;
internal class OpenAIChatCompletionOption
{

View File

@ -3,7 +3,7 @@
using System.Text.Json.Serialization;
namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;
internal class OpenAIChatCompletionUsage
{

View File

@ -3,7 +3,7 @@
using System.Text.Json.Serialization;
namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;
internal class OpenAIImageUrlObject
{

View File

@ -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

View File

@ -3,7 +3,7 @@
using System.Text.Json.Serialization;
namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;
internal class OpenAIStreamOptions
{

View File

@ -3,7 +3,7 @@
using System.Text.Json.Serialization;
namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;
internal class OpenAISystemMessage : OpenAIMessage
{

View File

@ -3,7 +3,7 @@
using System.Text.Json.Serialization;
namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;
internal class OpenAIToolCallObject
{

View File

@ -3,7 +3,7 @@
using System.Text.Json.Serialization;
namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;
internal class OpenAIToolMessage : OpenAIMessage
{

View File

@ -3,7 +3,7 @@
using System.Text.Json.Serialization;
namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;
internal class OpenAIUserImageContent : OpenAIUserMessageItem
{

View File

@ -3,7 +3,7 @@
using System.Text.Json.Serialization;
namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;
internal class OpenAIUserMessage : OpenAIMessage
{

View File

@ -3,7 +3,7 @@
using System.Text.Json.Serialization;
namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;
internal abstract class OpenAIUserMessageItem
{

View File

@ -3,7 +3,7 @@
using System.Text.Json.Serialization;
namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;
internal class OpenAIUserMultiModalMessage : OpenAIMessage
{

View File

@ -3,7 +3,7 @@
using System.Text.Json.Serialization;
namespace AutoGen.Service.OpenAI.DTO;
namespace AutoGen.WebAPI.OpenAI.DTO;
internal class OpenAIUserTextContent : OpenAIUserMessageItem
{

View File

@ -6,7 +6,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AutoGen.Core;
using AutoGen.Service.OpenAI.DTO;
using AutoGen.WebAPI.OpenAI.DTO;
namespace AutoGen.Server;

View File

@ -5,10 +5,10 @@ using System.Text.Json;
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
{

View File

@ -4,7 +4,7 @@
using System.Runtime.CompilerServices;
using AutoGen.Core;
namespace AutoGen.Service.Tests;
namespace AutoGen.WebAPI.Tests;
public class EchoAgent : IStreamingAgent
{

View File

@ -12,7 +12,7 @@ using Microsoft.AspNetCore.TestHost;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace AutoGen.Service.Tests;
namespace AutoGen.WebAPI.Tests;
public class OpenAIChatCompletionMiddlewareTests
{