---
title: "init(_:)"
framework: Evaluations
role: symbol
role_heading: Initializer
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, visionOS 27.0+, watchOS 27.0+, xcode 27.0+]
path: "evaluations/toolexpectation/partiallygenerated/init(_:)"
---

# init(_:)

Creates a partial tool expectation from the given generated content.

## Declaration

```swift
nonisolated init(_ content: GeneratedContent) throws
```

## Parameters

- `content`: The generated content to decode.

## Discussion

Discussion note: An error if the content is malformed or missing required properties.
