ToolArgumentCondition
AgentPrism.Abstractions.dllOne comparison against a tool call argument: path · operator · value.
public sealed record ToolArgumentCondition : IEquatable<ToolArgumentCondition>Inheritance
Section titled “Inheritance”object ← ToolArgumentCondition
Implements
Section titled “Implements”IEquatable<ToolArgumentCondition>
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”A comparison only, never an expression. There is no OR — a rule’s
conditions are combined with AND; two rules are written instead of one
with an OR. There is no array index in ToolArgumentCondition.Path. This is a
deliberate limit (’s sibling): the language must never grow
into a rule engine.
Constructors
Section titled “Constructors”ToolArgumentCondition()
Section titled “ ToolArgumentCondition()”public ToolArgumentCondition()Properties
Section titled “Properties”Operator
Section titled “ Operator”Gets the comparison operator.
public required ToolArgumentOperator Operator { get; init; }Property Value
Section titled “Property Value”Gets the dotted path into the argument object, for example order.amount.
No array index is accepted.
public required string Path { get; init; }Property Value
Section titled “Property Value”Gets the value compared against. For ToolArgumentOperator.In and ToolArgumentOperator.NotIn this is a JSON array of text or numbers; for every other operator it is a single text, number, or boolean.
public required JsonElement Value { 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(ToolArgumentCondition?)
Section titled “ Equals(ToolArgumentCondition?)”public bool Equals(ToolArgumentCondition? other)Parameters
Section titled “Parameters”other ToolArgumentCondition?
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 ==(ToolArgumentCondition?, ToolArgumentCondition?)
Section titled “ operator ==(ToolArgumentCondition?, ToolArgumentCondition?)”public static bool operator ==(ToolArgumentCondition? left, ToolArgumentCondition? right)Parameters
Section titled “Parameters”left ToolArgumentCondition?
right ToolArgumentCondition?
Returns
Section titled “Returns”operator !=(ToolArgumentCondition?, ToolArgumentCondition?)
Section titled “ operator !=(ToolArgumentCondition?, ToolArgumentCondition?)”public static bool operator !=(ToolArgumentCondition? left, ToolArgumentCondition? right)Parameters
Section titled “Parameters”left ToolArgumentCondition?
right ToolArgumentCondition?