Skip to content

Commit

Permalink
run dotnet format
Browse files Browse the repository at this point in the history
  • Loading branch information
rysweet committed Oct 8, 2024
1 parent d2bbb6a commit 84dfbcf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dotnet/samples/Hello/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ public async Task<string> SayHello(string ask)
public interface ISayHello
{
public Task<string> SayHello(string ask);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ namespace Microsoft.AutoGen.Agents.Client;

[TopicSubscription("FileIO")]
public abstract class FileAgent(
IAgentContext context,
[FromKeyedServices("EventTypes")] EventTypes typeRegistry,
IAgentContext context,
[FromKeyedServices("EventTypes")] EventTypes typeRegistry,
string inputPath = "input.txt",
string outputPath = "output.txt"
) : IOAgent<AgentState>(context, typeRegistry),
Expand Down
4 changes: 2 additions & 2 deletions dotnet/src/Microsoft.AutoGen.Agents.Client/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static async ValueTask<WebApplication> StartAsync(AgentTypes? agentTypes
}

public static async ValueTask<WebApplication> PublishMessageAsync(
string topic,
string topic,
IMessage message,
AgentTypes? agentTypes = null,
bool local = false)
Expand All @@ -50,4 +50,4 @@ public static async ValueTask ShutdownAsync()
await RuntimeApp!.StopAsync();
await ClientApp.StopAsync();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public sealed class AgentTypes(Dictionary<string, Type> types)
{
var agents = AppDomain.CurrentDomain.GetAssemblies()
.SelectMany(assembly => assembly.GetTypes())
.Where(type => ReflectionHelper.IsSubclassOfGeneric(type, typeof(AgentBase))
.Where(type => ReflectionHelper.IsSubclassOfGeneric(type, typeof(AgentBase))
&& !type.IsAbstract
&& !type.Name.Equals("AgentClient"))
.ToDictionary(type => type.Name, type => type);
Expand Down
2 changes: 1 addition & 1 deletion dotnet/src/Microsoft.AutoGen.Agents.Runtime/Host.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ public static async Task<WebApplication> StartAsync(bool local = false)
await app.StartAsync().ConfigureAwait(false);
return app;
}
}
}

0 comments on commit 84dfbcf

Please sign in to comment.