FoundationModels · IOS API REFERENCE
LanguageModelSession.SessionProperty
struct · iOS 27.0+ · SDK 27.1
@propertyWrapper struct SessionProperty<Value>A property wrapper that provides access to properties from within profiles, dynamic instructions, and tools. Use this to access properties across a language model session, like to access the session history: ```swift // Get a reference to the session history. @SessionProperty(\.history) var history ``` To create a custom session property, use ``SessionPropertyEntry()`` to define a custom key that you access with ``LanguageModelSession/SessionProperty``.
Members (0)
This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.
Skipped declarations
No declarations were skipped in this snapshot.