Skip to content

Commit

Permalink
refactor: Move IHandle<> to Microsoft.Autogen.Contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
lokitoth committed Jan 30, 2025
1 parent 15c2146 commit 332515e
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions dotnet/samples/dev-team/DevTeam.Backend/Agents/AzureGenie.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// AzureGenie.cs

using DevTeam.Backend.Services;
using Microsoft.AutoGen.Contracts;
using Microsoft.AutoGen.Core;

namespace DevTeam.Backend.Agents;

[TopicSubscription(Consts.TopicName)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Developer.cs

using DevTeam.Agents;
using Microsoft.AutoGen.Contracts;
using Microsoft.AutoGen.Core;

namespace DevTeam.Backend.Agents.Developer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// DeveloperLead.cs

using DevTeam.Agents;
using Microsoft.AutoGen.Contracts;
using Microsoft.AutoGen.Core;

namespace DevTeam.Backend.Agents.DeveloperLead;
Expand Down
1 change: 1 addition & 0 deletions dotnet/samples/dev-team/DevTeam.Backend/Agents/Hubber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

using System.Text.Json;
using DevTeam.Backend.Services;
using Microsoft.AutoGen.Contracts;
using Microsoft.AutoGen.Core;

namespace DevTeam.Backend.Agents;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// ProductManager.cs

using DevTeam.Agents;
using Microsoft.AutoGen.Contracts;
using Microsoft.AutoGen.Core;

namespace DevTeam.Backend.Agents.ProductManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// IHandle.cs

using Microsoft.AutoGen.Contracts;

namespace Microsoft.AutoGen.Core;
namespace Microsoft.AutoGen.Contracts;

/// <summary>
/// Defines a handler interface for processing items of type <typeparamref name="T"/>.
Expand Down
1 change: 1 addition & 0 deletions dotnet/src/Microsoft.AutoGen/Core/HandlerInvoker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

using System.Diagnostics;
using System.Reflection;

using Microsoft.AutoGen.Contracts;

namespace Microsoft.AutoGen.Core;
Expand Down
2 changes: 2 additions & 0 deletions dotnet/src/Microsoft.AutoGen/Core/IHandleExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

using System.Reflection;

using Microsoft.AutoGen.Contracts;

namespace Microsoft.AutoGen.Core;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// TestAgent.cs

using System.Collections.Concurrent;
using Microsoft.AutoGen.Contracts;
using Microsoft.AutoGen.Core;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
Expand Down

0 comments on commit 332515e

Please sign in to comment.