> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nika.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# outputs

> Contract, placement, related fields and source examples for this Nika YAML field.

[Language reference](https://docs.nika.sh/reference/language/overview.md) / `outputs`

## Meaning and placement

### document

The workflow's return value · symmetric to inputs. Each entry is a `${{ tasks.X.output }}` reference (untyped form · string) OR a typed declaration \{ value · type · description }. Powers `nika run` result + the output half of the callable-workflow schema.

| Property | Declaration |
| - | - |
| Requirement | Optional in this object |
| Schema location | `/properties/outputs` |
| type | `"object"` |
| additionalProperties | declaration below |

<details>
  <summary>`additionalProperties` schema declaration (spec source, not a lesson)</summary>

  ```json theme={"system"}
  {
    "anyOf": [
      {
        "type": "string"
      },
      {
        "type": "object",
        "required": [
          "value"
        ],
        "additionalProperties": false,
        "properties": {
          "value": {
            "type": "string"
          },
          "type": {
            "$ref": "#/$defs/typeExpr",
            "description": "The output's type · the full TypeExpr of 09-types (R3b · LAW-GRAMMAR-0211 · the flat 6-enum is dead alongside the inputs half · LAW-SURFACE-0211)."
          },
          "description": {
            "description": "Free-form prose about this output · what a caller receives. Documentation only — the contract is `value` and `type`.",
            "type": "string"
          }
        }
      }
    ]
  }
  ```
</details>

**In the same object:** [const](https://docs.nika.sh/reference/language/words/const.md) · [inputs](https://docs.nika.sh/reference/language/words/inputs.md) · [model](https://docs.nika.sh/reference/language/words/model.md) · [nika](https://docs.nika.sh/reference/language/words/nika.md) · [permits](https://docs.nika.sh/reference/language/words/permits.md) · [run](https://docs.nika.sh/reference/language/words/run.md) · [secrets](https://docs.nika.sh/reference/language/words/secrets.md) · [tasks](https://docs.nika.sh/reference/language/words/tasks.md)

[Schema source (use the pointer above)](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/schemas/workflow.schema.json)

## In a source template

Excerpt from `templates/agent-loop.nika`, source lines 128–134. This is a fragment, not a runnable workflow.

```yaml illustration theme={"system"}
        condition: "${{ with.has_findings }}"
        message: "Agent returned no findings, do not trust an empty run"   # SLOT

outputs:
  findings:
    value: ${{ tasks.execute.output.findings }}
    description: "The agent's typed findings"   # SLOT
```

### Templates containing this field

| Template | Source |
| - | - |
| `templates/agent-loop.nika` | [Line 131](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/agent-loop.nika#L131) |
| `templates/aggregate-by-key.nika` | [Line 70](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/aggregate-by-key.nika#L70) |
| `templates/api-upload-and-create.nika` | [Line 98](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/api-upload-and-create.nika#L98) |
| `templates/bounded-batch.nika` | [Line 69](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/bounded-batch.nika#L69) |
| `templates/chain.nika` | [Line 93](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/chain.nika#L93) |
| `templates/classify-and-route.nika` | [Line 135](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/classify-and-route.nika#L135) |
| `templates/corpus-qa.nika` | [Line 122](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/corpus-qa.nika#L122) |
| `templates/deduplicate-records.nika` | [Line 84](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/deduplicate-records.nika#L84) |
| `templates/docker-report.nika` | [Line 101](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/docker-report.nika#L101) |
| `templates/document-to-fields.nika` | [Line 102](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/document-to-fields.nika#L102) |
| `templates/etl-state.nika` | [Line 146](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/etl-state.nika#L146) |
| `templates/evaluate-and-optimize.nika` | [Line 141](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/evaluate-and-optimize.nika#L141) |
| `templates/fanout.nika` | [Line 180](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/fanout.nika#L180) |
| `templates/gate-and-act.nika` | [Line 79](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/gate-and-act.nika#L79) |
| `templates/human-gated-ship.nika` | [Line 174](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/human-gated-ship.nika#L174) |
| `templates/media-asset-pack.nika` | [Line 120](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/media-asset-pack.nika#L120) |
| `templates/parallel-review.nika` | [Line 145](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/parallel-review.nika#L145) |
| `templates/project-public-fields.nika` | [Line 94](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/project-public-fields.nika#L94) |
| `templates/recover-optional-file.nika` | [Line 69](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/recover-optional-file.nika#L69) |
| `templates/snapshot-diff.nika` | [Line 74](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/snapshot-diff.nika#L74) |
| `templates/validate-records.nika` | [Line 66](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/validate-records.nika#L66) |
| `templates/website-brief.nika` | [Line 103](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/website-brief.nika#L103) |

These are literal key occurrences in the source files, not an execution or conformance claim. [How to instantiate a template](https://docs.nika.sh/guides/templates.md).

## Contract and implementation

This page projects the named specification revision. Check [released engine status](https://docs.nika.sh/reference/status.md) and [the validation workflow](https://docs.nika.sh/guides/agent-authoring.md) before running a file. An optional field is not evidence that every engine supports every value.

Canonical identity: `language:word:outputs`. Spec revision: [`5c40ba456c53`](https://github.com/supernovae-st/nika-spec/tree/5c40ba456c53a4ab663a949d44003078e161305d).

[How documentation stays connected](https://docs.nika.sh/reference/knowledge-system.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.