<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INParameter/init(keyPath:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "s:So11INParameterC7IntentsE7keyPathABSgs03KeyD0Cyxq_G_tcr0_lufc"
  },
  "title" : "init(keyPath:)"
}
-->

# init(keyPath:)

Creates a new parameter object using the specified key path and class information.

```
@nonobjc convenience init?<Root, Value>(keyPath: KeyPath<Root, Value>)
```

## Parameters

`keyPath`

Specifies a path to a value within a type.The intent or intent response class that acts as the root of the specified key path. For example, when specifying properties of a ride request intent, you would specify the [`INRequestRideIntent`](/documentation/Intents/INRequestRideIntent) class. The path to a property of the specified class. For example, to specify the key path for the [`pickupLocation`](/documentation/Intents/INRequestRideIntent/pickupLocation) property of a ride request, specify the string pickupLocation.

## Return Value

An initialized parameter object.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)