Skip to content

Commit

Permalink
fix comment and agentProxy -- build succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
bassmang authored and jackgerrits committed Jan 28, 2025
1 parent fd2409f commit e006240
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public ValueTask<object> SendMessageAsync(object message, AgentId sender, string
/// <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>
Expand All @@ -66,6 +66,6 @@ public ValueTask LoadStateAsync(IDictionary<string, object> state)
/// <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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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*/);
Expand Down

0 comments on commit e006240

Please sign in to comment.