Clean up namespaces (#410)
No meaningful code changes, just lots of namespace shuffling to have fewer namespaces and to put things in better namespaces.
This commit is contained in:
parent
c11c634945
commit
106ab8064f
1 changed files with 491 additions and 668 deletions
|
|
@ -1,29 +0,0 @@
|
|||
using ModelContextProtocol.Protocol.Messages;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace ModelContextProtocol.Protocol.Types;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a server's response to a <see cref="RequestMethods.PromptsList"/> request from the client, containing available prompts.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// This result is returned when a client sends a <see cref="RequestMethods.PromptsList"/> request to discover available prompts on the server.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// It inherits from <see cref="PaginatedResult"/>, allowing for paginated responses when there are many prompts.
|
||||
/// The server can provide the <see cref="PaginatedResult.NextCursor"/> property to indicate there are more
|
||||
/// prompts available beyond what was returned in the current response.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// See the <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/">schema</see> for details.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public class ListPromptsResult : PaginatedResult
|
||||
{
|
||||
/// <summary>
|
||||
/// A list of prompts or prompt templates that the server offers.
|
||||
/// </summary>
|
||||
[JsonPropertyName("prompts")]
|
||||
public List<Prompt> Prompts { get; set; } = [];
|
||||
}
|
||||
Loading…
Reference in a new issue