Skip to content

Commit 7e34006

Browse files
committed
实现 #1724 first-slice AGUI 合同下沉 (#1730)
1 parent 3b2d4d7 commit 7e34006

73 files changed

Lines changed: 153 additions & 112 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

aevatar.slnx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
<Project Path="src\Aevatar.Foundation.VoicePresence.OpenAI\Aevatar.Foundation.VoicePresence.OpenAI.csproj" />
9797
<Project Path="src\Aevatar.Hosting\Aevatar.Hosting.csproj" />
9898
<Project Path="src\Aevatar.Mainnet.Host.Api\Aevatar.Mainnet.Host.Api.csproj" />
99+
<Project Path="src\Aevatar.AGUI.Contracts\Aevatar.AGUI.Contracts.csproj" />
99100
<Project Path="src\Aevatar.Presentation.AGUI\Aevatar.Presentation.AGUI.csproj" />
100101
<Project Path="src\Aevatar.Scripting.Abstractions\Aevatar.Scripting.Abstractions.csproj" />
101102
<Project Path="src\Aevatar.Scripting.Application\Aevatar.Scripting.Application.csproj" />

agents/Aevatar.GAgents.NyxidChat/Aevatar.GAgents.NyxidChat.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<ProjectReference Include="..\..\src\Aevatar.CQRS.Projection.Runtime\Aevatar.CQRS.Projection.Runtime.csproj" />
3636
<ProjectReference Include="..\..\src\Aevatar.Foundation.Abstractions\Aevatar.Foundation.Abstractions.csproj" />
3737
<ProjectReference Include="..\..\src\Aevatar.Hosting\Aevatar.Hosting.csproj" />
38-
<ProjectReference Include="..\..\src\Aevatar.Presentation.AGUI\Aevatar.Presentation.AGUI.csproj" />
38+
<ProjectReference Include="..\..\src\Aevatar.AGUI.Contracts\Aevatar.AGUI.Contracts.csproj" />
3939
<ProjectReference Include="..\..\src\platform\Aevatar.GAgentService.Abstractions\Aevatar.GAgentService.Abstractions.csproj" />
4040
<ProjectReference Include="..\..\src\Aevatar.Studio.Application\Aevatar.Studio.Application.csproj" />
4141
<ProjectReference Include="..\..\src\Aevatar.Studio.Infrastructure\Aevatar.Studio.Infrastructure.csproj" />

agents/Aevatar.GAgents.NyxidChat/NyxIdChatAguiSseEventWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Aevatar.AI.Abstractions;
2-
using Aevatar.Presentation.AGUI;
2+
using Aevatar.AGUI.Contracts;
33
using Google.Protobuf.Collections;
44
using Google.Protobuf.WellKnownTypes;
55

agents/Aevatar.GAgents.NyxidChat/NyxIdChatEndpoints.Streaming.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using Aevatar.Studio.Application.Studio.Abstractions;
55
using Aevatar.GAgentService.Abstractions.ScopeGAgents;
66
using Aevatar.Hosting;
7-
using Aevatar.Presentation.AGUI;
7+
using Aevatar.AGUI.Contracts;
88
using Microsoft.AspNetCore.Http;
99
using Microsoft.AspNetCore.Mvc;
1010
using Microsoft.Extensions.Logging;

agents/Aevatar.GAgents.NyxidChat/NyxIdChatInteraction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using Aevatar.CQRS.Core.Abstractions.Interactions;
66
using Aevatar.CQRS.Core.Abstractions.Streaming;
77
using Aevatar.Foundation.Abstractions;
8-
using Aevatar.Presentation.AGUI;
8+
using Aevatar.AGUI.Contracts;
99
using Google.Protobuf;
1010
using Google.Protobuf.WellKnownTypes;
1111
using Microsoft.Extensions.DependencyInjection;

agents/Aevatar.GAgents.NyxidChat/NyxIdChatProjectionSession.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using Aevatar.CQRS.Projection.Core.Orchestration;
44
using Aevatar.Foundation.Abstractions;
55
using Aevatar.GAgentService.Abstractions.ScopeGAgents;
6-
using Aevatar.Presentation.AGUI;
6+
using Aevatar.AGUI.Contracts;
77
using Google.Protobuf;
88

99
namespace Aevatar.GAgents.NyxidChat;

agents/Aevatar.GAgents.NyxidChat/ServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
using Aevatar.GAgents.Channel.Runtime;
2020
using Aevatar.GAgents.NyxidChat.LlmSelection;
2121
using Aevatar.GAgents.NyxidChat.Slash;
22-
using Aevatar.Presentation.AGUI;
22+
using Aevatar.AGUI.Contracts;
2323
using Microsoft.Extensions.Configuration;
2424
using Microsoft.Extensions.DependencyInjection;
2525
using Microsoft.Extensions.DependencyInjection.Extensions;

docs/canon/llm-streaming.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ owner: eanzhao
6060
7. `src/workflow/Aevatar.Workflow.Presentation.AGUIAdapter/EventEnvelopeToWorkflowRunEventMapper.cs`
6161
8. `src/Aevatar.CQRS.Projection.Core/Streaming/ProjectionSessionEventHub.cs`
6262

63+
`AGUIEvent` CLR protobuf contracts are generated by `Aevatar.AGUI.Contracts`; `Aevatar.Presentation.AGUI` is the SSE adapter boundary.
64+
6365
## 4. 整体拓扑图
6466

6567
```mermaid
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net10.0</TargetFramework>
4+
<ImplicitUsings>enable</ImplicitUsings>
5+
<Nullable>enable</Nullable>
6+
<AssemblyName>Aevatar.AGUI.Contracts</AssemblyName>
7+
<RootNamespace>Aevatar.AGUI.Contracts</RootNamespace>
8+
</PropertyGroup>
9+
<ItemGroup>
10+
<PackageReference Include="Google.Protobuf" />
11+
<PackageReference Include="Grpc.Tools">
12+
<PrivateAssets>all</PrivateAssets>
13+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
14+
</PackageReference>
15+
</ItemGroup>
16+
<ItemGroup>
17+
<Protobuf Include="agui_events.proto" GrpcServices="None" />
18+
</ItemGroup>
19+
</Project>

src/Aevatar.Presentation.AGUI/agui_events.proto renamed to src/Aevatar.AGUI.Contracts/agui_events.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ syntax = "proto3";
22

33
package aevatar.presentation.agui;
44

5-
option csharp_namespace = "Aevatar.Presentation.AGUI";
5+
option csharp_namespace = "Aevatar.AGUI.Contracts";
66

77
import "google/protobuf/any.proto";
88
import "google/protobuf/wrappers.proto";

0 commit comments

Comments
 (0)