Fix comments on McpServerTool/Prompt/Resource (#866)

They were a bit out of date with the implementation.

Co-authored-by: Stephen Halter <halter73@gmail.com>
This commit is contained in:
Stephen Toub 2025-10-14 23:44:09 -04:00 • committed by GitHub
commit e7b403b820
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,9 +105,13 @@ namespace ModelContextProtocol.Server;
/// <description>Converted to a list of <see cref="PromptMessage"/> instances derived from the <see cref="ChatMessage"/> with <see cref="AIContentExtensions.ToPromptMessages"/>.</description>
/// </item>
/// <item>
/// <term><see cref="IEnumerable{PromptMessage}"/> of <see cref="PromptMessage"/></term>
/// <term><see cref="IEnumerable{ChatMessage}"/> of <see cref="ChatMessage"/></term>
/// <description>Converted to a list of <see cref="PromptMessage"/> instances derived from all of the <see cref="ChatMessage"/> instances with <see cref="AIContentExtensions.ToPromptMessages"/>.</description>
/// </item>
/// <item>
/// <term><see cref="GetPromptResult"/></term>
/// <description>Returned directly without modification.</description>
/// </item>
/// </list>
/// <para>
/// Other returned types will result in an <see cref="InvalidOperationException"/> being thrown.