McpResourceContent
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllThe content of a resource that was read.
public sealed record McpResourceContent : IEquatable<McpResourceContent>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<McpResourceContent>
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Section titled “Constructors”McpResourceContent()
Section titled “ McpResourceContent()”public McpResourceContent()Properties
Section titled “Properties”ByteSize
Section titled “ ByteSize”The byte size of the raw content (before truncation).
public int ByteSize { get; init; }Property Value
Section titled “Property Value”IsBinary
Section titled “ IsBinary”Whether the resource is binary (a blob).
public bool IsBinary { get; init; }Property Value
Section titled “Property Value”MimeType
Section titled “ MimeType”The MIME type.
public string? MimeType { get; init; }Property Value
Section titled “Property Value”The text content. null for binary resources.
public string? Text { get; init; }Property Value
Section titled “Property Value”Truncated
Section titled “ Truncated”Whether the content was truncated because it exceeded the size limit.
public bool Truncated { get; init; }Property Value
Section titled “Property Value”The resource URI.
public required string Uri { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(McpResourceContent?)
Section titled “ Equals(McpResourceContent?)”public bool Equals(McpResourceContent? other)Parameters
Section titled “Parameters”other McpResourceContent?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(McpResourceContent?, McpResourceContent?)
Section titled “ operator ==(McpResourceContent?, McpResourceContent?)”public static bool operator ==(McpResourceContent? left, McpResourceContent? right)Parameters
Section titled “Parameters”left McpResourceContent?
right McpResourceContent?
Returns
Section titled “Returns”operator !=(McpResourceContent?, McpResourceContent?)
Section titled “ operator !=(McpResourceContent?, McpResourceContent?)”public static bool operator !=(McpResourceContent? left, McpResourceContent? right)Parameters
Section titled “Parameters”left McpResourceContent?
right McpResourceContent?