From 093c1094e720449954e659127d3f353a503b102b Mon Sep 17 00:00:00 2001 From: Ryan Sweet Date: Sat, 16 Nov 2024 14:08:11 -0800 Subject: [PATCH] format - not sure why these? --- dotnet/src/Microsoft.AutoGen/Agents/AgentBase.cs | 2 +- .../Microsoft.AutoGen/Agents/Services/Grpc/GrpcAgentWorker.cs | 2 +- .../Agents/Services/Orleans/iSubscriptionsGrain.cs | 2 +- dotnet/test/Microsoft.AutoGen.Agents.Tests/GrpcGatewayTests.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dotnet/src/Microsoft.AutoGen/Agents/AgentBase.cs b/dotnet/src/Microsoft.AutoGen/Agents/AgentBase.cs index 72d36ade6a80..13b2e851969e 100644 --- a/dotnet/src/Microsoft.AutoGen/Agents/AgentBase.cs +++ b/dotnet/src/Microsoft.AutoGen/Agents/AgentBase.cs @@ -132,7 +132,7 @@ public List Subscribe(string topic) } }; _context.SendMessageAsync(message).AsTask().Wait(); - + return new List { topic }; } public async Task StoreAsync(AgentState state, CancellationToken cancellationToken = default) diff --git a/dotnet/src/Microsoft.AutoGen/Agents/Services/Grpc/GrpcAgentWorker.cs b/dotnet/src/Microsoft.AutoGen/Agents/Services/Grpc/GrpcAgentWorker.cs index d7036994a44c..4fc9e5a4c57d 100644 --- a/dotnet/src/Microsoft.AutoGen/Agents/Services/Grpc/GrpcAgentWorker.cs +++ b/dotnet/src/Microsoft.AutoGen/Agents/Services/Grpc/GrpcAgentWorker.cs @@ -84,7 +84,7 @@ private async Task RunReadPump() throw new InvalidOperationException($"Failed to register agent: '{message.RegisterAgentTypeResponse.Error}'."); } break; - + case Message.MessageOneofCase.AddSubscriptionResponse: if (!message.AddSubscriptionResponse.Success) { diff --git a/dotnet/src/Microsoft.AutoGen/Agents/Services/Orleans/iSubscriptionsGrain.cs b/dotnet/src/Microsoft.AutoGen/Agents/Services/Orleans/iSubscriptionsGrain.cs index d012d3f4b688..9b3157931ae4 100644 --- a/dotnet/src/Microsoft.AutoGen/Agents/Services/Orleans/iSubscriptionsGrain.cs +++ b/dotnet/src/Microsoft.AutoGen/Agents/Services/Orleans/iSubscriptionsGrain.cs @@ -7,4 +7,4 @@ public interface ISubscriptionsGrain : IGrainWithIntegerKey ValueTask Subscribe(string agentType, string topic); ValueTask Unsubscribe(string agentType, string topic); ValueTask>> GetSubscriptions(string agentType); -} \ No newline at end of file +} diff --git a/dotnet/test/Microsoft.AutoGen.Agents.Tests/GrpcGatewayTests.cs b/dotnet/test/Microsoft.AutoGen.Agents.Tests/GrpcGatewayTests.cs index 42ec3912b229..007bdf764525 100644 --- a/dotnet/test/Microsoft.AutoGen.Agents.Tests/GrpcGatewayTests.cs +++ b/dotnet/test/Microsoft.AutoGen.Agents.Tests/GrpcGatewayTests.cs @@ -61,4 +61,4 @@ private async ValueTask SendSubscriptionRequestAsync(CancellationToken cancellat await Context.SendMessageAsync(request, cancellationToken).ConfigureAwait(false); } } -} \ No newline at end of file +}