---
title: explanation
framework: foundationmodels
role: symbol
role_heading: Instance Property
path: foundationmodels/languagemodelsession/generationerror/refusal/explanation
---

# explanation

An explanation for why the model refused to respond.

## Declaration

```swift
nonisolated(nonsending) var explanation: LanguageModelSession.Response<String> { get async throws }
```

## See Also

### Getting the explanation

- [explanationStream](foundationmodels/languagemodelsession/generationerror/refusal/explanationstream.md)
