<!--
{
  "availability" : [
    "iOS: 27.3.0 -",
    "iPadOS: 27.3.0 -",
    "macOS: 27.3.0 -",
    "visionOS: 27.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriEvaluations",
  "identifier" : "/documentation/SiriEvaluations/SkillExpectationBuilder",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Siri Evaluations"
    ],
    "preciseIdentifier" : "s:15SiriEvaluations23SkillExpectationBuilderO"
  },
  "title" : "SkillExpectationBuilder"
}
-->

# SkillExpectationBuilder

A result builder that collects the skills in a loads expectation.

```
@resultBuilder enum SkillExpectationBuilder
```

## Overview

It accepts the App Skills inside a [`Loads`](/documentation/SiriEvaluations/Loads) block by identity: a bare `SkillDefinition`
(`definitions.skills["organize-event"]`). A skill has no properties to constrain, only whether Siri
loaded it, so there is no `.expect` form here.

## Topics

### Building results

[`static func buildArray([[SkillDefinition]]) -> [SkillDefinition]`](/documentation/SiriEvaluations/SkillExpectationBuilder/buildArray(_:))

Creates a component by combining the components from each iteration of a loop.

[`static func buildBlock([SkillDefinition]...) -> [SkillDefinition]`](/documentation/SiriEvaluations/SkillExpectationBuilder/buildBlock(_:))

Creates a component by combining the components of a block.

[`static func buildEither(first: [SkillDefinition]) -> [SkillDefinition]`](/documentation/SiriEvaluations/SkillExpectationBuilder/buildEither(first:))

Creates a component from the first branch of a conditional statement.

[`static func buildEither(second: [SkillDefinition]) -> [SkillDefinition]`](/documentation/SiriEvaluations/SkillExpectationBuilder/buildEither(second:))

Creates a component from the second branch of a conditional statement.

[`static func buildExpression(SkillDefinition) -> [SkillDefinition]`](/documentation/SiriEvaluations/SkillExpectationBuilder/buildExpression(_:))

Creates a component from a skill definition.

[`static func buildOptional([SkillDefinition]?) -> [SkillDefinition]`](/documentation/SiriEvaluations/SkillExpectationBuilder/buildOptional(_:))

Creates a component from a conditional statement with no alternative branch.



---

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)