Update to M.E.AI 9.10 (#1461)

And other System.*/Microsoft.Extensions.* updated today

Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com>
This commit is contained in:
Stephen Toub
2025-10-15 08:33:33 +00:00
committed by GitHub
co-authored by SergeyMenshykh
parent 8e8dfb3948
commit ab450078ab
19 changed files with 58 additions and 76 deletions
@@ -14,8 +14,8 @@
<ItemGroup>
<PackageReference Include="A2A" />
<PackageReference Include="System.Net.ServerSentEvents" VersionOverride="10.0.0-preview.5.25277.114" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" VersionOverride="10.0.0-preview.5.25277.114" />
<PackageReference Include="System.Net.ServerSentEvents" VersionOverride="10.0.0-rc.2.25502.107" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" VersionOverride="10.0.0-rc.2.25502.107" />
</ItemGroup>
<PropertyGroup>
@@ -12,8 +12,8 @@
<ItemGroup>
<PackageReference Include="A2A.AspNetCore" />
<PackageReference Include="System.Net.ServerSentEvents" VersionOverride="10.0.0-preview.5.25277.114" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" VersionOverride="10.0.0-preview.5.25277.114" />
<PackageReference Include="System.Net.ServerSentEvents" VersionOverride="10.0.0-rc.2.25502.107" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" VersionOverride="10.0.0-rc.2.25502.107" />
</ItemGroup>
<ItemGroup>
@@ -18,8 +18,8 @@
<ItemGroup>
<PackageReference Include="A2A" />
<PackageReference Include="System.Net.ServerSentEvents" VersionOverride="10.0.0-preview.5.25277.114" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" VersionOverride="10.0.0-preview.5.25277.114" />
<PackageReference Include="System.Net.ServerSentEvents" VersionOverride="10.0.0-rc.2.25502.107" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" VersionOverride="10.0.0-rc.2.25502.107" />
</ItemGroup>
<ItemGroup>
@@ -25,7 +25,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Net.ServerSentEvents" VersionOverride="10.0.0-rc.1.25451.107" />
<PackageReference Include="System.Net.ServerSentEvents" VersionOverride="10.0.0-rc.2.25502.107" />
<PackageReference Include="Microsoft.Extensions.AI.OpenAI" />
</ItemGroup>
@@ -139,33 +139,12 @@ public sealed class OpenTelemetryAgent : DelegatingAIAgent, IDisposable
/// <summary>State passed from this instance into the inner agent, circumventing the intermediate <see cref="OpenTelemetryChatClient"/>.</summary>
private sealed class ForwardedOptions : ChatOptions
{
public ForwardedOptions(AgentRunOptions? options, AgentThread? thread, Activity? currentActivity)
public ForwardedOptions(AgentRunOptions? options, AgentThread? thread, Activity? currentActivity) :
base((options as ChatClientAgentRunOptions)?.ChatOptions)
{
this.Options = options;
this.Thread = thread;
this.CurrentActivity = currentActivity;
if (options is ChatClientAgentRunOptions { ChatOptions: { } chatClientOptions })
{
// Keep this faux copy ctor in sync with public properties on ChatOptions.
this.AdditionalProperties = chatClientOptions.AdditionalProperties;
this.AllowMultipleToolCalls = chatClientOptions.AllowMultipleToolCalls;
this.ConversationId = chatClientOptions.ConversationId;
this.FrequencyPenalty = chatClientOptions.FrequencyPenalty;
this.Instructions = chatClientOptions.Instructions;
this.MaxOutputTokens = chatClientOptions.MaxOutputTokens;
this.ModelId = chatClientOptions.ModelId;
this.PresencePenalty = chatClientOptions.PresencePenalty;
this.RawRepresentationFactory = chatClientOptions.RawRepresentationFactory;
this.ResponseFormat = chatClientOptions.ResponseFormat;
this.Seed = chatClientOptions.Seed;
this.StopSequences = chatClientOptions.StopSequences;
this.Temperature = chatClientOptions.Temperature;
this.Tools = chatClientOptions.Tools;
this.ToolMode = chatClientOptions.ToolMode;
this.TopK = chatClientOptions.TopK;
this.TopP = chatClientOptions.TopP;
}
}
public AgentRunOptions? Options { get; }