.NET: [BREAKING] Rename GetNewSession to CreateSession (#3501)

* Rename GetNewSession to CreateSession

* Address copilot feedback

* Suppress warning

* Suppress warning

* Fix further warnings.
This commit is contained in:
westey
2026-02-03 11:33:50 +00:00
committed by GitHub
Unverified
parent 405bd6fb4b
commit 6fdf6111e6
132 changed files with 277 additions and 261 deletions
@@ -128,7 +128,7 @@ var agent = new ChatClientAgent(instrumentedChatClient,
.UseOpenTelemetry(SourceName, configure: (cfg) => cfg.EnableSensitiveData = true) // enable telemetry at the agent level
.Build();
var session = await agent.GetNewSessionAsync();
var session = await agent.CreateSessionAsync();
appLogger.LogInformation("Agent created successfully with ID: {AgentId}", agent.Id);