<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntentsTesting",
  "identifier" : "/documentation/AppIntentsTesting/TransientAppEntityDefinition/resolved(from:)-6xsjl",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "App Intents Testing",
      "AppIntentsTesting"
    ],
    "preciseIdentifier" : "s:17AppIntentsTesting09TransientA16EntityDefinitionV8resolved4fromAA03AnydaE0V0aB010IntentFileV_tYaKF"
  },
  "title" : "resolved(from:)"
}
-->

# resolved(from:)

Resolves a transient entity from an exported `IntentFile` through the entity type’s
`Transferable` conformance.

```
func resolved(from file: IntentFile) async throws -> AnyTransientAppEntity
```

## Parameters

`file`

The `IntentFile` containing the exported entity data.

## Return Value

The resolved transient entity.

## Discussion

Use this to verify the import direction — that an `IntentFile` produced by
`AnyTransientAppEntity/exported(as:)-swift.method` (or constructed from test data) can be resolved
back into a transient entity through the same pipeline used at runtime.

> Throws: If the entity type does not support the file’s content type.

```swift
let file = try await transientEntity.exported(as: .json)
let resolved = try await sessionEntityDef.resolved(from: file)
```

---

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)