diff --git a/src/Infrastructure/BotSharp.Abstraction/Agents/AgentHookBase.cs b/src/Infrastructure/BotSharp.Abstraction/Agents/AgentHookBase.cs index 5c8ad126d..770acd016 100644 --- a/src/Infrastructure/BotSharp.Abstraction/Agents/AgentHookBase.cs +++ b/src/Infrastructure/BotSharp.Abstraction/Agents/AgentHookBase.cs @@ -19,7 +19,7 @@ public AgentHookBase(IServiceProvider services, AgentSettings settings) _settings = settings; } - public void SetAget(Agent agent) + public void SetAgent(Agent agent) { _agent = agent; } diff --git a/src/Infrastructure/BotSharp.Abstraction/Agents/IAgentHook.cs b/src/Infrastructure/BotSharp.Abstraction/Agents/IAgentHook.cs index c37688ede..ae6a4eaf4 100644 --- a/src/Infrastructure/BotSharp.Abstraction/Agents/IAgentHook.cs +++ b/src/Infrastructure/BotSharp.Abstraction/Agents/IAgentHook.cs @@ -9,7 +9,7 @@ public interface IAgentHook /// string SelfId { get; } Agent Agent { get; } - void SetAget(Agent agent); + void SetAgent(Agent agent); /// /// Triggered when agent is loading. diff --git a/src/Infrastructure/BotSharp.Core/Agents/Services/AgentService.LoadAgent.cs b/src/Infrastructure/BotSharp.Core/Agents/Services/AgentService.LoadAgent.cs index 12c2637ed..636bc811c 100644 --- a/src/Infrastructure/BotSharp.Core/Agents/Services/AgentService.LoadAgent.cs +++ b/src/Infrastructure/BotSharp.Core/Agents/Services/AgentService.LoadAgent.cs @@ -50,7 +50,7 @@ public async Task LoadAgent(string id, bool loadUtility = true) continue; } - hook.SetAget(agent); + hook.SetAgent(agent); if (!string.IsNullOrEmpty(agent.Instruction)) { diff --git a/src/Infrastructure/BotSharp.Core/Infrastructures/Utilities.cs b/src/Infrastructure/BotSharp.Core/Infrastructures/Utilities.cs index 6293c1f66..64309f05e 100644 --- a/src/Infrastructure/BotSharp.Core/Infrastructures/Utilities.cs +++ b/src/Infrastructure/BotSharp.Core/Infrastructures/Utilities.cs @@ -49,7 +49,7 @@ public static void ClearCache() { // Clear whole cache. var sharpCache = new SharpCacheAttribute(0); - sharpCache.ClearCacheAsync().ConfigureAwait(false).GetAwaiter().GetResult(); + sharpCache.ClearCacheAsync().GetAwaiter().GetResult(); } public static string HideMiddleDigits(string input, bool isEmail = false) diff --git a/src/Plugins/BotSharp.Plugin.OpenAI/Providers/Realtime/Session/RealtimeChatSession.cs b/src/Plugins/BotSharp.Plugin.OpenAI/Providers/Realtime/Session/RealtimeChatSession.cs index 855dd31a9..827b1c982 100644 --- a/src/Plugins/BotSharp.Plugin.OpenAI/Providers/Realtime/Session/RealtimeChatSession.cs +++ b/src/Plugins/BotSharp.Plugin.OpenAI/Providers/Realtime/Session/RealtimeChatSession.cs @@ -76,7 +76,7 @@ public async Task SendEventToModel(object message) return; } - await _clientEventSemaphore.WaitAsync().ConfigureAwait(false); + await _clientEventSemaphore.WaitAsync(); try {