Contents

Loads

An expectation that Siri loads specific app skills.

Declaration

struct Loads

Overview

A skill is the Markdown instructions an app ships for a task, which can reference the app’s intents and chain them to satisfy a request. Use Loads to check whether Siri loads a skill into its planning for a turn.

Loads has no default enforcement, so you write Loads.Enforcement.required or Loads.Enforcement.preferred. Only a required skill counts toward the skillsLoadedPass metric. A turn fails a required Loads if Siri doesn’t load the skill.

A preferred skill appears in the report but never affects the score. Siri sees the app’s intents alongside the skill and might satisfy the request by calling them directly.

To name a skill, write its SkillDefinition in the closure. A skill has no properties to constrain, so the expectation matches by identity and checks only whether Siri loads that skill.

A passing check doesn’t show that Siri follows the skill’s instructions, because Siri doesn’t report which steps it performs in a skill. To verify the outcome, pair Loads with Calls for the intents the skill chains.

For more information about skills, see Orchestrating complex actions with app skills.

Topics

Creating a load expectation

Configuring enforcement

See Also

Expectations