> This page is for version 5.0 (Latest) (default).
> For other versions, use one of these documentation indexes:
> - 5.0 (Latest) (default): https://docs.nvidia.com/holoscan/sdk-user-guide/5-0-latest/llms.txt
> - ltsb-2.0: https://docs.nvidia.com/holoscan/sdk-user-guide/ltsb-2-0/llms.txt
> - 4.6: https://docs.nvidia.com/holoscan/sdk-user-guide/4-6/llms.txt
> - 4.5: https://docs.nvidia.com/holoscan/sdk-user-guide/4-5/llms.txt
> - 4.4: https://docs.nvidia.com/holoscan/sdk-user-guide/4-4/llms.txt
> - 4.3: https://docs.nvidia.com/holoscan/sdk-user-guide/4-3/llms.txt
> - Archives: https://docs.nvidia.com/holoscan/sdk-user-guide/archives/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/holoscan/sdk-user-guide/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/holoscan/sdk-user-guide/_mcp/server.

# holoscan::OutputPortConfigurator

> Configure cold authoring policy for one Graph-owned output port.

```cpp showLineNumbers={false}
template <PublishedPayload T>
class OutputPortConfigurator
```

Configure cold authoring policy for one Graph-owned output port.

A configurator is a non-owning handle. It remains usable only while the originating [Graph](graph) and exact port declaration remain live. Each successful call atomically updates cold authoring state; a rejected call leaves the port and its incident edges unchanged. Configurators do not make [Graph](graph) authoring thread-safe, so callers must serialize them with all other reads and mutations of the same [Graph](graph).

```cpp showLineNumbers={false}
#include <holoscan/graph.hpp>
```

**Template parameters**

**`T`** `PublishedPayload`

[Exact](../structs/exact) published payload type of the output declaration.

---

---

## Constructors

### OutputPortConfigurator \[#outputportconfigurator]

```cpp showLineNumbers={false}
holoscan::OutputPortConfigurator<T>::OutputPortConfigurator(
    std::weak_ptr<detail::GraphState> state,
    GraphPortId port,
    std::shared_ptr<const void> handle_identity
) noexcept
```

---

## Methods

### max_emits_per_compute \[#maxemitspercompute]

```cpp showLineNumbers={false}
OutputPortConfigurator & holoscan::OutputPortConfigurator<T>::max_emits_per_compute(
    std::uint32_t count = 1
)
```

Override the positive per-compute emission bound.

**Returns:** This configurator for fluent authoring.

**Throws:** `RuntimeError` if `count` is zero or the source [Graph](graph) is unavailable.

**Parameters**

**`count`** `std::uint32_t` — default: 1

Positive maximum accepted emissions per compute call.

---

### late_joiner_history_depth \[#latejoinerhistorydepth]

```cpp showLineNumbers={false}
OutputPortConfigurator & holoscan::OutputPortConfigurator<T>::late_joiner_history_depth(
    std::uint32_t depth
)
```

Override the finite late-joiner history depth.

**Returns:** This configurator for fluent authoring.

**Throws:** `RuntimeError` if `depth` is zero or the source [Graph](graph) is unavailable.

**Parameters**

**`depth`** `std::uint32_t`

Positive retained-sample depth.

---

### produces_tensor \[#producestensor]

```cpp showLineNumbers={false}
OutputPortConfigurator & holoscan::OutputPortConfigurator<T>::produces_tensor(
    const TensorOutputSpec &spec
)
```

Override this output with one [Tensor](tensor) spec.

> **Note**
>
> kPassThrough does not remove Runtime-pool storage declared during [Operator](operator) setup; [Graph](graph) overrides may tighten setup resource declarations but do not retract them.

**Returns:** This configurator for fluent authoring.

**Parameters**

**`spec`** `const TensorOutputSpec &`

Representation, finite bounds, and transfer promises.

---

### payload_options \[#payloadoptions]

```cpp showLineNumbers={false}
OutputPortConfigurator & holoscan::OutputPortConfigurator<T>::payload_options(
    PayloadOptions options
)
```

Override schema identity and payload options for this output.

**Returns:** This configurator for fluent authoring.

**Parameters**

**`options`** `PayloadOptions`

Options copied before return.

---

### diagnostic_alias \[#diagnosticalias]

```cpp showLineNumbers={false}
OutputPortConfigurator & holoscan::OutputPortConfigurator<T>::diagnostic_alias(
    std::string_view alias
)
```

Assign an owned diagnostic alias without changing port identity.

**Returns:** This configurator for fluent authoring.

**Throws:** `RuntimeError` if `alias` is invalid or the source [Graph](graph) is unavailable.

**Parameters**

**`alias`** `std::string_view`

Nonempty bounded UTF-8 alias copied before return.

---

### state \[#state]

```cpp showLineNumbers={false}
std::shared_ptr<detail::GraphState> holoscan::OutputPortConfigurator<T>::state() const
```

### apply \[#apply]

```cpp showLineNumbers={false}
static void holoscan::OutputPortConfigurator<T>::apply(
    expected<void, Error> result
)
```

---

## Types

### Typedefs

| Name                         | Definition | Description                                                          |
| ---------------------------- | ---------- | -------------------------------------------------------------------- |
| `graph_authoring_handle_tag` | `void`     | Opt this authoring handle out of replayable [Graph](graph) captures. |

---

## Member variables

| Name               | Type                                  | Description |
| ------------------ | ------------------------------------- | ----------- |
| `state_`           | `std::weak_ptr< detail::GraphState >` |             |
| `port_`            | `GraphPortId`                         |             |
| `handle_identity_` | `std::shared_ptr< const void >`       |             |