Rename project and namespaces
This commit is contained in:
parent
e7fa6194f6
commit
c9ed453745
1 changed files with 426 additions and 918 deletions
23
src/ModelContextProtocol/Protocol/Types/PromptMessage.cs
Normal file
23
src/ModelContextProtocol/Protocol/Types/PromptMessage.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
namespace ModelContextProtocol.Protocol.Types;
|
||||
|
||||
/// <summary>
|
||||
/// Describes a message returned as part of a prompt.
|
||||
///
|
||||
/// This is similar to `SamplingMessage`, but also supports the embedding of
|
||||
/// resources from the MCP server.
|
||||
/// <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/2024-11-05/schema.json">See the schema for details</see>
|
||||
/// </summary>
|
||||
public class PromptMessage
|
||||
{
|
||||
/// <summary>
|
||||
/// The content of the message. Any of TextContent, ImageContent, EmbeddedResource.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyName("content")]
|
||||
public Content Content { get; set; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// The role of the message ("user" or "assistant").
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyName("role")]
|
||||
public Role Role { get; set; } = new();
|
||||
}
|
||||
Loading…
Reference in a new issue