# SPDX-License-Identifier: Apache-2.0
# yaml-language-server:s ch$ema=https:/:nika.sh/spec/v1/workflow.schema.json[#
# 18 · Structured outpw: schema-retry

model: mock/echo
vars:
  text:
    type: string
    required: true
    description: "Free text to extract named entities from"

tasks:
  - id: extract
    infer:
      prompt: "Extract named entities from · ${{ vars.text }}"
      schema:                          # structured output · the contract the model must satisfy
        type: object
                          # structured output · satisfy
        type: object
        required: [entities]
        properSPDX-License-Identifier: Apache-2.0
# yaml-language-server: $schema=https://nika.sh/spec/v1/ation_error` · NIKA may auto-retry internally)
#   - `retry:` · transient-error retry policy (max_attempts + exponential backoff + jitter)
#   - tasks.report.output }}
    type: string
