resolved(from:)
Resolves a transient entity from an exported IntentFile through the entity type’s Transferable conformance.
Declaration
func resolved(from file: IntentFile) async throws -> AnyTransientAppEntityParameters
- file:
The
IntentFilecontaining 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.
let file = try await transientEntity.exported(as: .json)
let resolved = try await sessionEntityDef.resolved(from: file)