ExpectedToolCall Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| ExpectedToolCall(ExpectedToolCall) | |
| ExpectedToolCall(String, IReadOnlyDictionary<String,Object>) |
A tool call that an agent is expected to make. |
ExpectedToolCall(ExpectedToolCall)
protected ExpectedToolCall(Microsoft.Agents.AI.ExpectedToolCall original);
Protected Sub New (original As ExpectedToolCall)
Parameters
- original
- ExpectedToolCall
Applies to
ExpectedToolCall(String, IReadOnlyDictionary<String,Object>)
A tool call that an agent is expected to make.
public ExpectedToolCall(string Name, System.Collections.Generic.IReadOnlyDictionary<string,object>? Arguments = default);
new Microsoft.Agents.AI.ExpectedToolCall : string * System.Collections.Generic.IReadOnlyDictionary<string, obj> -> Microsoft.Agents.AI.ExpectedToolCall
Public Sub New (Name As String, Optional Arguments As IReadOnlyDictionary(Of String, Object) = Nothing)
Parameters
- Name
- String
The tool/function name (e.g. "get_weather").
- Arguments
- IReadOnlyDictionary<String,Object>
Expected arguments. null means "don't check arguments".
When provided, evaluators typically do subset matching (all expected keys must be present).
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.