A protocol for types that wrap another intent value that supports conversion.
`IntentValueConvertibleWrapper` enables you to create specialized types that derive their
`IntentValueConvertible` conformance from an underlying base type. This pattern allows you
to extend existing convertible types with additional functionality while preserving their
ability to work within the AppIntents framework.
Use this protocol when you want to create a type that:
- Wraps an existing `IntentValueConvertible` type
- Adds domain-specific properties or methods
- Maintains compatibility with the AppIntents framework
## Example
```swift
struct LandmarkEntity: IntentValueConvertibleWrapper {
var baseValue: AnyAppEntity
init(baseValue: AnyAppEntity) {
self.baseValue = baseValue
}
var continent: String {
get throws {
try baseValue.continent
}
}
}
```
Creates an intent value container that represents this wrapper.
This implementation delegates to the base value's container creation method,
ensuring that the wrapper behaves consistently with its underlying type.
- Parameter context: The context to use for the conversion.
- Returns: An intent value container representing this wrapper.