.NET: Post bugbash updates (#2279)

* Add missing README.md

* Address bugbash comments

* Address bugbash issues and suggestions
This commit is contained in:
Roger Barreto
2025-11-18 09:50:22 +00:00
committed by GitHub
parent 1f0ffc159c
commit f6cd329a32
18 changed files with 38 additions and 501 deletions
@@ -25,7 +25,7 @@ const string AssistantName = "WeatherAssistant";
// Get a client to create/retrieve/delete server side agents with Azure Foundry Agents.
AIProjectClient aiProjectClient = new(new Uri(endpoint), new AzureCliCredential());
ApprovalRequiredAIFunction approvalTool = new(AIFunctionFactory.Create(GetWeather));
ApprovalRequiredAIFunction approvalTool = new(AIFunctionFactory.Create(GetWeather, name: nameof(GetWeather)));
// Create AIAgent directly
AIAgent agent = await aiProjectClient.CreateAIAgentAsync(name: AssistantName, model: deploymentName, instructions: AssistantInstructions, tools: [approvalTool]);