Add request options bag to high level requests and include Meta (#970)

Co-authored-by: Stephen Toub <stoub@microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Mike Kistler 2025-12-04 14:32:12 -08:00 • committed by GitHub
commit c447973972
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 882 additions and 164 deletions

View file

@ -47,7 +47,7 @@ public class Program
new ChatMessage(ChatRole.System, "You are a helpful test server"),
new ChatMessage(ChatRole.User, $"Resource {uri}, context: A new subscription was started"),
],
options: new ChatOptions
chatOptions: new ChatOptions
{
MaxOutputTokens = 100,
Temperature = 0.7f,

View file

@ -141,7 +141,7 @@ public class ConformanceTools
{
Progress = 0,
Total = 100,
}, cancellationToken);
}, cancellationToken: cancellationToken);
await Task.Delay(50, cancellationToken);
@ -149,7 +149,7 @@ public class ConformanceTools
{
Progress = 50,
Total = 100,
}, cancellationToken);
}, cancellationToken: cancellationToken);
await Task.Delay(50, cancellationToken);
@ -157,7 +157,7 @@ public class ConformanceTools
{
Progress = 100,
Total = 100,
}, cancellationToken);
}, cancellationToken: cancellationToken);
}
return progressToken?.ToString() ?? "No progress token provided";