@@ -28,7 +28,7 @@ public class AIProjectClientCreateTests
2828 public async Task CreateAgent_CreatesAgentWithCorrectMetadataAsync ( string createMechanism )
2929 {
3030 // Arrange.
31- const string AgentName = "IntegrationTestAgent" ;
31+ string AgentName = AIProjectClientFixture . GenerateUniqueAgentName ( "IntegrationTestAgent" ) ;
3232 const string AgentDescription = "An agent created during integration tests" ;
3333 const string AgentInstructions = "You are an integration test agent" ;
3434
@@ -86,7 +86,7 @@ public async Task CreateAgent_CreatesAgentWithCorrectMetadataAsync(string create
8686 public async Task CreateAgent_CreatesAgentWithVectorStoresAsync ( string createMechanism )
8787 {
8888 // Arrange.
89- const string AgentName = "VectorStoreAgent" ;
89+ string AgentName = AIProjectClientFixture . GenerateUniqueAgentName ( "VectorStoreAgent" ) ;
9090 const string AgentInstructions = """
9191 You are a helpful agent that can help fetch data from files you know about.
9292 Use the File Search Tool to look up codes for words.
@@ -159,7 +159,7 @@ You are a helpful agent that can help fetch data from files you know about.
159159 public async Task CreateAgent_CreatesAgentWithCodeInterpreterAsync ( string createMechanism )
160160 {
161161 // Arrange.
162- const string AgentName = "CodeInterpreterAgent" ;
162+ string AgentName = AIProjectClientFixture . GenerateUniqueAgentName ( "CodeInterpreterAgent" ) ;
163163 const string AgentInstructions = """
164164 You are a helpful coding agent. A Python file is provided. Use the Code Interpreter Tool to run the file
165165 and report the SECRET_NUMBER value it prints. Respond only with the number.
@@ -229,7 +229,7 @@ and report the SECRET_NUMBER value it prints. Respond only with the number.
229229 public async Task CreateAgent_CreatesAgentWithAIFunctionToolsAsync ( string createMechanism )
230230 {
231231 // Arrange.
232- const string AgentName = "WeatherAgent" ;
232+ string AgentName = AIProjectClientFixture . GenerateUniqueAgentName ( "WeatherAgent" ) ;
233233 const string AgentInstructions = "You are a helpful weather assistant. Always call the GetWeather function to answer questions about weather." ;
234234
235235 static string GetWeather ( string location ) => $ "The weather in { location } is sunny with a high of 23C.";
0 commit comments