We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 533eab7 commit 27f58c8Copy full SHA for 27f58c8
samples/ChatWithTools/Program.cs
@@ -8,7 +8,6 @@
8
using Microsoft.Extensions.Logging;
9
using OpenTelemetry.Logs;
10
using OpenTelemetry.Metrics;
11
-using ModelContextProtocol.Protocol.Types;
12
13
using var tracerProvider = Sdk.CreateTracerProviderBuilder()
14
.AddHttpClientInstrumentation()
@@ -42,12 +41,9 @@
42
41
Arguments = ["-y", "--verbose", "@modelcontextprotocol/server-everything"],
43
Name = "Everything",
44
}),
45
- clientOptions: new McpClientOptions()
+ clientOptions: new()
46
{
47
- Capabilities = new ClientCapabilities()
48
- {
49
- Sampling = new SamplingCapability() { SamplingHandler = samplingClient.CreateSamplingHandler() }
50
- },
+ Capabilities = new() { Sampling = new() { SamplingHandler = samplingClient.CreateSamplingHandler() } },
51
},
52
loggerFactory: loggerFactory);
53
0 commit comments