Add McpClientTool.WithMeta (#1027)

Co-authored-by: Stephen Toub <stoub@microsoft.com>
This commit is contained in:
Peder Holdgaard Pedersen 2025-12-05 21:41:44 +01:00 • committed by GitHub
commit d99f882884
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,6 +16,16 @@ public sealed class RequestOptions
{
}
/// <summary>Creates a shallow clone of this options instance.</summary>
/// <returns>A shallow clone of this options instance.</returns>
internal RequestOptions Clone() =>
new()
{
JsonSerializerOptions = JsonSerializerOptions,
Meta = Meta,
ProgressToken = ProgressToken,
};
/// <summary>
/// Gets or sets optional metadata to include as the "_meta" property in a request.
/// </summary>