Fix CreateMessageRequestParams.Metadata type to JsonObject (#1354)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com> Co-authored-by: Stephen Toub <stoub@microsoft.com>
This commit is contained in:
parent
0a0a575a3d
commit
ce2a5e4a4b
1 changed files with 34 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Nodes;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace ModelContextProtocol.Protocol;
|
||||
|
|
@ -68,7 +68,7 @@ public sealed class CreateMessageRequestParams : RequestParams
|
|||
/// </para>
|
||||
/// </remarks>
|
||||
[JsonPropertyName("metadata")]
|
||||
public JsonElement? Metadata { get; set; }
|
||||
public JsonObject? Metadata { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the server's preferences for which model to select.
|
||||
|
|
|
|||
Loading…
Reference in a new issue