Appearance
select-provider-by-context
workflow informA skill of the SOM skill library 0.2.2, as SOM Managed Bus checks its configured instances. The library file is the specification; this page is generated from the bus's code.
| Skill id | smart-stories/select-provider-by-context |
| Version | 0.2.2 (suite som-1.0.0+lib-0.2.2) |
| Category | workflow |
| Severity range | inform |
| Authority scale | Optional: the skill compares no authorities |
Recalls on
An executor running this skill subscribes to these message types, and always to story.context (the executor contract).
| Message type | Spec |
|---|---|
story.context | SOM 1.0 schema: story-context |
asset.ingested | pending spec no SOM 1.0 schema: what that means |
asset.updated | pending spec no SOM 1.0 schema: what that means |
2 of these 3 have no SOM 1.0 schema yet: an executor uses them only as wake-ups.
Configuration
A configured instance sets these values, with its own instance_label (every warning it raises carries it as rule_id). Unknown fields are refused, so a typo never falls back to a default.
| Field | Kind | Required | What it is |
|---|---|---|---|
capability | text | Yes | The capability this instance resolves providers for, for example transcription |
trigger_path | path | Yes | The state that means the capability is warranted at all |
trigger_value | literal | Yes | The value of trigger_path that warrants it |
watched_field | path | Yes | The story field the map resolves over, for example tags[].value |
selection_map | rows: when, provider | Yes | Ordered rows of when value to provider. First match resolves |
default_provider | text | Yes | Resolved when no row matches |
providers | map | Yes | The provider identifiers this instance may resolve to, each with its registration reference |
What each kind accepts: field kinds.
Check your values
Check a configured instance before you register it, with the skill catalogue API; nothing is stored. A publisher registers it on the portal: Run skills in your house.
All skills: skill library catalogue.