Add McpClientTool.WithMeta (#1027)
Co-authored-by: Stephen Toub <stoub@microsoft.com>
This commit is contained in:
parent
4a84412331
commit
d99f882884
1 changed files with 436 additions and 37 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue