Skip to content

Commit 01a04a3

Browse files
seal options and context classes (#2633)
Co-authored-by: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com>
1 parent ee340be commit 01a04a3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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)