McpPromptContent
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllThe resolved content of a prompt.
public sealed record McpPromptContent : IEquatable<McpPromptContent>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”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.
Constructors
Section titled “Constructors”McpPromptContent()
Section titled “ McpPromptContent()”public McpPromptContent()Properties
Section titled “Properties”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; }Property Value
Section titled “Property Value”The text concatenated from the prompt’s messages.
public required string Text { 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(McpPromptContent?)
Section titled “ Equals(McpPromptContent?)”public bool Equals(McpPromptContent? other)Parameters
Section titled “Parameters”other McpPromptContent?
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 ==(McpPromptContent?, McpPromptContent?)
Section titled “ operator ==(McpPromptContent?, McpPromptContent?)”public static bool operator ==(McpPromptContent? left, McpPromptContent? right)Parameters
Section titled “Parameters”left McpPromptContent?
right McpPromptContent?
Returns
Section titled “Returns”operator !=(McpPromptContent?, McpPromptContent?)
Section titled “ operator !=(McpPromptContent?, McpPromptContent?)”public static bool operator !=(McpPromptContent? left, McpPromptContent? right)Parameters
Section titled “Parameters”left McpPromptContent?
right McpPromptContent?