A programming framework for agentic AI
fix comment and agentProxy -- build succeeds
Griffin Bassmane006240676b7
diff --git a/dotnet/src/Microsoft.AutoGen/Contracts/PythonEquiv/AgentProxy.cs b/dotnet/src/Microsoft.AutoGen/Contracts/PythonEquiv/AgentProxy.csindex dba6d2207..e5191ec9d 100644--- a/dotnet/src/Microsoft.AutoGen/Contracts/PythonEquiv/AgentProxy.cs+++ b/dotnet/src/Microsoft.AutoGen/Contracts/PythonEquiv/AgentProxy.cs@@ -57,7 +57,7 @@ public class AgentProxy(AgentId agentId, IAgentRuntime runtime)/// <returns>A task representing the asynchronous operation.</returns>public ValueTask LoadStateAsync(IDictionary<string, object> state){- return this.runtime.LoadAgentStateAsync(state);+ return this.runtime.LoadAgentStateAsync(this.Id, state);}/// <summary>@@ -66,6 +66,6 @@ public class AgentProxy(AgentId agentId, IAgentRuntime runtime)/// <returns>A task representing the asynchronous operation, returning a dictionary containing the saved state.</returns>public ValueTask<IDictionary<string, object>> SaveStateAsync(){- return this.runtime.SaveAgentStateAsync();+ return this.runtime.SaveAgentStateAsync(this.Id);}}diff --git a/dotnet/src/Microsoft.AutoGen/Contracts/PythonEquiv/IAgentRuntime.cs b/dotnet/src/Microsoft.AutoGen/Contracts/PythonEquiv/IAgentRuntime.csindex a9d958fa4..95a118d4b 100644--- a/dotnet/src/Microsoft.AutoGen/Contracts/PythonEquiv/IAgentRuntime.cs+++ b/dotnet/src/Microsoft.AutoGen/Contracts/PythonEquiv/IAgentRuntime.cs@@ -15,7 +15,7 @@ public interface IAgentRuntime : ISaveState<IAgentRuntime>public ValueTask<AgentId> GetAgentAsync(AgentType agentType, string key = "default", bool lazy = true/*, CancellationToken? = default*/);public ValueTask<AgentId> GetAgentAsync(string agent, string key = "default", bool lazy = true/*, CancellationToken? = default*/);- public ValueTask<StateDict> SaveAgentStateAsync(AgentId agentId, /*CancellationToken? cancellationToken = default*/);+ public ValueTask<StateDict> SaveAgentStateAsync(AgentId agentId/*, CancellationToken? cancellationToken = default*/);public ValueTask LoadAgentStateAsync(AgentId agentId, StateDict state/*, CancellationToken? cancellationToken = default*/);public ValueTask<AgentMetadata> GetAgentMetadataAsync(AgentId agentId/*, CancellationToken? cancellationToken = default*/);