Skip to content

Commit 6262712

Browse files
authored
Merge branch 'main' into dependabot/nuget/dotnet/multi-7761ae359b
2 parents dbd31f6 + 01a04a3 commit 6262712

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

dotnet/Directory.Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
<PackageVersion Include="System.Text.Json" Version="10.0.0" />
4747
<PackageVersion Include="System.Threading.Channels" Version="10.0.0" />
4848
<PackageVersion Include="System.Threading.Tasks.Extensions" Version="4.6.3" />
49+
<PackageVersion Include="System.Net.Security" Version="4.3.2" />
4950
<!-- OpenTelemetry -->
5051
<PackageVersion Include="OpenTelemetry" Version="1.13.1" />
5152
<PackageVersion Include="OpenTelemetry.Api" Version="1.13.1" />

dotnet/samples/GettingStarted/AgentProviders/Agent_With_GoogleGemini/Agent_With_GoogleGemini.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,22 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net10.0</TargetFrameworks>
5+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
66

77
<Nullable>enable</Nullable>
88
<ImplicitUsings>enable</ImplicitUsings>
9-
<NoWarn>$(NoWarn);IDE0059</NoWarn>
9+
<NoWarn>$(NoWarn);IDE0059;NU1510</NoWarn>
1010
</PropertyGroup>
1111

1212
<ItemGroup>
1313
<PackageReference Include="Google.GenAI" />
1414
<PackageReference Include="Mscc.GenerativeAI.Microsoft" />
1515
</ItemGroup>
1616

17+
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0' or '$(TargetFramework)' == 'net9.0'">
18+
<PackageReference Include="System.Net.Security" />
19+
</ItemGroup>
20+
1721
<ItemGroup>
1822
<ProjectReference Include="..\..\..\..\src\Microsoft.Agents.AI\Microsoft.Agents.AI.csproj" />
1923
</ItemGroup>

dotnet/src/Microsoft.Agents.AI.Abstractions/AIContextProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public virtual JsonElement Serialize(JsonSerializerOptions? jsonSerializerOption
124124
/// that will be used. Context providers can use this information to determine what additional context
125125
/// should be provided for the invocation.
126126
/// </remarks>
127-
public class InvokingContext
127+
public sealed class InvokingContext
128128
{
129129
/// <summary>
130130
/// Initializes a new instance of the <see cref="InvokingContext"/> class with the specified request messages.
@@ -153,7 +153,7 @@ public InvokingContext(IEnumerable<ChatMessage> requestMessages)
153153
/// request messages that were used and the response messages that were generated. It also indicates
154154
/// whether the invocation succeeded or failed.
155155
/// </remarks>
156-
public class InvokedContext
156+
public sealed class InvokedContext
157157
{
158158
/// <summary>
159159
/// Initializes a new instance of the <see cref="InvokedContext"/> class with the specified request messages.

dotnet/src/Microsoft.Agents.AI/ChatClient/ChatClientAgentOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Microsoft.Agents.AI;
1414
/// identifier, display name, operational instructions, and a descriptive summary. It can be used to store and transfer
1515
/// agent-related metadata within a chat application.
1616
/// </remarks>
17-
public class ChatClientAgentOptions
17+
public sealed class ChatClientAgentOptions
1818
{
1919
/// <summary>
2020
/// Gets or sets the agent id.

0 commit comments

Comments
 (0)