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:
parent
1f97301182
commit
e7b403b820
3 changed files with 10 additions and 6 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ namespace ModelContextProtocol.Server;
|
|||
/// <description>Wrapped in a list containing the single <see cref="ResourceContents"/>.</description>
|
||||
/// </item>
|
||||
/// <item>
|
||||
/// <term><see cref="TextContentBlock"/></term>
|
||||
/// <term><see cref="TextContent"/></term>
|
||||
/// <description>Converted to a list containing a single <see cref="TextResourceContents"/>.</description>
|
||||
/// </item>
|
||||
/// <item>
|
||||
|
|
@ -113,6 +113,10 @@ namespace ModelContextProtocol.Server;
|
|||
/// <term><see cref="IEnumerable{String}"/> of <see cref="string"/></term>
|
||||
/// <description>Converted to a list containing a <see cref="TextResourceContents"/>, one for each <see cref="string"/>.</description>
|
||||
/// </item>
|
||||
/// <item>
|
||||
/// <term><see cref="ReadResourceResult"/></term>
|
||||
/// <description>Returned directly without modification.</description>
|
||||
/// </item>
|
||||
/// </list>
|
||||
/// <para>
|
||||
/// Other returned types will result in an <see cref="InvalidOperationException"/> being thrown.
|
||||
|
|
|
|||
|
|
@ -110,10 +110,6 @@ namespace ModelContextProtocol.Server;
|
|||
/// <description>Returned as a single-item <see cref="ContentBlock"/> list.</description>
|
||||
/// </item>
|
||||
/// <item>
|
||||
/// <term><see cref="IEnumerable{String}"/> of <see cref="string"/></term>
|
||||
/// <description>Each <see cref="string"/> is converted to a <see cref="TextContentBlock"/> object with its text set to the string value.</description>
|
||||
/// </item>
|
||||
/// <item>
|
||||
/// <term><see cref="IEnumerable{AIContent}"/> of <see cref="AIContent"/></term>
|
||||
/// <description>Each <see cref="AIContent"/> is converted to a <see cref="ContentBlock"/> object using <see cref="AIContentExtensions.ToContent(AIContent)"/>.</description>
|
||||
/// </item>
|
||||
|
|
|
|||
Loading…
Reference in a new issue