mirror of https://github.com/microsoft/autogen.git
refactoring the dotnet folder and namespace structure for better long term maintenance and clarity #3809 (#3810)
closes #3809 - refactor .NET code foldersand namespaces for better clarity and maintainability
This commit is contained in:
parent
0214299de5
commit
460a6817ea
|
@ -148,14 +148,14 @@ git switch staging-dev
|
||||||
# Build the project
|
# Build the project
|
||||||
cd dotnet && dotnet build AutoGen.sln
|
cd dotnet && dotnet build AutoGen.sln
|
||||||
# In your source code, add AutoGen to your project
|
# In your source code, add AutoGen to your project
|
||||||
dotnet add <your.csproj> reference <path to your checkout of autogen>/dotnet/src/Microsoft.AutoGen.Agents/Client/Microsoft.AutoGen.Agents.Client.csproj
|
dotnet add <your.csproj> reference <path to your checkout of autogen>/dotnet/src/Microsoft.AutoGen/Agents/Microsoft.AutoGen.Agents.csproj
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, define and run your first agent:
|
Then, define and run your first agent:
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
using Microsoft.AutoGen.Agents.Client;
|
using Microsoft.AutoGen.Agents;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
|
|
||||||
|
|
|
@ -103,19 +103,17 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hello", "samples\Hello\Hello.csproj", "{6C9135E6-9D15-4D86-B3F4-9666DB87060A}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hello", "samples\Hello\Hello.csproj", "{6C9135E6-9D15-4D86-B3F4-9666DB87060A}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AutoGen.ServiceDefaults", "src\Microsoft.AutoGen.ServiceDefaults\Microsoft.AutoGen.ServiceDefaults.csproj", "{F70C6FD7-9615-4EDD-8D55-5460FCC5A46D}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AutoGen.Agents", "src\Microsoft.AutoGen\Agents\Microsoft.AutoGen.Agents.csproj", "{FD87BD33-4616-460B-AC85-A412BA08BB78}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Microsoft.AutoGen.Agents", "Microsoft.AutoGen.Agents", "{143BF45F-1091-458C-A772-DAD5C57B72FA}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AutoGen.Abstractions", "src\Microsoft.AutoGen\Abstractions\Microsoft.AutoGen.Abstractions.csproj", "{E0C991D9-0DB8-471C-ADC9-5FB16E2A0106}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AutoGen.Agents.Runtime", "src\Microsoft.AutoGen.Agents\Runtime\Microsoft.AutoGen.Agents.Runtime.csproj", "{32AF1495-4068-4048-A34A-FCA1E110F02E}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AutoGen.Extensions.SemanticKernel", "src\Microsoft.AutoGen\Extensions\SemanticKernel\Microsoft.AutoGen.Extensions.SemanticKernel.csproj", "{952827D4-8D4C-4327-AE4D-E8D25811EF35}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AutoGen.Agents.Extensions.SemanticKernel", "src\Microsoft.AutoGen.Agents\Extensions\SemanticKernel\Microsoft.AutoGen.Agents.Extensions.SemanticKernel.csproj", "{2B1701A5-BEA2-4844-863B-0275ECCCD11D}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AutoGen.Extensions.CloudEvents", "src\Microsoft.AutoGen\Extensions\CloudEvents\Microsoft.AutoGen.Extensions.CloudEvents.csproj", "{21C9EC49-E848-4EAE-932F-0862D44F7A80}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AutoGen.Agents.Extensions.CloudEvents", "src\Microsoft.AutoGen.Agents\Extensions\CloudEvents\Microsoft.AutoGen.Agents.Extensions.CloudEvents.csproj", "{FDD6787A-EE6A-4A8E-872F-CDA97A824D08}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AutoGen.Runtime", "src\Microsoft.AutoGen\Runtime\Microsoft.AutoGen.Runtime.csproj", "{A905E29A-7110-497F-ADC5-2CE2A148FEA0}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AutoGen.Agents.Client", "src\Microsoft.AutoGen.Agents\Client\Microsoft.AutoGen.Agents.Client.csproj", "{CEEC175F-8752-4040-9226-8F5FEC7563B8}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AutoGen.ServiceDefaults", "src\Microsoft.AutoGen\ServiceDefaults\Microsoft.AutoGen.ServiceDefaults.csproj", "{D7E9D90B-5595-4E72-A90A-6DE20D9AB7AE}"
|
||||||
EndProject
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AutoGen.Agents.Abstractions", "src\Microsoft.AutoGen.Agents\Abstractions\Microsoft.AutoGen.Agents.Abstractions.csproj", "{8960A02A-A139-4E54-BF98-B8F9C4A0FFE8}"
|
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
@ -287,30 +285,30 @@ Global
|
||||||
{6C9135E6-9D15-4D86-B3F4-9666DB87060A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{6C9135E6-9D15-4D86-B3F4-9666DB87060A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{6C9135E6-9D15-4D86-B3F4-9666DB87060A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{6C9135E6-9D15-4D86-B3F4-9666DB87060A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{6C9135E6-9D15-4D86-B3F4-9666DB87060A}.Release|Any CPU.Build.0 = Release|Any CPU
|
{6C9135E6-9D15-4D86-B3F4-9666DB87060A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{F70C6FD7-9615-4EDD-8D55-5460FCC5A46D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{FD87BD33-4616-460B-AC85-A412BA08BB78}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{F70C6FD7-9615-4EDD-8D55-5460FCC5A46D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{FD87BD33-4616-460B-AC85-A412BA08BB78}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{F70C6FD7-9615-4EDD-8D55-5460FCC5A46D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{FD87BD33-4616-460B-AC85-A412BA08BB78}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{F70C6FD7-9615-4EDD-8D55-5460FCC5A46D}.Release|Any CPU.Build.0 = Release|Any CPU
|
{FD87BD33-4616-460B-AC85-A412BA08BB78}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{32AF1495-4068-4048-A34A-FCA1E110F02E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{E0C991D9-0DB8-471C-ADC9-5FB16E2A0106}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{32AF1495-4068-4048-A34A-FCA1E110F02E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{E0C991D9-0DB8-471C-ADC9-5FB16E2A0106}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{32AF1495-4068-4048-A34A-FCA1E110F02E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{E0C991D9-0DB8-471C-ADC9-5FB16E2A0106}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{32AF1495-4068-4048-A34A-FCA1E110F02E}.Release|Any CPU.Build.0 = Release|Any CPU
|
{E0C991D9-0DB8-471C-ADC9-5FB16E2A0106}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{2B1701A5-BEA2-4844-863B-0275ECCCD11D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{952827D4-8D4C-4327-AE4D-E8D25811EF35}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{2B1701A5-BEA2-4844-863B-0275ECCCD11D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{952827D4-8D4C-4327-AE4D-E8D25811EF35}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{2B1701A5-BEA2-4844-863B-0275ECCCD11D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{952827D4-8D4C-4327-AE4D-E8D25811EF35}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{2B1701A5-BEA2-4844-863B-0275ECCCD11D}.Release|Any CPU.Build.0 = Release|Any CPU
|
{952827D4-8D4C-4327-AE4D-E8D25811EF35}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{FDD6787A-EE6A-4A8E-872F-CDA97A824D08}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{21C9EC49-E848-4EAE-932F-0862D44F7A80}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{FDD6787A-EE6A-4A8E-872F-CDA97A824D08}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{21C9EC49-E848-4EAE-932F-0862D44F7A80}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{FDD6787A-EE6A-4A8E-872F-CDA97A824D08}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{21C9EC49-E848-4EAE-932F-0862D44F7A80}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{FDD6787A-EE6A-4A8E-872F-CDA97A824D08}.Release|Any CPU.Build.0 = Release|Any CPU
|
{21C9EC49-E848-4EAE-932F-0862D44F7A80}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{CEEC175F-8752-4040-9226-8F5FEC7563B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{A905E29A-7110-497F-ADC5-2CE2A148FEA0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{CEEC175F-8752-4040-9226-8F5FEC7563B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{A905E29A-7110-497F-ADC5-2CE2A148FEA0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{CEEC175F-8752-4040-9226-8F5FEC7563B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{A905E29A-7110-497F-ADC5-2CE2A148FEA0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{CEEC175F-8752-4040-9226-8F5FEC7563B8}.Release|Any CPU.Build.0 = Release|Any CPU
|
{A905E29A-7110-497F-ADC5-2CE2A148FEA0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{8960A02A-A139-4E54-BF98-B8F9C4A0FFE8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{D7E9D90B-5595-4E72-A90A-6DE20D9AB7AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{8960A02A-A139-4E54-BF98-B8F9C4A0FFE8}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{D7E9D90B-5595-4E72-A90A-6DE20D9AB7AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{8960A02A-A139-4E54-BF98-B8F9C4A0FFE8}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{D7E9D90B-5595-4E72-A90A-6DE20D9AB7AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{8960A02A-A139-4E54-BF98-B8F9C4A0FFE8}.Release|Any CPU.Build.0 = Release|Any CPU
|
{D7E9D90B-5595-4E72-A90A-6DE20D9AB7AE}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
@ -360,13 +358,12 @@ Global
|
||||||
{D826D5E4-31F4-4AB5-AC86-F7B4AD79314B} = {616F30DF-1F41-4047-BAA4-64BA03BF5AEA}
|
{D826D5E4-31F4-4AB5-AC86-F7B4AD79314B} = {616F30DF-1F41-4047-BAA4-64BA03BF5AEA}
|
||||||
{D9F65DFD-368B-47DB-8BB5-0C74DED7F439} = {616F30DF-1F41-4047-BAA4-64BA03BF5AEA}
|
{D9F65DFD-368B-47DB-8BB5-0C74DED7F439} = {616F30DF-1F41-4047-BAA4-64BA03BF5AEA}
|
||||||
{6C9135E6-9D15-4D86-B3F4-9666DB87060A} = {FBFEAD1F-29EB-4D99-A672-0CD8473E10B9}
|
{6C9135E6-9D15-4D86-B3F4-9666DB87060A} = {FBFEAD1F-29EB-4D99-A672-0CD8473E10B9}
|
||||||
{F70C6FD7-9615-4EDD-8D55-5460FCC5A46D} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
|
{FD87BD33-4616-460B-AC85-A412BA08BB78} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
|
||||||
{143BF45F-1091-458C-A772-DAD5C57B72FA} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
|
{E0C991D9-0DB8-471C-ADC9-5FB16E2A0106} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
|
||||||
{32AF1495-4068-4048-A34A-FCA1E110F02E} = {143BF45F-1091-458C-A772-DAD5C57B72FA}
|
{952827D4-8D4C-4327-AE4D-E8D25811EF35} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
|
||||||
{2B1701A5-BEA2-4844-863B-0275ECCCD11D} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
|
{21C9EC49-E848-4EAE-932F-0862D44F7A80} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
|
||||||
{FDD6787A-EE6A-4A8E-872F-CDA97A824D08} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
|
{A905E29A-7110-497F-ADC5-2CE2A148FEA0} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
|
||||||
{CEEC175F-8752-4040-9226-8F5FEC7563B8} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
|
{D7E9D90B-5595-4E72-A90A-6DE20D9AB7AE} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
|
||||||
{8960A02A-A139-4E54-BF98-B8F9C4A0FFE8} = {143BF45F-1091-458C-A772-DAD5C57B72FA}
|
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
SolutionGuid = {93384647-528D-46C8-922C-8DB36A382F0B}
|
SolutionGuid = {93384647-528D-46C8-922C-8DB36A382F0B}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\src\Microsoft.AutoGen.Agents\Client\Microsoft.AutoGen.Agents.Client.csproj" />
|
<ProjectReference Include="..\..\src\Microsoft.AutoGen\Agents\Microsoft.AutoGen.Agents.csproj" />
|
||||||
<ProjectReference Include="..\..\src\Microsoft.AutoGen.Agents\Runtime\Microsoft.AutoGen.Agents.Runtime.csproj" />
|
<ProjectReference Include="..\..\src\Microsoft.AutoGen\Runtime\Microsoft.AutoGen.Runtime.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
using Microsoft.AutoGen.Agents.Client;
|
using Microsoft.AutoGen.Agents;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ graph LR;
|
||||||
|
|
||||||
The heart of an autogen application are the event handlers. Agents select a ```TopicSubscription``` to listen for events on a specific topic. When an event is received, the agent's event handler is called with the event data.
|
The heart of an autogen application are the event handlers. Agents select a ```TopicSubscription``` to listen for events on a specific topic. When an event is received, the agent's event handler is called with the event data.
|
||||||
|
|
||||||
Within that event handler you may optionally *emit* new events, which are then sent to the event bus for other agents to process. The EventTypes are declared gRPC ProtoBuf messages that are used to define the schema of the event. The default protos are available via the ```Microsoft.AutoGen.Agents.Abstractions;``` namespace and are defined in [autogen/protos](/autogen/protos). The EventTypes are registered in the agent's constructor using the ```IHandle``` interface.
|
Within that event handler you may optionally *emit* new events, which are then sent to the event bus for other agents to process. The EventTypes are declared gRPC ProtoBuf messages that are used to define the schema of the event. The default protos are available via the ```Microsoft.AutoGen.Abstractions;``` namespace and are defined in [autogen/protos](/autogen/protos). The EventTypes are registered in the agent's constructor using the ```IHandle``` interface.
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
TopicSubscription("HelloAgents")]
|
TopicSubscription("HelloAgents")]
|
||||||
|
@ -74,7 +74,7 @@ This sample also illustrates inheritance in AutoGen. The `HelloAgent` class inhe
|
||||||
|
|
||||||
### Starting the Application Runtime
|
### Starting the Application Runtime
|
||||||
|
|
||||||
AuotoGen provides a flexible runtime ```Microsoft.AutoGen.Agents.Client.App``` that can be started in a variety of ways. The `Program.cs` file demonstrates how to start the runtime locally and send a message to the agent all in one go using the ```App.PublishMessageAsync``` method.
|
AuotoGen provides a flexible runtime ```Microsoft.AutoGen.Agents.App``` that can be started in a variety of ways. The `Program.cs` file demonstrates how to start the runtime locally and send a message to the agent all in one go using the ```App.PublishMessageAsync``` method.
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
// send a message to the agent
|
// send a message to the agent
|
||||||
|
@ -118,4 +118,4 @@ message ReadmeRequested {
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
```
|
```
|
||||||
|
|
||||||
You can send messages using the [```Microsoft.AutoGen.Agents.Client.AgentClient``` class](autogen/dotnet/src/Microsoft.AutoGen.Agents/Client/AgentClient.cs). Messages are wrapped in [the CloudEvents specification](https://cloudevents.io) and sent to the event bus.
|
You can send messages using the [```Microsoft.AutoGen.Agents.AgentClient``` class](autogen/dotnet/src/Microsoft.AutoGen/Agents/AgentClient.cs). Messages are wrapped in [the CloudEvents specification](https://cloudevents.io) and sent to the event bus.
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="../../../src/Microsoft.AutoGen.Agents/Runtime/Microsoft.AutoGen.Agents.Runtime.csproj" />
|
<ProjectReference Include="../../../src/Microsoft.AutoGen/Runtime/Microsoft.AutoGen.Runtime.csproj" />
|
||||||
<ProjectReference Include="../../../src/Microsoft.AutoGen.ServiceDefaults/Microsoft.AutoGen.ServiceDefaults.csproj" />
|
<ProjectReference Include="../../../src/Microsoft.AutoGen/ServiceDefaults/Microsoft.AutoGen.ServiceDefaults.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
using Microsoft.AutoGen.Agents.Runtime;
|
using Microsoft.AutoGen.Runtime;
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
builder.AddServiceDefaults();
|
builder.AddServiceDefaults();
|
||||||
|
|
|
@ -8,11 +8,11 @@
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
||||||
<ProjectReference Include="../../../src/Microsoft.AutoGen.Agents/Client/Microsoft.AutoGen.Agents.Client.csproj" />
|
<ProjectReference Include="../../../src/Microsoft.AutoGen/Agents/Microsoft.AutoGen.Agents.csproj" />
|
||||||
|
|
||||||
<ProjectReference Include="../../../src/Microsoft.AutoGen.ServiceDefaults/Microsoft.AutoGen.ServiceDefaults.csproj" />
|
<ProjectReference Include="../../../src/Microsoft.AutoGen/ServiceDefaults/Microsoft.AutoGen.ServiceDefaults.csproj" />
|
||||||
<ProjectReference Include="..\DevTeam.Shared\DevTeam.Shared.csproj" />
|
<ProjectReference Include="..\DevTeam.Shared\DevTeam.Shared.csproj" />
|
||||||
<ProjectReference Include="..\..\..\src\Microsoft.AutoGen.Agents\Extensions\SemanticKernel\Microsoft.AutoGen.Agents.Extensions.SemanticKernel.csproj" />
|
<ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Extensions\SemanticKernel\Microsoft.AutoGen.Extensions.SemanticKernel.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using DevTeam.Shared;
|
using DevTeam.Shared;
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
using Microsoft.AutoGen.Agents.Client;
|
using Microsoft.AutoGen.Agents;
|
||||||
using Microsoft.SemanticKernel;
|
using Microsoft.SemanticKernel;
|
||||||
using Microsoft.SemanticKernel.Memory;
|
using Microsoft.SemanticKernel.Memory;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using DevTeam.Shared;
|
using DevTeam.Shared;
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
using Microsoft.AutoGen.Agents.Client;
|
using Microsoft.AutoGen.Agents;
|
||||||
using Microsoft.SemanticKernel;
|
using Microsoft.SemanticKernel;
|
||||||
using Microsoft.SemanticKernel.Connectors.OpenAI;
|
using Microsoft.SemanticKernel.Connectors.OpenAI;
|
||||||
using Microsoft.SemanticKernel.Memory;
|
using Microsoft.SemanticKernel.Memory;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using DevTeam.Shared;
|
using DevTeam.Shared;
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
using Microsoft.AutoGen.Agents.Client;
|
using Microsoft.AutoGen.Agents;
|
||||||
using Microsoft.SemanticKernel;
|
using Microsoft.SemanticKernel;
|
||||||
using Microsoft.SemanticKernel.Memory;
|
using Microsoft.SemanticKernel.Memory;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using DevTeam.Agents;
|
using DevTeam.Agents;
|
||||||
using Microsoft.AutoGen.Agents.Client;
|
using Microsoft.AutoGen.Agents;
|
||||||
using Microsoft.AutoGen.Agents.Extensions.SemanticKernel;
|
using Microsoft.AutoGen.Extensions.SemanticKernel;
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
using DevTeam.Backend;
|
using DevTeam.Backend;
|
||||||
using DevTeam.Shared;
|
using DevTeam.Shared;
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
using Microsoft.AutoGen.Agents.Client;
|
using Microsoft.AutoGen.Agents;
|
||||||
using Microsoft.SemanticKernel;
|
using Microsoft.SemanticKernel;
|
||||||
using Microsoft.SemanticKernel.Memory;
|
using Microsoft.SemanticKernel.Memory;
|
||||||
namespace Microsoft.AI.DevTeam;
|
namespace Microsoft.AI.DevTeam;
|
||||||
|
|
|
@ -2,8 +2,8 @@ using System.Text.Json;
|
||||||
using DevTeam;
|
using DevTeam;
|
||||||
using DevTeam.Backend;
|
using DevTeam.Backend;
|
||||||
using DevTeam.Shared;
|
using DevTeam.Shared;
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
using Microsoft.AutoGen.Agents.Client;
|
using Microsoft.AutoGen.Agents;
|
||||||
using Microsoft.SemanticKernel;
|
using Microsoft.SemanticKernel;
|
||||||
using Microsoft.SemanticKernel.Memory;
|
using Microsoft.SemanticKernel.Memory;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// TODO: Reimplement using ACA Sessions
|
// TODO: Reimplement using ACA Sessions
|
||||||
// using DevTeam.Events;
|
// using DevTeam.Events;
|
||||||
// using Microsoft.AutoGen.Agents.Abstractions;
|
// using Microsoft.AutoGen.Abstractions;
|
||||||
// using Microsoft.AutoGen.Agents.Client;
|
// using Microsoft.AutoGen.Agents;
|
||||||
|
|
||||||
// namespace DevTeam.Backend;
|
// namespace DevTeam.Backend;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="../../../src/Microsoft.AutoGen.Agents/Client/Microsoft.AutoGen.Agents.Client.csproj" />
|
<ProjectReference Include="../../../src/Microsoft.AutoGen/Agents/Microsoft.AutoGen.Agents.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
@ -29,9 +29,9 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="../../../src/Microsoft.AutoGen.ServiceDefaults/Microsoft.AutoGen.ServiceDefaults.csproj" />
|
<ProjectReference Include="../../../src/Microsoft.AutoGen/ServiceDefaults/Microsoft.AutoGen.ServiceDefaults.csproj" />
|
||||||
<ProjectReference Include="..\DevTeam.Shared\DevTeam.Shared.csproj" />
|
<ProjectReference Include="..\DevTeam.Shared\DevTeam.Shared.csproj" />
|
||||||
<ProjectReference Include="..\..\..\src\Microsoft.AutoGen.Agents\Extensions\SemanticKernel\Microsoft.AutoGen.Agents.Extensions.SemanticKernel.csproj" />
|
<ProjectReference Include="..\..\..\src\Microsoft.AutoGen\Extensions\SemanticKernel\Microsoft.AutoGen.Extensions.SemanticKernel.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -2,8 +2,8 @@ using Azure.Identity;
|
||||||
using DevTeam.Backend;
|
using DevTeam.Backend;
|
||||||
using DevTeam.Options;
|
using DevTeam.Options;
|
||||||
using Microsoft.AI.DevTeam;
|
using Microsoft.AI.DevTeam;
|
||||||
using Microsoft.AutoGen.Agents.Client;
|
using Microsoft.AutoGen.Agents;
|
||||||
using Microsoft.AutoGen.Agents.Extensions.SemanticKernel;
|
using Microsoft.AutoGen.Extensions.SemanticKernel;
|
||||||
using Microsoft.Extensions.Azure;
|
using Microsoft.Extensions.Azure;
|
||||||
using Microsoft.Extensions.Options;
|
using Microsoft.Extensions.Options;
|
||||||
using Octokit.Webhooks;
|
using Octokit.Webhooks;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using DevTeam.Shared;
|
using DevTeam.Shared;
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
using Microsoft.AutoGen.Agents.Client;
|
using Microsoft.AutoGen.Agents;
|
||||||
using Octokit.Webhooks;
|
using Octokit.Webhooks;
|
||||||
using Octokit.Webhooks.Events;
|
using Octokit.Webhooks.Events;
|
||||||
using Octokit.Webhooks.Events.IssueComment;
|
using Octokit.Webhooks.Events.IssueComment;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="../../../src/Microsoft.AutoGen.Agents/Client/Microsoft.AutoGen.Agents.Client.csproj" />
|
<ProjectReference Include="../../../src/Microsoft.AutoGen/Agents/Microsoft.AutoGen.Agents.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) Microsoft. All rights reserved.
|
// Copyright (c) Microsoft. All rights reserved.
|
||||||
|
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
|
|
||||||
namespace DevTeam;
|
namespace DevTeam;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace Microsoft.AutoGen.Agents.Abstractions;
|
namespace Microsoft.AutoGen.Abstractions;
|
||||||
|
|
||||||
public class AgentState<T> where T : class, new()
|
public class AgentState<T> where T : class, new()
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace Microsoft.AutoGen.Agents.Abstractions;
|
namespace Microsoft.AutoGen.Abstractions;
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class ChatHistoryItem
|
public class ChatHistoryItem
|
|
@ -1,4 +1,4 @@
|
||||||
namespace Microsoft.AutoGen.Agents.Abstractions;
|
namespace Microsoft.AutoGen.Abstractions;
|
||||||
|
|
||||||
public enum ChatUserType
|
public enum ChatUserType
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace Microsoft.AutoGen.Agents.Abstractions;
|
namespace Microsoft.AutoGen.Abstractions;
|
||||||
|
|
||||||
public interface IAgent
|
public interface IAgent
|
||||||
{
|
{
|
|
@ -2,7 +2,7 @@
|
||||||
using Microsoft.SemanticKernel;
|
using Microsoft.SemanticKernel;
|
||||||
using Microsoft.SemanticKernel.Connectors.OpenAI;
|
using Microsoft.SemanticKernel.Connectors.OpenAI;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Abstractions;
|
namespace Microsoft.AutoGen.Abstractions;
|
||||||
|
|
||||||
public interface IAiAgent : IAgent
|
public interface IAiAgent : IAgent
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace Microsoft.AutoGen.Agents.Abstractions;
|
namespace Microsoft.AutoGen.Abstractions;
|
||||||
|
|
||||||
public interface IHandle<T>
|
public interface IHandle<T>
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
using Google.Protobuf;
|
using Google.Protobuf;
|
||||||
using Google.Protobuf.WellKnownTypes;
|
using Google.Protobuf.WellKnownTypes;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Abstractions;
|
namespace Microsoft.AutoGen.Abstractions;
|
||||||
|
|
||||||
public static class MessageExtensions
|
public static class MessageExtensions
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace Microsoft.AutoGen.Agents.Abstractions;
|
namespace Microsoft.AutoGen.Abstractions;
|
||||||
|
|
||||||
[AttributeUsage(AttributeTargets.All)]
|
[AttributeUsage(AttributeTargets.All)]
|
||||||
public class TopicSubscriptionAttribute(string topic) : Attribute
|
public class TopicSubscriptionAttribute(string topic) : Attribute
|
|
@ -3,10 +3,10 @@ using System.Text;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Threading.Channels;
|
using System.Threading.Channels;
|
||||||
using Google.Protobuf;
|
using Google.Protobuf;
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Client;
|
namespace Microsoft.AutoGen.Agents;
|
||||||
|
|
||||||
public abstract class AgentBase
|
public abstract class AgentBase
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Client;
|
namespace Microsoft.AutoGen.Agents;
|
||||||
|
|
||||||
public static class AgentBaseExtensions
|
public static class AgentBaseExtensions
|
||||||
{
|
{
|
|
@ -1,10 +1,10 @@
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using Google.Protobuf;
|
using Google.Protobuf;
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Client;
|
namespace Microsoft.AutoGen.Agents;
|
||||||
|
|
||||||
public sealed class AgentClient(ILogger<AgentClient> logger, AgentWorkerRuntime runtime, DistributedContextPropagator distributedContextPropagator,
|
public sealed class AgentClient(ILogger<AgentClient> logger, AgentWorkerRuntime runtime, DistributedContextPropagator distributedContextPropagator,
|
||||||
[FromKeyedServices("EventTypes")] EventTypes eventTypes)
|
[FromKeyedServices("EventTypes")] EventTypes eventTypes)
|
|
@ -1,8 +1,8 @@
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Client;
|
namespace Microsoft.AutoGen.Agents;
|
||||||
|
|
||||||
internal sealed class AgentContext(AgentId agentId, AgentWorkerRuntime runtime, ILogger<AgentBase> logger, DistributedContextPropagator distributedContextPropagator) : IAgentContext
|
internal sealed class AgentContext(AgentId agentId, AgentWorkerRuntime runtime, ILogger<AgentBase> logger, DistributedContextPropagator distributedContextPropagator) : IAgentContext
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using RpcAgentId = Microsoft.AutoGen.Agents.Abstractions.AgentId;
|
using RpcAgentId = Microsoft.AutoGen.Abstractions.AgentId;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Client;
|
namespace Microsoft.AutoGen.Agents;
|
||||||
|
|
||||||
public sealed record class AgentId(string Type, string Key)
|
public sealed record class AgentId(string Type, string Key)
|
||||||
{
|
{
|
|
@ -3,12 +3,12 @@ using System.Diagnostics;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Threading.Channels;
|
using System.Threading.Channels;
|
||||||
using Grpc.Core;
|
using Grpc.Core;
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Client;
|
namespace Microsoft.AutoGen.Agents;
|
||||||
|
|
||||||
public sealed class AgentWorkerRuntime : IHostedService, IDisposable, IAgentWorkerRuntime
|
public sealed class AgentWorkerRuntime : IHostedService, IDisposable, IAgentWorkerRuntime
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@ using Microsoft.SemanticKernel;
|
||||||
using Microsoft.SemanticKernel.Connectors.OpenAI;
|
using Microsoft.SemanticKernel.Connectors.OpenAI;
|
||||||
using Microsoft.SemanticKernel.Memory;
|
using Microsoft.SemanticKernel.Memory;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Client;
|
namespace Microsoft.AutoGen.Agents;
|
||||||
public abstract class AiAgent<T> : AgentBase where T : class, new()
|
public abstract class AiAgent<T> : AgentBase where T : class, new()
|
||||||
{
|
{
|
||||||
protected AgentState<T> _state;
|
protected AgentState<T> _state;
|
|
@ -1,7 +1,7 @@
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Client;
|
namespace Microsoft.AutoGen.Agents;
|
||||||
|
|
||||||
public abstract class ConsoleAgent : IOAgent<AgentState>,
|
public abstract class ConsoleAgent : IOAgent<AgentState>,
|
||||||
IUseConsole,
|
IUseConsole,
|
|
@ -1,8 +1,8 @@
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Client;
|
namespace Microsoft.AutoGen.Agents;
|
||||||
|
|
||||||
[TopicSubscription("FileIO")]
|
[TopicSubscription("FileIO")]
|
||||||
public abstract class FileAgent(
|
public abstract class FileAgent(
|
|
@ -1,6 +1,6 @@
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Client;
|
namespace Microsoft.AutoGen.Agents;
|
||||||
|
|
||||||
public abstract class IOAgent<T> : AgentBase where T : class, new()
|
public abstract class IOAgent<T> : AgentBase where T : class, new()
|
||||||
{
|
{
|
|
@ -1,10 +1,10 @@
|
||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Client;
|
namespace Microsoft.AutoGen.Agents;
|
||||||
|
|
||||||
public abstract class WebAPIAgent : IOAgent<AgentState>,
|
public abstract class WebAPIAgent : IOAgent<AgentState>,
|
||||||
IUseWebAPI,
|
IUseWebAPI,
|
|
@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Client;
|
namespace Microsoft.AutoGen.Agents;
|
||||||
|
|
||||||
public static class App
|
public static class App
|
||||||
{
|
{
|
|
@ -5,12 +5,12 @@ using Google.Protobuf;
|
||||||
using Google.Protobuf.Reflection;
|
using Google.Protobuf.Reflection;
|
||||||
using Grpc.Core;
|
using Grpc.Core;
|
||||||
using Grpc.Net.Client.Configuration;
|
using Grpc.Net.Client.Configuration;
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.DependencyInjection.Extensions;
|
using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Client;
|
namespace Microsoft.AutoGen.Agents;
|
||||||
|
|
||||||
public static class HostBuilderExtensions
|
public static class HostBuilderExtensions
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Client;
|
namespace Microsoft.AutoGen.Agents;
|
||||||
|
|
||||||
public interface IAgentContext
|
public interface IAgentContext
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
// Copyright (c) Microsoft. All rights reserved.
|
// Copyright (c) Microsoft. All rights reserved.
|
||||||
|
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Client;
|
namespace Microsoft.AutoGen.Agents;
|
||||||
public interface IAgentWorkerRuntime
|
public interface IAgentWorkerRuntime
|
||||||
{
|
{
|
||||||
ValueTask PublishEvent(CloudEvent evt);
|
ValueTask PublishEvent(CloudEvent evt);
|
|
@ -12,8 +12,8 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="../Abstractions/Microsoft.AutoGen.Agents.Abstractions.csproj" />
|
<ProjectReference Include="../Abstractions/Microsoft.AutoGen.Abstractions.csproj" />
|
||||||
<ProjectReference Include="..\Runtime\Microsoft.AutoGen.Agents.Runtime.csproj" />
|
<ProjectReference Include="..\Runtime\Microsoft.AutoGen.Runtime.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
|
@ -1,8 +1,8 @@
|
||||||
using Google.Protobuf;
|
using Google.Protobuf;
|
||||||
using Google.Protobuf.WellKnownTypes;
|
using Google.Protobuf.WellKnownTypes;
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Runtime;
|
namespace Microsoft.AutoGen.Runtime;
|
||||||
|
|
||||||
public static class CloudEventExtensions
|
public static class CloudEventExtensions
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="../../../Microsoft.AutoGen.Agents/Client/Microsoft.AutoGen.Agents.Client.csproj" />
|
<ProjectReference Include="../../Agents/Microsoft.AutoGen.Agents.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
|
@ -2,7 +2,7 @@ syntax = "proto3";
|
||||||
|
|
||||||
package devteam;
|
package devteam;
|
||||||
|
|
||||||
option csharp_namespace = "Microsoft.AutoGen.Agents.Extensions.CloudEvents";
|
option csharp_namespace = "Microsoft.AutoGen.Extensions.CloudEvents";
|
||||||
|
|
||||||
message CloudEventsState {
|
message CloudEventsState {
|
||||||
string cloudevent = 1;
|
string cloudevent = 1;
|
|
@ -1,7 +1,7 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="../../../Microsoft.AutoGen.Agents/Client/Microsoft.AutoGen.Agents.Client.csproj" />
|
<ProjectReference Include="../../Agents/Microsoft.AutoGen.Agents.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
|
@ -1,6 +1,6 @@
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Extensions.SemanticKernel;
|
namespace Microsoft.AutoGen.Extensions.SemanticKernel;
|
||||||
|
|
||||||
public class OpenAIOptions
|
public class OpenAIOptions
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Extensions.SemanticKernel;
|
namespace Microsoft.AutoGen.Extensions.SemanticKernel;
|
||||||
public class QdrantOptions
|
public class QdrantOptions
|
||||||
{
|
{
|
||||||
[Required]
|
[Required]
|
|
@ -12,7 +12,7 @@ using Microsoft.SemanticKernel.Connectors.OpenAI;
|
||||||
using Microsoft.SemanticKernel.Connectors.Qdrant;
|
using Microsoft.SemanticKernel.Connectors.Qdrant;
|
||||||
using Microsoft.SemanticKernel.Memory;
|
using Microsoft.SemanticKernel.Memory;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Extensions.SemanticKernel;
|
namespace Microsoft.AutoGen.Extensions.SemanticKernel;
|
||||||
public static class SemanticKernelHostingExtensions
|
public static class SemanticKernelHostingExtensions
|
||||||
{
|
{
|
||||||
public static IHostApplicationBuilder ConfigureSemanticKernel(this IHostApplicationBuilder builder)
|
public static IHostApplicationBuilder ConfigureSemanticKernel(this IHostApplicationBuilder builder)
|
|
@ -1,4 +1,4 @@
|
||||||
namespace Microsoft.AutoGen.Agents.Runtime;
|
namespace Microsoft.AutoGen.Runtime;
|
||||||
|
|
||||||
internal sealed class AgentStateGrain([PersistentState("state", "agent-state")] IPersistentState<Dictionary<string, object>> state) : Grain, IAgentStateGrain
|
internal sealed class AgentStateGrain([PersistentState("state", "agent-state")] IPersistentState<Dictionary<string, object>> state) : Grain, IAgentStateGrain
|
||||||
{
|
{
|
|
@ -7,7 +7,7 @@ using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
using Orleans.Serialization;
|
using Orleans.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Runtime;
|
namespace Microsoft.AutoGen.Runtime;
|
||||||
|
|
||||||
public static class AgentWorkerHostingExtensions
|
public static class AgentWorkerHostingExtensions
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Runtime;
|
namespace Microsoft.AutoGen.Runtime;
|
||||||
|
|
||||||
public sealed class AgentWorkerRegistryGrain : Grain, IAgentWorkerRegistryGrain
|
public sealed class AgentWorkerRegistryGrain : Grain, IAgentWorkerRegistryGrain
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Runtime;
|
namespace Microsoft.AutoGen.Runtime;
|
||||||
|
|
||||||
public static class Host
|
public static class Host
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace Microsoft.AutoGen.Agents.Runtime;
|
namespace Microsoft.AutoGen.Runtime;
|
||||||
|
|
||||||
internal interface IAgentStateGrain : IGrainWithStringKey
|
internal interface IAgentStateGrain : IGrainWithStringKey
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Runtime;
|
namespace Microsoft.AutoGen.Runtime;
|
||||||
|
|
||||||
public interface IAgentWorkerRegistryGrain : IGrainWithIntegerKey
|
public interface IAgentWorkerRegistryGrain : IGrainWithIntegerKey
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Runtime;
|
namespace Microsoft.AutoGen.Runtime;
|
||||||
|
|
||||||
public interface IWorkerGateway : IGrainObserver
|
public interface IWorkerGateway : IGrainObserver
|
||||||
{
|
{
|
|
@ -13,8 +13,8 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Abstractions\Microsoft.AutoGen.Agents.Abstractions.csproj" />
|
<ProjectReference Include="..\Abstractions\Microsoft.AutoGen.Abstractions.csproj" />
|
||||||
<ProjectReference Include="..\..\Microsoft.AutoGen.ServiceDefaults\Microsoft.AutoGen.ServiceDefaults.csproj" />
|
<ProjectReference Include="..\ServiceDefaults\Microsoft.AutoGen.ServiceDefaults.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
|
@ -1,10 +1,10 @@
|
||||||
using System.Collections.Concurrent;
|
using System.Collections.Concurrent;
|
||||||
using Grpc.Core;
|
using Grpc.Core;
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Runtime;
|
namespace Microsoft.AutoGen.Runtime;
|
||||||
|
|
||||||
internal sealed class WorkerGateway : BackgroundService, IWorkerGateway
|
internal sealed class WorkerGateway : BackgroundService, IWorkerGateway
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
using Grpc.Core;
|
using Grpc.Core;
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Runtime;
|
namespace Microsoft.AutoGen.Runtime;
|
||||||
|
|
||||||
// gRPC service which handles communication between the agent worker and the cluster.
|
// gRPC service which handles communication between the agent worker and the cluster.
|
||||||
internal sealed class WorkerGatewayService(WorkerGateway agentWorker) : AgentRpc.AgentRpcBase
|
internal sealed class WorkerGatewayService(WorkerGateway agentWorker) : AgentRpc.AgentRpcBase
|
|
@ -1,8 +1,8 @@
|
||||||
using System.Threading.Channels;
|
using System.Threading.Channels;
|
||||||
using Grpc.Core;
|
using Grpc.Core;
|
||||||
using Microsoft.AutoGen.Agents.Abstractions;
|
using Microsoft.AutoGen.Abstractions;
|
||||||
|
|
||||||
namespace Microsoft.AutoGen.Agents.Runtime;
|
namespace Microsoft.AutoGen.Runtime;
|
||||||
|
|
||||||
internal sealed class WorkerProcessConnection : IAsyncDisposable
|
internal sealed class WorkerProcessConnection : IAsyncDisposable
|
||||||
{
|
{
|
|
@ -2,7 +2,7 @@ syntax = "proto3";
|
||||||
|
|
||||||
package agents;
|
package agents;
|
||||||
|
|
||||||
option csharp_namespace = "Microsoft.AutoGen.Agents.Abstractions";
|
option csharp_namespace = "Microsoft.AutoGen.Abstractions";
|
||||||
|
|
||||||
message Input {
|
message Input {
|
||||||
string message = 1;
|
string message = 1;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
package agents;
|
package agents;
|
||||||
|
|
||||||
option csharp_namespace = "Microsoft.AutoGen.Agents.Abstractions";
|
option csharp_namespace = "Microsoft.AutoGen.Abstractions";
|
||||||
|
|
||||||
message AgentState {
|
message AgentState {
|
||||||
string message = 1;
|
string message = 1;
|
||||||
|
|
|
@ -2,7 +2,7 @@ syntax = "proto3";
|
||||||
|
|
||||||
package agents;
|
package agents;
|
||||||
|
|
||||||
option csharp_namespace = "Microsoft.AutoGen.Agents.Abstractions";
|
option csharp_namespace = "Microsoft.AutoGen.Abstractions";
|
||||||
|
|
||||||
import "cloudevent.proto";
|
import "cloudevent.proto";
|
||||||
import "google/protobuf/any.proto";
|
import "google/protobuf/any.proto";
|
||||||
|
|
|
@ -5,7 +5,7 @@ package cloudevent;
|
||||||
import "google/protobuf/any.proto";
|
import "google/protobuf/any.proto";
|
||||||
import "google/protobuf/timestamp.proto";
|
import "google/protobuf/timestamp.proto";
|
||||||
|
|
||||||
option csharp_namespace = "Microsoft.AutoGen.Agents.Abstractions";
|
option csharp_namespace = "Microsoft.AutoGen.Abstractions";
|
||||||
|
|
||||||
|
|
||||||
message CloudEvent {
|
message CloudEvent {
|
||||||
|
|
|
@ -16,14 +16,14 @@ import cloudevent_pb2 as cloudevent__pb2
|
||||||
from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
|
from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12\x61gent_worker.proto\x12\x06\x61gents\x1a\x10\x63loudevent.proto\x1a\x19google/protobuf/any.proto\"\'\n\x07TopicId\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\"$\n\x07\x41gentId\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\"E\n\x07Payload\x12\x11\n\tdata_type\x18\x01 \x01(\t\x12\x19\n\x11\x64\x61ta_content_type\x18\x02 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\"\x89\x02\n\nRpcRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12$\n\x06source\x18\x02 \x01(\x0b\x32\x0f.agents.AgentIdH\x00\x88\x01\x01\x12\x1f\n\x06target\x18\x03 \x01(\x0b\x32\x0f.agents.AgentId\x12\x0e\n\x06method\x18\x04 \x01(\t\x12 \n\x07payload\x18\x05 \x01(\x0b\x32\x0f.agents.Payload\x12\x32\n\x08metadata\x18\x06 \x03(\x0b\x32 .agents.RpcRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07_source\"\xb8\x01\n\x0bRpcResponse\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12 \n\x07payload\x18\x02 \x01(\x0b\x32\x0f.agents.Payload\x12\r\n\x05\x65rror\x18\x03 \x01(\t\x12\x33\n\x08metadata\x18\x04 \x03(\x0b\x32!.agents.RpcResponse.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe4\x01\n\x05\x45vent\x12\x12\n\ntopic_type\x18\x01 \x01(\t\x12\x14\n\x0ctopic_source\x18\x02 \x01(\t\x12$\n\x06source\x18\x03 \x01(\x0b\x32\x0f.agents.AgentIdH\x00\x88\x01\x01\x12 \n\x07payload\x18\x04 \x01(\x0b\x32\x0f.agents.Payload\x12-\n\x08metadata\x18\x05 \x03(\x0b\x32\x1b.agents.Event.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07_source\"<\n\x18RegisterAgentTypeRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\"^\n\x19RegisterAgentTypeResponse\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12\x12\n\x05\x65rror\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_error\":\n\x10TypeSubscription\x12\x12\n\ntopic_type\x18\x01 \x01(\t\x12\x12\n\nagent_type\x18\x02 \x01(\t\"T\n\x0cSubscription\x12\x34\n\x10typeSubscription\x18\x01 \x01(\x0b\x32\x18.agents.TypeSubscriptionH\x00\x42\x0e\n\x0csubscription\"X\n\x16\x41\x64\x64SubscriptionRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12*\n\x0csubscription\x18\x02 \x01(\x0b\x32\x14.agents.Subscription\"\\\n\x17\x41\x64\x64SubscriptionResponse\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12\x12\n\x05\x65rror\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_error\"\xc6\x03\n\x07Message\x12%\n\x07request\x18\x01 \x01(\x0b\x32\x12.agents.RpcRequestH\x00\x12\'\n\x08response\x18\x02 \x01(\x0b\x32\x13.agents.RpcResponseH\x00\x12\x1e\n\x05\x65vent\x18\x03 \x01(\x0b\x32\r.agents.EventH\x00\x12\x44\n\x18registerAgentTypeRequest\x18\x04 \x01(\x0b\x32 .agents.RegisterAgentTypeRequestH\x00\x12\x46\n\x19registerAgentTypeResponse\x18\x05 \x01(\x0b\x32!.agents.RegisterAgentTypeResponseH\x00\x12@\n\x16\x61\x64\x64SubscriptionRequest\x18\x06 \x01(\x0b\x32\x1e.agents.AddSubscriptionRequestH\x00\x12\x42\n\x17\x61\x64\x64SubscriptionResponse\x18\x07 \x01(\x0b\x32\x1f.agents.AddSubscriptionResponseH\x00\x12,\n\ncloudEvent\x18\x08 \x01(\x0b\x32\x16.cloudevent.CloudEventH\x00\x42\t\n\x07message2?\n\x08\x41gentRpc\x12\x33\n\x0bOpenChannel\x12\x0f.agents.Message\x1a\x0f.agents.Message(\x01\x30\x01\x42(\xaa\x02%Microsoft.AutoGen.Agents.Abstractionsb\x06proto3')
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12\x61gent_worker.proto\x12\x06\x61gents\x1a\x10\x63loudevent.proto\x1a\x19google/protobuf/any.proto\"\'\n\x07TopicId\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\"$\n\x07\x41gentId\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\"E\n\x07Payload\x12\x11\n\tdata_type\x18\x01 \x01(\t\x12\x19\n\x11\x64\x61ta_content_type\x18\x02 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\"\x89\x02\n\nRpcRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12$\n\x06source\x18\x02 \x01(\x0b\x32\x0f.agents.AgentIdH\x00\x88\x01\x01\x12\x1f\n\x06target\x18\x03 \x01(\x0b\x32\x0f.agents.AgentId\x12\x0e\n\x06method\x18\x04 \x01(\t\x12 \n\x07payload\x18\x05 \x01(\x0b\x32\x0f.agents.Payload\x12\x32\n\x08metadata\x18\x06 \x03(\x0b\x32 .agents.RpcRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07_source\"\xb8\x01\n\x0bRpcResponse\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12 \n\x07payload\x18\x02 \x01(\x0b\x32\x0f.agents.Payload\x12\r\n\x05\x65rror\x18\x03 \x01(\t\x12\x33\n\x08metadata\x18\x04 \x03(\x0b\x32!.agents.RpcResponse.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe4\x01\n\x05\x45vent\x12\x12\n\ntopic_type\x18\x01 \x01(\t\x12\x14\n\x0ctopic_source\x18\x02 \x01(\t\x12$\n\x06source\x18\x03 \x01(\x0b\x32\x0f.agents.AgentIdH\x00\x88\x01\x01\x12 \n\x07payload\x18\x04 \x01(\x0b\x32\x0f.agents.Payload\x12-\n\x08metadata\x18\x05 \x03(\x0b\x32\x1b.agents.Event.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07_source\"<\n\x18RegisterAgentTypeRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\"^\n\x19RegisterAgentTypeResponse\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12\x12\n\x05\x65rror\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_error\":\n\x10TypeSubscription\x12\x12\n\ntopic_type\x18\x01 \x01(\t\x12\x12\n\nagent_type\x18\x02 \x01(\t\"T\n\x0cSubscription\x12\x34\n\x10typeSubscription\x18\x01 \x01(\x0b\x32\x18.agents.TypeSubscriptionH\x00\x42\x0e\n\x0csubscription\"X\n\x16\x41\x64\x64SubscriptionRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12*\n\x0csubscription\x18\x02 \x01(\x0b\x32\x14.agents.Subscription\"\\\n\x17\x41\x64\x64SubscriptionResponse\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12\x12\n\x05\x65rror\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_error\"\xc6\x03\n\x07Message\x12%\n\x07request\x18\x01 \x01(\x0b\x32\x12.agents.RpcRequestH\x00\x12\'\n\x08response\x18\x02 \x01(\x0b\x32\x13.agents.RpcResponseH\x00\x12\x1e\n\x05\x65vent\x18\x03 \x01(\x0b\x32\r.agents.EventH\x00\x12\x44\n\x18registerAgentTypeRequest\x18\x04 \x01(\x0b\x32 .agents.RegisterAgentTypeRequestH\x00\x12\x46\n\x19registerAgentTypeResponse\x18\x05 \x01(\x0b\x32!.agents.RegisterAgentTypeResponseH\x00\x12@\n\x16\x61\x64\x64SubscriptionRequest\x18\x06 \x01(\x0b\x32\x1e.agents.AddSubscriptionRequestH\x00\x12\x42\n\x17\x61\x64\x64SubscriptionResponse\x18\x07 \x01(\x0b\x32\x1f.agents.AddSubscriptionResponseH\x00\x12,\n\ncloudEvent\x18\x08 \x01(\x0b\x32\x16.cloudevent.CloudEventH\x00\x42\t\n\x07message2?\n\x08\x41gentRpc\x12\x33\n\x0bOpenChannel\x12\x0f.agents.Message\x1a\x0f.agents.Message(\x01\x30\x01\x42!\xaa\x02\x1eMicrosoft.AutoGen.Abstractionsb\x06proto3')
|
||||||
|
|
||||||
_globals = globals()
|
_globals = globals()
|
||||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'agent_worker_pb2', _globals)
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'agent_worker_pb2', _globals)
|
||||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||||
_globals['DESCRIPTOR']._options = None
|
_globals['DESCRIPTOR']._options = None
|
||||||
_globals['DESCRIPTOR']._serialized_options = b'\252\002%Microsoft.AutoGen.Agents.Abstractions'
|
_globals['DESCRIPTOR']._serialized_options = b'\252\002\036Microsoft.AutoGen.Abstractions'
|
||||||
_globals['_RPCREQUEST_METADATAENTRY']._options = None
|
_globals['_RPCREQUEST_METADATAENTRY']._options = None
|
||||||
_globals['_RPCREQUEST_METADATAENTRY']._serialized_options = b'8\001'
|
_globals['_RPCREQUEST_METADATAENTRY']._serialized_options = b'8\001'
|
||||||
_globals['_RPCRESPONSE_METADATAENTRY']._options = None
|
_globals['_RPCRESPONSE_METADATAENTRY']._options = None
|
||||||
|
|
|
@ -16,14 +16,14 @@ from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
|
||||||
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10\x63loudevent.proto\x12\ncloudevent\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8b\x05\n\nCloudEvent\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x14\n\x0cspec_version\x18\x03 \x01(\t\x12\x0c\n\x04type\x18\x04 \x01(\t\x12:\n\nattributes\x18\x05 \x03(\x0b\x32&.cloudevent.CloudEvent.AttributesEntry\x12\x36\n\x08metadata\x18\x06 \x03(\x0b\x32$.cloudevent.CloudEvent.MetadataEntry\x12\x15\n\x0b\x62inary_data\x18\x07 \x01(\x0cH\x00\x12\x13\n\ttext_data\x18\x08 \x01(\tH\x00\x12*\n\nproto_data\x18\t \x01(\x0b\x32\x14.google.protobuf.AnyH\x00\x1a\x62\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.cloudevent.CloudEvent.CloudEventAttributeValue:\x02\x38\x01\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\xd3\x01\n\x18\x43loudEventAttributeValue\x12\x14\n\nce_boolean\x18\x01 \x01(\x08H\x00\x12\x14\n\nce_integer\x18\x02 \x01(\x05H\x00\x12\x13\n\tce_string\x18\x03 \x01(\tH\x00\x12\x12\n\x08\x63\x65_bytes\x18\x04 \x01(\x0cH\x00\x12\x10\n\x06\x63\x65_uri\x18\x05 \x01(\tH\x00\x12\x14\n\nce_uri_ref\x18\x06 \x01(\tH\x00\x12\x32\n\x0c\x63\x65_timestamp\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x42\x06\n\x04\x61ttrB\x06\n\x04\x64\x61taB(\xaa\x02%Microsoft.AutoGen.Agents.Abstractionsb\x06proto3')
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10\x63loudevent.proto\x12\ncloudevent\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8b\x05\n\nCloudEvent\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x14\n\x0cspec_version\x18\x03 \x01(\t\x12\x0c\n\x04type\x18\x04 \x01(\t\x12:\n\nattributes\x18\x05 \x03(\x0b\x32&.cloudevent.CloudEvent.AttributesEntry\x12\x36\n\x08metadata\x18\x06 \x03(\x0b\x32$.cloudevent.CloudEvent.MetadataEntry\x12\x15\n\x0b\x62inary_data\x18\x07 \x01(\x0cH\x00\x12\x13\n\ttext_data\x18\x08 \x01(\tH\x00\x12*\n\nproto_data\x18\t \x01(\x0b\x32\x14.google.protobuf.AnyH\x00\x1a\x62\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.cloudevent.CloudEvent.CloudEventAttributeValue:\x02\x38\x01\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\xd3\x01\n\x18\x43loudEventAttributeValue\x12\x14\n\nce_boolean\x18\x01 \x01(\x08H\x00\x12\x14\n\nce_integer\x18\x02 \x01(\x05H\x00\x12\x13\n\tce_string\x18\x03 \x01(\tH\x00\x12\x12\n\x08\x63\x65_bytes\x18\x04 \x01(\x0cH\x00\x12\x10\n\x06\x63\x65_uri\x18\x05 \x01(\tH\x00\x12\x14\n\nce_uri_ref\x18\x06 \x01(\tH\x00\x12\x32\n\x0c\x63\x65_timestamp\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x42\x06\n\x04\x61ttrB\x06\n\x04\x64\x61taB!\xaa\x02\x1eMicrosoft.AutoGen.Abstractionsb\x06proto3')
|
||||||
|
|
||||||
_globals = globals()
|
_globals = globals()
|
||||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cloudevent_pb2', _globals)
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cloudevent_pb2', _globals)
|
||||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||||
_globals['DESCRIPTOR']._options = None
|
_globals['DESCRIPTOR']._options = None
|
||||||
_globals['DESCRIPTOR']._serialized_options = b'\252\002%Microsoft.AutoGen.Agents.Abstractions'
|
_globals['DESCRIPTOR']._serialized_options = b'\252\002\036Microsoft.AutoGen.Abstractions'
|
||||||
_globals['_CLOUDEVENT_ATTRIBUTESENTRY']._options = None
|
_globals['_CLOUDEVENT_ATTRIBUTESENTRY']._options = None
|
||||||
_globals['_CLOUDEVENT_ATTRIBUTESENTRY']._serialized_options = b'8\001'
|
_globals['_CLOUDEVENT_ATTRIBUTESENTRY']._serialized_options = b'8\001'
|
||||||
_globals['_CLOUDEVENT_METADATAENTRY']._options = None
|
_globals['_CLOUDEVENT_METADATAENTRY']._options = None
|
||||||
|
|
Loading…
Reference in New Issue