---
title: "init(_:)"
framework: foundationmodels
role: symbol
role_heading: Initializer
path: "foundationmodels/languagemodelsession/sessionproperty/init(_:)"
---

# init(_:)

Creates a session property with the specified key path.

## Declaration

```swift
init(_ keyPath: ReferenceWritableKeyPath<SessionPropertyValues, Value>)
```

## Parameters

- `keyPath`: The key path to the property.
