.NET API
EvalExpectedToolCall
Tracon.Abstractions.dllA tool call an EvalCase expects the agent to make.
public sealed record EvalExpectedToolCall : IEquatable<EvalExpectedToolCall>- Inheritance
- object ← EvalExpectedToolCall
- Implements
- IEquatable<EvalExpectedToolCall>
- Inherited Members
- object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”The toolCallArgsMatch check reads it. The case passes that check when,
for every expected call, the run called a tool of that EvalExpectedToolCall.Name
(letter case does not matter) and - when EvalExpectedToolCall.Arguments is given -
one such call carried every listed argument with an equal value.
Constructors
Section titled “Constructors”EvalExpectedToolCall()
Section titled “ EvalExpectedToolCall()”public EvalExpectedToolCall()Properties
Section titled “Properties”Arguments
Section titled “ Arguments”The arguments the call must carry, or null to check only that the tool was called.
public IReadOnlyDictionary<string, JsonElement>? Arguments { get; init; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, JsonElement>?
Remarks
Section titled “Remarks”The listed arguments are a subset: the call may carry others. An argument
name matches without regard to letter case. A value matches by its JSON
meaning: 2 equals 2.0, an object equals an object with the
same properties in any order, and white space between tokens does not
matter. A nested object or array matches exactly - the subset rule applies
to the top-level argument names only.
A null value expects the argument to be absent or null: the
check does not see a null argument a model sent.
The tool name. Compared without regard to letter case.
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(EvalExpectedToolCall?)
Section titled “ Equals(EvalExpectedToolCall?)”public bool Equals(EvalExpectedToolCall? other)Parameters
Section titled “Parameters”other EvalExpectedToolCall?
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 ==(EvalExpectedToolCall?, EvalExpectedToolCall?)
Section titled “ operator ==(EvalExpectedToolCall?, EvalExpectedToolCall?)”public static bool operator ==(EvalExpectedToolCall? left, EvalExpectedToolCall? right)Parameters
Section titled “Parameters”left EvalExpectedToolCall?
right EvalExpectedToolCall?
Returns
Section titled “Returns”operator !=(EvalExpectedToolCall?, EvalExpectedToolCall?)
Section titled “ operator !=(EvalExpectedToolCall?, EvalExpectedToolCall?)”public static bool operator !=(EvalExpectedToolCall? left, EvalExpectedToolCall? right)Parameters
Section titled “Parameters”left EvalExpectedToolCall?
right EvalExpectedToolCall?