Skip to content

McpResourceContent

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The content of a resource that was read.

public sealed record McpResourceContent : IEquatable<McpResourceContent>

objectMcpResourceContent

IEquatable<McpResourceContent>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

public McpResourceContent()

The byte size of the raw content (before truncation).

public int ByteSize { get; init; }

int

Whether the resource is binary (a blob).

public bool IsBinary { get; init; }

bool

The MIME type.

public string? MimeType { get; init; }

string?

The text content. null for binary resources.

public string? Text { get; init; }

string?

Whether the content was truncated because it exceeded the size limit.

public bool Truncated { get; init; }

bool

The resource URI.

public required string Uri { get; init; }

string

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(McpResourceContent? other)

other McpResourceContent?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(McpResourceContent?, McpResourceContent?)

Section titled “ operator ==(McpResourceContent?, McpResourceContent?)”
public static bool operator ==(McpResourceContent? left, McpResourceContent? right)

left McpResourceContent?

right McpResourceContent?

bool

operator !=(McpResourceContent?, McpResourceContent?)

Section titled “ operator !=(McpResourceContent?, McpResourceContent?)”
public static bool operator !=(McpResourceContent? left, McpResourceContent? right)

left McpResourceContent?

right McpResourceContent?

bool