Skip to content
Tracon

ToolApprovalPresentation

Namespace Tracon · Assembly Tracon.Abstractions.dll

A human-readable projection of one tool-approval request, produced by a consumer’s IToolApprovalPresenter.

public sealed record ToolApprovalPresentation : IEquatable<ToolApprovalPresentation>

objectToolApprovalPresentation

IEquatable<ToolApprovalPresentation>

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

Every field is optional: a presenter may resolve only part of what it knows (for example the entity’s name but not its type), and an unresolved field is left null rather than filled with a placeholder. The raw tool call arguments this presentation was built from are never replaced by it — see PendingApproval.Arguments, which stays populated alongside this record.

public ToolApprovalPresentation()

Gets the entity’s own identifier, as read from the call’s arguments.

public string? EntityId { get; init; }

string?

Gets the entity’s human-readable name, resolved from EntityId.

public string? EntityName { get; init; }

string?

Gets the kind of entity the call acts on (for example "skill" or "order").

public string? EntityType { get; init; }

string?

Gets a free-form sentence describing the call, for a reviewer who has none of the above.

public string? Message { get; init; }

string?

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(ToolApprovalPresentation? other)

other ToolApprovalPresentation?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(ToolApprovalPresentation?, ToolApprovalPresentation?)

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

left ToolApprovalPresentation?

right ToolApprovalPresentation?

bool

operator !=(ToolApprovalPresentation?, ToolApprovalPresentation?)

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

left ToolApprovalPresentation?

right ToolApprovalPresentation?

bool