- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Represents a reference to a resource or prompt in the Model Context Protocol.
[JsonConverter(typeof(Reference.Converter))]
public abstract class Reference
- Inheritance
-
Reference
- Derived
- Inherited Members
Remarks
Properties
Type
When overridden in a derived class, gets the type of content.
[JsonPropertyName("type")]
public abstract string Type { get; }
Property Value
- string
"ref/resource" or "ref/prompt".