Skip to content

Commit 086408a

Browse files
Copilotstephentoub
andcommitted
Fix RFC 2119 keyword capitalization in XML docs
- Restore original MaxTokens comment about client choosing fewer tokens - Change all-caps RFC 2119 keywords (MUST, SHOULD NOT, MAY) to lowercase (must, should not, may) Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
1 parent 2f10f28 commit 086408a

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/ModelContextProtocol.Core/Protocol/CreateMessageRequestParams.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ public sealed class CreateMessageRequestParams : RequestParams
3535
/// <remarks>
3636
/// <para>
3737
/// A token is generally a word or part of a word in the text. Setting this value helps control
38-
/// response length and computation time.
38+
/// response length and computation time. The client can choose to sample fewer tokens than requested.
3939
/// </para>
4040
/// <para>
41-
/// The client MUST respect the <see cref="MaxTokens"/> parameter.
41+
/// The client must respect the <see cref="MaxTokens"/> parameter.
4242
/// </para>
4343
/// </remarks>
4444
[JsonPropertyName("maxTokens")]
@@ -48,7 +48,7 @@ public sealed class CreateMessageRequestParams : RequestParams
4848
/// Gets or sets the messages requested by the server to be included in the prompt.
4949
/// </summary>
5050
/// <remarks>
51-
/// The list of messages in a sampling request SHOULD NOT be retained between separate requests.
51+
/// The list of messages in a sampling request should not be retained between separate requests.
5252
/// </remarks>
5353
[JsonPropertyName("messages")]
5454
public IList<SamplingMessage> Messages { get; set; } = [];
@@ -63,7 +63,7 @@ public sealed class CreateMessageRequestParams : RequestParams
6363
/// that are specific to certain AI models or providers.
6464
/// </para>
6565
/// <para>
66-
/// The client MAY modify or ignore metadata.
66+
/// The client may modify or ignore metadata.
6767
/// </para>
6868
/// </remarks>
6969
[JsonPropertyName("metadata")]
@@ -104,7 +104,7 @@ public sealed class CreateMessageRequestParams : RequestParams
104104
/// like ".", or special delimiter sequences like "###".
105105
/// </para>
106106
/// <para>
107-
/// The client MAY modify or ignore stop sequences.
107+
/// The client may modify or ignore stop sequences.
108108
/// </para>
109109
/// </remarks>
110110
[JsonPropertyName("stopSequences")]
@@ -128,7 +128,7 @@ public sealed class CreateMessageRequestParams : RequestParams
128128
/// and lower values produce more stable output. The valid range depends on the model provider.
129129
/// </para>
130130
/// <para>
131-
/// The client MAY modify or ignore this value.
131+
/// The client may modify or ignore this value.
132132
/// </para>
133133
/// </remarks>
134134
[JsonPropertyName("temperature")]

0 commit comments

Comments
 (0)