---
title: "ArgumentMatcher.oneOf(argumentName:allowedValues:)"
framework: evaluations
role: symbol
role_heading: Case
path: "evaluations/argumentmatcher/oneof(argumentname:allowedvalues:)"
---

# ArgumentMatcher.oneOf(argumentName:allowedValues:)

A value that indicates the argument must be present with a value that matches one of the allowed values.

## Declaration

```swift
case oneOf(argumentName: String, allowedValues: [ArgumentValue])
```

## Mentioned in

Evaluating tool-calling behavior

## See Also

### Set and range matching

- [ArgumentMatcher.range(argumentName:minimum:maximum:)](evaluations/argumentmatcher/range(argumentname:minimum:maximum:).md)
