resolved(from:)
Resolves a transient entity from a transferable intent value type through the entity type’s Transferable conformance.
Declaration
func resolved<T>(from value: T) async throws -> AnyTransientAppEntity where T : IntentValueConvertible, T : TransferableParameters
- value:
The transferable intent value (e.g., an
IntentPersoninstance).
Return Value
The resolved transient entity.
Discussion
The value is serialized through its TransferRepresentation and resolved into the transient entity type through the same pipeline used at runtime.
let person = try await transientEntity.exported(as: IntentPerson.self)
let resolved = try await sessionEntityDef.resolved(from: person)