Class SamplingMessage
- Namespace
- ModelContextProtocol.Protocol.Types
- Assembly
- ModelContextProtocol.dll
Describes a message issued to or received from an LLM API. See the schema for details
public class SamplingMessage
- Inheritance
-
SamplingMessage
- Inherited Members
Properties
Content
Text or image content of the message.
[JsonPropertyName("content")]
public required Content Content { get; init; }
Property Value
Role
The role of the message ("user" or "assistant").
[JsonPropertyName("role")]
public required Role Role { get; init; }