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
1 changed files with 10 additions and 6 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue