Abstract base class for an MCP Content Block.
override void Annotate(Dictionary< string, object > Object)
Annotates an object.
abstract Type[] Encodes
What types the content block encodes.
ContentBlock()
Abstract base class for an MCP Content Block.
abstract bool IsStructuredContent
If the content block is encoded as structured content.
abstract Task< Dictionary< string, object > > Encode(object Content)
Encodes a content block, given the content to encode and available annotations and meta-data.
Dictionary< string, object >? MetaData
ContentBlock(McpRole[]? Audience, double? Priority, DateTime? LastModified, Dictionary< string, object >? MetaData)
Abstract base class for an MCP Content Block.
Interface for MCP Content Block.