---
title: "AppEntity(_:)"
framework: appintents
role: symbol
role_heading: Macro
platforms: [iOS 27.3+, iPadOS 27.3+, Mac Catalyst 27.3+, macOS 27.3+, visionOS 27.3+]
path: "appintents/appentity(_:)"
---

# AppEntity(_:)

Marks a transient entity whose values the model can generate on its own.

## Declaration

```swift
@attached(extension, conformances: GenerableEntity) macro AppEntity(_ traits: AppEntityTraits)
```

## Parameters

- `traits`: The entity’s roles, such as .generable or [.generable].

## Overview

Overview Apply this macro to a structure or class that conforms to TransientAppEntity. It adds a GenerableEntity conformance, using the availability declared on the type, or the availability of GenerableEntity when the type declares none. @AppEntity(.generable) struct FlightSearch: TransientAppEntity { ... }

## See Also

### Entity support

- [GenerableEntity](appintents/generableentity.md)
- [AppEntity(_:schema:)](appintents/appentity(_:schema:).md)
- [ComputedProperty(title:description:authenticationPolicy:visibility:)](appintents/computedproperty(title:description:authenticationpolicy:visibility:).md)
- [ComputedProperty(title:description:authenticationPolicy:visibility:customIndexingKey:)](appintents/computedproperty(title:description:authenticationpolicy:visibility:customindexingkey:).md)
- [ComputedProperty(title:description:authenticationPolicy:visibility:indexingKey:)](appintents/computedproperty(title:description:authenticationpolicy:visibility:indexingkey:).md)
- [DeferredProperty(title:description:authenticationPolicy:visibility:)](appintents/deferredproperty(title:description:authenticationpolicy:visibility:).md)
- [DeferredProperty(title:description:authenticationPolicy:visibility:indexingKey:)](appintents/deferredproperty(title:description:authenticationpolicy:visibility:indexingkey:).md)
- [AppEntityTraits](appintents/appentitytraits.md)
