<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/FileEntity",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents10FileEntityP"
  },
  "title" : "FileEntity"
}
-->

# FileEntity

An entity that refers to a document or other file.

```
protocol FileEntity : AppEntity where Self.ID == FileEntityIdentifier
```

## Relationships

### Inherits From

[`PersistentlyIdentifiable`](/documentation/AppIntents/PersistentlyIdentifiable)

[`AppValue`](/documentation/AppIntents/AppValue)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`DisplayRepresentable`](/documentation/AppIntents/DisplayRepresentable)

[`Identifiable`](/documentation/Swift/Identifiable)

[`TypeDisplayRepresentable`](/documentation/AppIntents/TypeDisplayRepresentable)

[`AppEntity`](/documentation/AppIntents/AppEntity)

[`InstanceDisplayRepresentable`](/documentation/AppIntents/InstanceDisplayRepresentable)

[`CustomLocalizedStringResourceConvertible`](/documentation/Foundation/CustomLocalizedStringResourceConvertible)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)