Skip to content

Commit 2e831ab

Browse files
More code review feedback
1 parent 1cd7c79 commit 2e831ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dotnet/samples/GettingStartedWithAgents/AzureAIAgent/Step08_AzureAIAgent_Declarative.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public async Task AzureAIAgentWithCodeInterpreterAsync()
4545
}
4646

4747
[Fact]
48-
public async Task AzureAIAgentWithLocalFunctionsAsync()
48+
public async Task AzureAIAgentWithKernelFunctionsAsync()
4949
{
5050
var text =
5151
"""
@@ -85,15 +85,15 @@ private async Task InvokeAgentAsync(AzureAIAgent agent, string input)
8585
// Create a thread for the agent conversation.
8686
AgentThread thread = await this.AgentsClient.CreateThreadAsync(metadata: SampleMetadata);
8787

88-
// Respond to user input
8988
try
9089
{
90+
// Invoke agent and display the response.
9191
await InvokeAsync(input);
9292
}
9393
finally
9494
{
9595
await this.AgentsClient.DeleteThreadAsync(thread.Id);
96-
await this.AgentsClient.DeleteAgentAsync(agent!.Id);
96+
await this.AgentsClient.DeleteAgentAsync(agent.Id);
9797
}
9898

9999
// Local function to invoke agent and display the conversation messages.

0 commit comments

Comments
 (0)