Skip to content

Commit 49d615a

Browse files
authored
Merge pull request #1022 from yileicn/master
optimize naming, ConfigureAwait
2 parents 330b10a + 1fc3e1b commit 49d615a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/Infrastructure/BotSharp.Abstraction/Agents/AgentHookBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public AgentHookBase(IServiceProvider services, AgentSettings settings)
1919
_settings = settings;
2020
}
2121

22-
public void SetAget(Agent agent)
22+
public void SetAgent(Agent agent)
2323
{
2424
_agent = agent;
2525
}

src/Infrastructure/BotSharp.Abstraction/Agents/IAgentHook.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public interface IAgentHook
99
/// </summary>
1010
string SelfId { get; }
1111
Agent Agent { get; }
12-
void SetAget(Agent agent);
12+
void SetAgent(Agent agent);
1313

1414
/// <summary>
1515
/// Triggered when agent is loading.

src/Infrastructure/BotSharp.Core/Agents/Services/AgentService.LoadAgent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public async Task<Agent> LoadAgent(string id, bool loadUtility = true)
5050
continue;
5151
}
5252

53-
hook.SetAget(agent);
53+
hook.SetAgent(agent);
5454

5555
if (!string.IsNullOrEmpty(agent.Instruction))
5656
{

src/Infrastructure/BotSharp.Core/Infrastructures/Utilities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static void ClearCache()
4949
{
5050
// Clear whole cache.
5151
var sharpCache = new SharpCacheAttribute(0);
52-
sharpCache.ClearCacheAsync().ConfigureAwait(false).GetAwaiter().GetResult();
52+
sharpCache.ClearCacheAsync().GetAwaiter().GetResult();
5353
}
5454

5555
public static string HideMiddleDigits(string input, bool isEmail = false)

src/Plugins/BotSharp.Plugin.OpenAI/Providers/Realtime/Session/RealtimeChatSession.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public async Task SendEventToModel(object message)
7676
return;
7777
}
7878

79-
await _clientEventSemaphore.WaitAsync().ConfigureAwait(false);
79+
await _clientEventSemaphore.WaitAsync();
8080

8181
try
8282
{

0 commit comments

Comments
 (0)