.NET API
AgentRunDocument
Tracon.Abstractions.dllA piece of reference text attached to a single run, kept apart from the model’s instructions.
public sealed record AgentRunDocument : IEquatable<AgentRunDocument>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 convention and an audit trail, not a security guarantee. No provider gives a hard guarantee that text wrapped this way is never treated as an instruction; a capable-enough model can still be steered by content inside a document. The value is in keeping the data channel visibly separate in the transcript and the run record, and in the boundary marker surviving content that tries to imitate it.
A document is carried as its own ChatMessage, wrapped in a
delimiter, and marked through AIContent.AdditionalProperties so the
recording path can tell it apart from the instructions text. The run
record keeps only the document’s name and size — never its content.
Constructors
Section titled “Constructors”AgentRunDocument()
Section titled “ AgentRunDocument()”public AgentRunDocument()Properties
Section titled “Properties”Content
Section titled “ Content”Gets the document’s text. Never treated as instructions.
public required string Content { get; init; }Property Value
Section titled “Property Value”Gets the document’s name, shown to the model inside the delimiter.
public required string Name { 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(AgentRunDocument?)
Section titled “ Equals(AgentRunDocument?)”public bool Equals(AgentRunDocument? other)Parameters
Section titled “Parameters”other AgentRunDocument?
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 ==(AgentRunDocument?, AgentRunDocument?)
Section titled “ operator ==(AgentRunDocument?, AgentRunDocument?)”public static bool operator ==(AgentRunDocument? left, AgentRunDocument? right)Parameters
Section titled “Parameters”left AgentRunDocument?
right AgentRunDocument?
Returns
Section titled “Returns”operator !=(AgentRunDocument?, AgentRunDocument?)
Section titled “ operator !=(AgentRunDocument?, AgentRunDocument?)”public static bool operator !=(AgentRunDocument? left, AgentRunDocument? right)Parameters
Section titled “Parameters”left AgentRunDocument?
right AgentRunDocument?