diff --git a/dotnet/src/Microsoft.AutoGen/Contracts/PythonEquiv/AgentProxy.cs b/dotnet/src/Microsoft.AutoGen/Contracts/PythonEquiv/AgentProxy.cs
index 4e174c8b9..d73313f1f 100644
--- a/dotnet/src/Microsoft.AutoGen/Contracts/PythonEquiv/AgentProxy.cs
+++ b/dotnet/src/Microsoft.AutoGen/Contracts/PythonEquiv/AgentProxy.cs
@@ -4,9 +4,19 @@
namespace Microsoft.AutoGen.Contracts.Python;
+///
+/// A helper class that allows you to use an in place of its associated .
+///
public class AgentProxy(AgentId agentId, IAgentRuntime runtime)
{
+ ///
+ /// The runtime instance used to interact with agents.
+ ///
private IAgentRuntime runtime = runtime;
+
+ ///
+ /// The target agent for this proxy.
+ ///
public AgentId Id = agentId;
private T ExecuteAndUnwrap(Func> delegate_)
@@ -14,19 +24,47 @@ public class AgentProxy(AgentId agentId, IAgentRuntime runtime)
return delegate_(this.runtime).AsTask().ConfigureAwait(false).GetAwaiter().GetResult();
}
+ ///
+ /// Gets the metadata of the agent.
+ ///
+ ///
+ /// An instance of containing details about the agent.
+ ///
public AgentMetadata Metadata => this.ExecuteAndUnwrap(runtime => runtime.GetAgentMetadataAsync(this.Id));
// TODO: make this optional
+ ///
+ /// Sends a message to the agent and processes the response.
+ ///
+ /// The message to send to the agent.
+ /// The agent that is sending the message.
+ ///
+ /// The message ID. If null, a new message ID will be generated.
+ /// This message ID must be unique and is recommended to be a UUID.
+ ///
+ ///
+ /// A token used to cancel an in-progress operation. Defaults to null.
+ ///
+ /// A task representing the asynchronous operation, returning the response from the agent.
public ValueTask