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
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue