Skip to content

Commit 27f58c8

Browse files
committed
more nits
1 parent 533eab7 commit 27f58c8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Diff for: samples/ChatWithTools/Program.cs

+2-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using Microsoft.Extensions.Logging;
99
using OpenTelemetry.Logs;
1010
using OpenTelemetry.Metrics;
11-
using ModelContextProtocol.Protocol.Types;
1211

1312
using var tracerProvider = Sdk.CreateTracerProviderBuilder()
1413
.AddHttpClientInstrumentation()
@@ -42,12 +41,9 @@
4241
Arguments = ["-y", "--verbose", "@modelcontextprotocol/server-everything"],
4342
Name = "Everything",
4443
}),
45-
clientOptions: new McpClientOptions()
44+
clientOptions: new()
4645
{
47-
Capabilities = new ClientCapabilities()
48-
{
49-
Sampling = new SamplingCapability() { SamplingHandler = samplingClient.CreateSamplingHandler() }
50-
},
46+
Capabilities = new() { Sampling = new() { SamplingHandler = samplingClient.CreateSamplingHandler() } },
5147
},
5248
loggerFactory: loggerFactory);
5349

0 commit comments

Comments
 (0)