Skip to content

Commit

Permalink
Refactor variable name in AgentTools example
Browse files Browse the repository at this point in the history
Updated the name of a private list variable in the AgentTools example to align with naming conventions. The 's_agents' name was adjusted to '_s_agents' and wherever this variable was used in the code, it has been replaced with its updated name.
  • Loading branch information
Krzysztof318 committed Jan 17, 2024
1 parent 9fd760b commit 98f207d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dotnet/samples/KernelSyntaxExamples/Example75_AgentTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public sealed class Example75_AgentTools : BaseTest
private const string OpenAIFunctionEnabledModel = "gpt-4-1106-preview";

// Track agents for clean-up
private readonly List<IAgent> s_agents = new();
private readonly List<IAgent> _s_agents = new();

/// <summary>
/// Show how to utilize code_interpreter and retrieval tools.
Expand Down Expand Up @@ -73,7 +73,7 @@ await ChatAsync(
}
finally
{
await Task.WhenAll(s_agents.Select(a => a.DeleteAsync()));
await Task.WhenAll(this._s_agents.Select(a => a.DeleteAsync()));
}
}

Expand Down Expand Up @@ -116,7 +116,7 @@ await ChatAsync(
}
finally
{
await Task.WhenAll(s_agents.Select(a => a.DeleteAsync()));
await Task.WhenAll(this._s_agents.Select(a => a.DeleteAsync()));
}
}

Expand Down Expand Up @@ -166,7 +166,7 @@ async Task InvokeAgentAsync(IAgent agent, string question)

private IAgent Track(IAgent agent)
{
s_agents.Add(agent);
this._s_agents.Add(agent);

return agent;
}
Expand Down

0 comments on commit 98f207d

Please sign in to comment.