---
title: "init(_:arguments:)"
framework: evaluations
role: symbol
role_heading: Initializer
path: "evaluations/toolexpectation/init(_:arguments:)"
---

# init(_:arguments:)

Creates a new tool expectation.

## Declaration

```swift
init(_ name: String, arguments: [ArgumentMatcher] = [])
```

## Parameters

- `name`: The name of the tool.
- `arguments`: The argument matchers to validate against the tool call.
