.NET API
ToolArgumentsValidationResult
Tracon.Abstractions.dllThe outcome of a tool arguments validation check.
public sealed record ToolArgumentsValidationResult : IEquatable<ToolArgumentsValidationResult>Inheritance
Section titled “Inheritance”object ← ToolArgumentsValidationResult
Implements
Section titled “Implements”IEquatable<ToolArgumentsValidationResult>
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
Section titled “Properties”IsValid
Section titled “ IsValid”Gets whether the call’s arguments are valid.
public bool IsValid { get; }Property Value
Section titled “Property Value”Reason
Section titled “ Reason”Gets the reason shown to the model when the call is rejected. null when ToolArgumentsValidationResult.IsValid is true.
public string? Reason { get; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”This text is sent to the model, not shown to the user directly. It
must never carry an argument value — a rejected
call’s record is written to a persistent run event, and an argument
can carry a secret.
A result allowing the call.
public static ToolArgumentsValidationResult Valid { get; }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(ToolArgumentsValidationResult?)
Section titled “ Equals(ToolArgumentsValidationResult?)”public bool Equals(ToolArgumentsValidationResult? other)Parameters
Section titled “Parameters”other ToolArgumentsValidationResult?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”Invalid(string)
Section titled “ Invalid(string)”Creates a result that rejects the call.
public static ToolArgumentsValidationResult Invalid(string reason)Parameters
Section titled “Parameters”reason string
The reason shown to the model. Must not carry argument values.
Returns
Section titled “Returns”A rejecting result.
Exceptions
Section titled “Exceptions”reason is empty or whitespace.
ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(ToolArgumentsValidationResult?, ToolArgumentsValidationResult?)
Section titled “ operator ==(ToolArgumentsValidationResult?, ToolArgumentsValidationResult?)”public static bool operator ==(ToolArgumentsValidationResult? left, ToolArgumentsValidationResult? right)Parameters
Section titled “Parameters”left ToolArgumentsValidationResult?
right ToolArgumentsValidationResult?
Returns
Section titled “Returns”operator !=(ToolArgumentsValidationResult?, ToolArgumentsValidationResult?)
Section titled “ operator !=(ToolArgumentsValidationResult?, ToolArgumentsValidationResult?)”public static bool operator !=(ToolArgumentsValidationResult? left, ToolArgumentsValidationResult? right)Parameters
Section titled “Parameters”left ToolArgumentsValidationResult?
right ToolArgumentsValidationResult?