Remove s_additionalProperties from McpClientTool (#1080)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
This commit is contained in:
parent
66ba3426fb
commit
20d726bfdf
1 changed files with 0 additions and 11 deletions
|
|
@ -1,6 +1,5 @@
|
|||
using Microsoft.Extensions.AI;
|
||||
using ModelContextProtocol.Protocol;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Nodes;
|
||||
|
||||
|
|
@ -26,13 +25,6 @@ namespace ModelContextProtocol.Client;
|
|||
/// </remarks>
|
||||
public sealed class McpClientTool : AIFunction
|
||||
{
|
||||
/// <summary>Additional properties exposed from tools.</summary>
|
||||
private static readonly ReadOnlyDictionary<string, object?> s_additionalProperties =
|
||||
new(new Dictionary<string, object?>()
|
||||
{
|
||||
["Strict"] = false, // some MCP schemas may not meet "strict" requirements
|
||||
});
|
||||
|
||||
private readonly McpClient _client;
|
||||
private readonly string _name;
|
||||
private readonly string _description;
|
||||
|
|
@ -126,9 +118,6 @@ public sealed class McpClientTool : AIFunction
|
|||
/// <inheritdoc/>
|
||||
public override JsonSerializerOptions JsonSerializerOptions { get; }
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override IReadOnlyDictionary<string, object?> AdditionalProperties => s_additionalProperties;
|
||||
|
||||
/// <inheritdoc/>
|
||||
protected async override ValueTask<object?> InvokeCoreAsync(
|
||||
AIFunctionArguments arguments, CancellationToken cancellationToken)
|
||||
|
|
|
|||
Loading…
Reference in a new issue