From 2a1c8ea1a3203942fdd1295fc0a951fe834ac5c0 Mon Sep 17 00:00:00 2001
From: Roger Barreto <19890735+RogerBarreto@users.noreply.github.com>
Date: Mon, 9 Jun 2025 12:33:27 +0100
Subject: [PATCH] Adding nuget.config + Small Async fix (#62)
* Async fix
* Fix warnings
---
dotnet/nuget.config | 7 +++++++
dotnet/src/Microsoft.Agents.Abstractions/Agent.cs | 2 +-
.../Microsoft.Agents.Abstractions.UnitTests/AgentTests.cs | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
create mode 100644 dotnet/nuget.config
diff --git a/dotnet/nuget.config b/dotnet/nuget.config
new file mode 100644
index 0000000000..996a924ac0
--- /dev/null
+++ b/dotnet/nuget.config
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/dotnet/src/Microsoft.Agents.Abstractions/Agent.cs b/dotnet/src/Microsoft.Agents.Abstractions/Agent.cs
index 7f2a17b23c..6fbd00add8 100644
--- a/dotnet/src/Microsoft.Agents.Abstractions/Agent.cs
+++ b/dotnet/src/Microsoft.Agents.Abstractions/Agent.cs
@@ -46,7 +46,7 @@ public abstract class Agent
/// If an agent supports multiple thread types, this method should return the default thread
/// type for the agent or whatever the agent was configured to use.
///
- public abstract AgentThread CreateThreadAsync();
+ public abstract Task CreateThreadAsync();
///
/// Run the agent with no message assuming that all required instructions are already provided to the agent or on the thread.
diff --git a/dotnet/tests/Microsoft.Agents.Abstractions.UnitTests/AgentTests.cs b/dotnet/tests/Microsoft.Agents.Abstractions.UnitTests/AgentTests.cs
index 5f51c5beb7..b0347c9491 100644
--- a/dotnet/tests/Microsoft.Agents.Abstractions.UnitTests/AgentTests.cs
+++ b/dotnet/tests/Microsoft.Agents.Abstractions.UnitTests/AgentTests.cs
@@ -259,7 +259,7 @@ public class AgentTests
cancellationToken);
}
- public override AgentThread CreateThreadAsync()
+ public override Task CreateThreadAsync()
{
throw new System.NotImplementedException();
}