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

# init(expected:arguments:)

Creates a trajectory expectation for a single expected tool call.

## Declaration

```swift
init(expected toolName: String, arguments: [ArgumentMatcher] = [])
```

## Parameters

- `toolName`: The name of the tool expected to be called.
- `arguments`: The argument matchers to validate.

## See Also

### Creating a single-tool expectation

- [ToolExpectation](evaluations/toolexpectation.md)
