Skip to content
Tracon

AgentRunDocument

Namespace Tracon · Assembly Tracon.Abstractions.dll

A piece of reference text attached to a single run, kept apart from the model’s instructions.

public sealed record AgentRunDocument : IEquatable<AgentRunDocument>

objectAgentRunDocument

IEquatable<AgentRunDocument>

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

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.

public AgentRunDocument()

Gets the document’s text. Never treated as instructions.

public required string Content { get; init; }

string

Gets the document’s name, shown to the model inside the delimiter.

public required string Name { get; init; }

string

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(AgentRunDocument? other)

other AgentRunDocument?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(AgentRunDocument?, AgentRunDocument?)

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

left AgentRunDocument?

right AgentRunDocument?

bool

operator !=(AgentRunDocument?, AgentRunDocument?)

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

left AgentRunDocument?

right AgentRunDocument?

bool