You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ModelContextProtocol.Core/Server/McpServer.Methods.cs
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -79,19 +79,19 @@ public ValueTask<CreateMessageResult> SampleAsync(
79
79
/// Requests to sample an LLM via the client using the provided chat messages and options.
80
80
/// </summary>
81
81
/// <param name="messages">The messages to send as part of the request.</param>
82
-
/// <param name="options">The options to use for the request, including model parameters and constraints.</param>
82
+
/// <param name="chatOptions">The options to use for the request, including model parameters and constraints.</param>
83
83
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
84
84
/// <returns>A task containing the chat response from the model.</returns>
85
85
/// <exception cref="ArgumentNullException"><paramref name="messages"/> is <see langword="null"/>.</exception>
86
86
/// <exception cref="InvalidOperationException">The client does not support sampling.</exception>
Copy file name to clipboardExpand all lines: src/ModelContextProtocol.Core/Server/McpServerOptions.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -158,7 +158,7 @@ public McpServerHandlers Handlers
158
158
/// </summary>
159
159
/// <remarks>
160
160
/// <para>
161
-
/// This value is used in <see cref="McpServer.SampleAsync(IEnumerable{Microsoft.Extensions.AI.ChatMessage}, Microsoft.Extensions.AI.ChatOptions?, RequestOptions?, CancellationToken)"/>
161
+
/// This value is used in <see cref="McpServer.SampleAsync(IEnumerable{Microsoft.Extensions.AI.ChatMessage}, Microsoft.Extensions.AI.ChatOptions?, CancellationToken)"/>
162
162
/// when <see cref="Microsoft.Extensions.AI.ChatOptions.MaxOutputTokens"/> is not set in the request options.
0 commit comments