> ## 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](/reference/language/overview) / `outputs`

## Meaning and placement

### document

The workflow's return value · symmetric to inputs. Each entry is a `$&#123;&#123; tasks.X.output &#125;&#125;` 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 | \{"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"}}}]} |

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

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

## In a source template

Excerpt from `templates/agent-loop.nika.yaml`, source lines 142–148. 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.yaml`            | [Line 145](https://github.com/supernovae-st/nika-spec/blob/c5ebbb7b862b68bc6cf7235efba61173b844afc6/templates/agent-loop.nika.yaml#L145)            |
| `templates/api-upload-and-create.nika.yaml` | [Line 98](https://github.com/supernovae-st/nika-spec/blob/c5ebbb7b862b68bc6cf7235efba61173b844afc6/templates/api-upload-and-create.nika.yaml#L98)   |
| `templates/chain.nika.yaml`                 | [Line 92](https://github.com/supernovae-st/nika-spec/blob/c5ebbb7b862b68bc6cf7235efba61173b844afc6/templates/chain.nika.yaml#L92)                   |
| `templates/classify-and-route.nika.yaml`    | [Line 135](https://github.com/supernovae-st/nika-spec/blob/c5ebbb7b862b68bc6cf7235efba61173b844afc6/templates/classify-and-route.nika.yaml#L135)    |
| `templates/corpus-qa.nika.yaml`             | [Line 122](https://github.com/supernovae-st/nika-spec/blob/c5ebbb7b862b68bc6cf7235efba61173b844afc6/templates/corpus-qa.nika.yaml#L122)             |
| `templates/docker-report.nika.yaml`         | [Line 103](https://github.com/supernovae-st/nika-spec/blob/c5ebbb7b862b68bc6cf7235efba61173b844afc6/templates/docker-report.nika.yaml#L103)         |
| `templates/document-to-fields.nika.yaml`    | [Line 102](https://github.com/supernovae-st/nika-spec/blob/c5ebbb7b862b68bc6cf7235efba61173b844afc6/templates/document-to-fields.nika.yaml#L102)    |
| `templates/etl-state.nika.yaml`             | [Line 146](https://github.com/supernovae-st/nika-spec/blob/c5ebbb7b862b68bc6cf7235efba61173b844afc6/templates/etl-state.nika.yaml#L146)             |
| `templates/evaluate-and-optimize.nika.yaml` | [Line 136](https://github.com/supernovae-st/nika-spec/blob/c5ebbb7b862b68bc6cf7235efba61173b844afc6/templates/evaluate-and-optimize.nika.yaml#L136) |
| `templates/fanout.nika.yaml`                | [Line 182](https://github.com/supernovae-st/nika-spec/blob/c5ebbb7b862b68bc6cf7235efba61173b844afc6/templates/fanout.nika.yaml#L182)                |
| `templates/gate-and-act.nika.yaml`          | [Line 78](https://github.com/supernovae-st/nika-spec/blob/c5ebbb7b862b68bc6cf7235efba61173b844afc6/templates/gate-and-act.nika.yaml#L78)            |
| `templates/human-gated-ship.nika.yaml`      | [Line 174](https://github.com/supernovae-st/nika-spec/blob/c5ebbb7b862b68bc6cf7235efba61173b844afc6/templates/human-gated-ship.nika.yaml#L174)      |
| `templates/media-asset-pack.nika.yaml`      | [Line 121](https://github.com/supernovae-st/nika-spec/blob/c5ebbb7b862b68bc6cf7235efba61173b844afc6/templates/media-asset-pack.nika.yaml#L121)      |
| `templates/website-brief.nika.yaml`         | [Line 104](https://github.com/supernovae-st/nika-spec/blob/c5ebbb7b862b68bc6cf7235efba61173b844afc6/templates/website-brief.nika.yaml#L104)         |

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

## Contract and implementation

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

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

[How documentation stays connected](/reference/knowledge-system).
