Skip to content

McpPromptContent

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The resolved content of a prompt.

public sealed record McpPromptContent : IEquatable<McpPromptContent>

objectMcpPromptContent

IEquatable<McpPromptContent>

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

This is a snapshot. This content MUST BE COPIED into the agent’s instructions; it is not re-fetched at run time. A remote server cannot change the agent’s behavior through this path.

public McpPromptContent()

The content’s SHA-256 digest (hex). The snapshot is stored in AgentDefinition.Metadata under the mcp.prompt.hash key; when the server’s content changes, the UI compares this digest and shows a badge.

public required string Hash { get; init; }

string

The text concatenated from the prompt’s messages.

public required string Text { get; init; }

string

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(McpPromptContent? other)

other McpPromptContent?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(McpPromptContent?, McpPromptContent?)

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

left McpPromptContent?

right McpPromptContent?

bool

operator !=(McpPromptContent?, McpPromptContent?)

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

left McpPromptContent?

right McpPromptContent?

bool