---
title: "modelDescription(ofFunctionNamed:completionHandler:)"
framework: coreml
role: symbol
role_heading: Instance Method
path: "coreml/mlmodelasset/modeldescription(offunctionnamed:completionhandler:)"
---

# modelDescription(ofFunctionNamed:completionHandler:)

The model descripton for a specified function.

## Declaration

```swift
func modelDescription(ofFunctionNamed functionName: String, completionHandler handler: @escaping @Sendable (MLModelDescription?, (any Error)?) -> Void)
```

```swift
func modelDescription(of functionName: String) async throws -> MLModelDescription
```

## Discussion

Discussion Use this method to get the description of the model such as the feature descriptions, the model author, and other metadata. let modelAsset = try MLModelAsset(url: modelURL) let modelDescription = try await modelAsset.modelDescription(of: "my_function") print(modelDescription)

## See Also

### Getting the model description

- [modelDescription(completionHandler:)](coreml/mlmodelasset/modeldescription(completionhandler:).md)
