<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAI",
  "identifier" : "/documentation/CoreAI/AIModelAsset/FunctionDescriptor",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core AI",
      "CoreAI"
    ],
    "preciseIdentifier" : "s:11CoreAIAsset12AIModelAssetV18FunctionDescriptorV"
  },
  "title" : "AIModelAsset.FunctionDescriptor"
}
-->

# AIModelAsset.FunctionDescriptor

A description of a function in the model’s program.

```
struct FunctionDescriptor
```

## Topics

### Inspecting function details

[`var name: String`](/documentation/CoreAI/AIModelAsset/FunctionDescriptor/name)

The function’s symbol name.

[`var inputs: [AIModelAsset.ValueDescriptor]`](/documentation/CoreAI/AIModelAsset/FunctionDescriptor/inputs)

The descriptions of the function’s inputs.

[`var outputs: [AIModelAsset.ValueDescriptor]`](/documentation/CoreAI/AIModelAsset/FunctionDescriptor/outputs)

The descriptions of the function’s outputs.

### Instance Properties

[`var states: [AIModelAsset.ValueDescriptor]`](/documentation/CoreAI/AIModelAsset/FunctionDescriptor/states)

The descriptions of the function’s states.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

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)