Skip to content

A programming framework for agentic AI

nullable return

Jack Gerritsc5a319e90630
diff --git a/dotnet/src/Microsoft.AutoGen/Contracts/PythonEquiv/IAgent.cs b/dotnet/src/Microsoft.AutoGen/Contracts/PythonEquiv/IAgent.cs
index 36fd4a36c..65b99dc85 100644
--- a/dotnet/src/Microsoft.AutoGen/Contracts/PythonEquiv/IAgent.cs
+++ b/dotnet/src/Microsoft.AutoGen/Contracts/PythonEquiv/IAgent.cs
@@ -8,7 +8,7 @@ public interface IAgent : ISaveState<IAgent>
public AgentId Id { get; }
public AgentMetadata Metadata { get; }
- public ValueTask<object> OnMessageAsync(object message, MessageContext messageContext); // TODO: How do we express this properly in .NET?
+ public ValueTask<object?> OnMessageAsync(object message, MessageContext messageContext); // TODO: How do we express this properly in .NET?
}
public interface IHostableAgent : IAgent