---
title: stateNames
framework: coreai
role: symbol
role_heading: Instance Property
path: coreai/inferencefunctiondescriptor/statenames
---

# stateNames

The names of the function’s states.

## Declaration

```swift
var stateNames: [String] { get }
```

## Discussion

Discussion States are function arguments that the function both reads and writes during inference. You must provide a mutable view for every state when calling InferenceFunction/run(inputs:states:outputViews:).

## See Also

### Describing state

- [stateDescriptor(of:)](coreai/inferencefunctiondescriptor/statedescriptor(of:).md)
