ExpectedToolCall Class

Definition

A tool call that an agent is expected to make.

public class ExpectedToolCall : IEquatable<Microsoft.Agents.AI.ExpectedToolCall>
type ExpectedToolCall = class
    interface IEquatable<ExpectedToolCall>
Public Class ExpectedToolCall
Implements IEquatable(Of ExpectedToolCall)
Inheritance
ExpectedToolCall
Implements

Remarks

Used with EvaluateAsync to assert that the agent called the correct tools. The evaluator decides matching semantics (order, extras, argument checking); this type is pure data.

Constructors

Name Description
ExpectedToolCall(ExpectedToolCall)
ExpectedToolCall(String, IReadOnlyDictionary<String,Object>)

A tool call that an agent is expected to make.

Properties

Name Description
Arguments

Expected arguments. null means "don't check arguments". When provided, evaluators typically do subset matching (all expected keys must be present).

EqualityContract
Name

The tool/function name (e.g. "get_weather").

Methods

Name Description
<Clone>$()
Deconstruct(String, IReadOnlyDictionary<String,Object>)
Equals(ExpectedToolCall)
Equals(Object)
GetHashCode()
PrintMembers(StringBuilder)
ToString()

Operators

Name Description
Equality(ExpectedToolCall, ExpectedToolCall)
Inequality(ExpectedToolCall, ExpectedToolCall)

Applies to