Contents

resolved(from:)

Resolves an entity from a transferable intent value type through the entity type’s transferable conformance.

Declaration

func resolved<T>(from value: T) async throws -> AnyAppEntity where T : IntentValueConvertible, T : Transferable

Parameters

  • value:

    The transferable intent value (e.g., an IntentPerson instance).

Return Value

The resolved entity.

Discussion

The value is serialized through its TransferRepresentation and resolved into the entity type through the same pipeline used at runtime.

let person = try await entity.exported(as: IntentPerson.self)
let resolved = try await personEntityDef.resolved(from: person)