For anyone looking for a temporary solution, you can (but probably shouldn't) do this:
struct DynamicKeyValuePairs<K, V> {
let _elements: [(K, V)]
init(_elements: [(K, V)]) {
self._elements = _elements
}
}
let kvp = unsafeBitCast(
DynamicKeyValuePairs(_elements: properties),
to: KeyValuePairs<String, any ConvertibleToGeneratedContent>.self
)
Topic:
Machine Learning & AI
SubTopic:
Foundation Models