# xor_args

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/utils/xor_args)

Validate specified keyword args are mutually exclusive.

## Signature

```python
xor_args(
    *arg_groups: tuple[str, ...] = (),
) -> Callable
```

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/2baf5f1092ca631657cb37e0db432295daea9f2e/python/langsmith/utils.py#L150)