---
sidebar:
  hidden: true
title: roboto.domain.actions.launch_requirements
---
## Module Contents

### EgressPosture

```python
class roboto.domain.actions.launch_requirements.EgressPosture
```

`from roboto import EgressPosture`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/launch_requirements.py#L36-L46)

Bases: `roboto.compat.StrEnum`

Whether an invocation can reach the public internet.

Roboto's own API, object storage, and container registry stay reachable either way.

**Attributes**

- **EgressPosture.DenyAll** = `'deny_all'`: No access to the public internet.
- **EgressPosture.Open** = `'open'`: Access to the public internet.

### InputKind

```python
class roboto.domain.actions.launch_requirements.InputKind
```

`from roboto.domain.actions import InputKind`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/launch_requirements.py#L16-L33)

Bases: `roboto.compat.StrEnum`

Kind of input an action can be invoked over.

**Attributes**

- **InputKind.Dataset** = `'dataset'`: Datasets ([`Dataset`](/docs/reference/python-sdk/roboto/domain/datasets/dataset#roboto.domain.datasets.dataset.Dataset)).

  An invocation names a dataset as its data source, by `data_source_id`; it chooses files, sessions and topics with selectors instead.

- **InputKind.Files** = `'files'`: Files ([`File`](/docs/reference/python-sdk/roboto/domain/files/file#roboto.domain.files.file.File)).

- **InputKind.Sessions** = `'sessions'`: Sessions ([`Session`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session)).

- **InputKind.Topics** = `'topics'`: Topics ([`Topic`](/docs/reference/python-sdk/roboto/domain/topics/topic#roboto.domain.topics.topic.Topic)).

### InputRequirement

```python
class roboto.domain.actions.launch_requirements.InputRequirement(/, **data: Any)
```

`from roboto.domain.actions import InputRequirement`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/launch_requirements.py#L65-L92)

Bases: `pydantic.BaseModel`

Kinds of input an action's code can read, and whether an invocation must supply one.

Carried in `LaunchRequirements.inputs`.

Constructing a requirement with `required=True` and an empty `kinds` raises `pydantic.ValidationError`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **InputRequirement.kinds** (`frozenset[InputKind]`): Kinds of input the action's code can read.

  An empty set declares that the action takes no inputs. To declare nothing about inputs, leave `LaunchRequirements.inputs` unset instead.

- **InputRequirement.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

- **InputRequirement.required** (`bool`) = `True`: Whether an invocation must supply at least one input of a kind in `kinds`. Defaults to `True`.

### LaunchRequirements

```python
class roboto.domain.actions.launch_requirements.LaunchRequirements(/, **data: Any)
```

`from roboto.domain.actions import LaunchRequirements`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/launch_requirements.py#L95-L134)

Bases: `pydantic.BaseModel`

Requirements that a version of an action declares its code needs for an invocation to work.

Roboto checks every invocation against `inputs`: one that supplies an input of a kind the version does not accept, or supplies none when one is required, raises `RobotoInvalidRequestException`. Roboto checks the other requirements only for a version whose code is sent with each invocation or that runs on a compute environment other than the default. For such a version, an invocation that contradicts a declared requirement, or that runs on a compute environment that cannot meet one, raises `RobotoInvalidRequestException`. Other versions run without those checks.

Every field except `requires_gpu` defaults to `None`, which declares nothing; it never means "off". A declaration that sets only some fields declares only those.

**Parameters**

- **data** (`Any`)

**Attributes**

- **LaunchRequirements.egress** (`EgressPosture | None`) = `None`: Network access the code needs.

  `EgressPosture.Open` when it reaches the public internet, `EgressPosture.DenyAll` when it must not.

- **LaunchRequirements.inputs** (`InputRequirement | None`) = `None`: Kinds of input the code can read, and whether an invocation must supply one.

- **LaunchRequirements.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

- **LaunchRequirements.output** (`OutputChannel | None`) = `None`: Where the code's outputs must be collected.

- **LaunchRequirements.payload** (`bool | None`) = `None`: Whether the code is sent with each invocation (`True`) or built into a container image (`False`).

- **LaunchRequirements.requires_gpu** (`bool`) = `False`: Whether the code needs a GPU. `False` declares nothing, as `None` does for the other fields.

- **LaunchRequirements.staged_inputs** (`bool | None`) = `None`: Whether the code needs its input files downloaded to local disk before it starts.

  `True` if it does; `False` if it reads them through the SDK instead. Only files are downloaded; the code reads sessions and topics through the SDK either way.

### OutputChannel

```python
class roboto.domain.actions.launch_requirements.OutputChannel
```

`from roboto.domain.actions import OutputChannel`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/launch_requirements.py#L49-L62)

Bases: `roboto.compat.StrEnum`

Where an invocation collects its action's outputs.

Every compute environment can collect into the invocation's artifacts; only some can upload into a dataset.

**Attributes**

- **OutputChannel.Artifacts** = `'artifacts'`: Storage of the outputs as artifacts of the invocation.
- **OutputChannel.Dataset** = `'dataset'`: Upload of the outputs into a dataset.
- **OutputChannel.NoneCollected** = `'none'`: No collection of outputs.
