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

### ActionProvenance

```python
class roboto.domain.actions.invocation_record.ActionProvenance(/, **data: Any)
```

`from roboto import ActionProvenance`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L312-L331)

Bases: `pydantic.BaseModel`

Action an invocation ran, identified by its name, its owning organization, and its version's digest.

Carried in `InvocationProvenance.action`.

`name` and `org_id` are both empty strings when Roboto cannot name the action, such as when the invocation ran code that is not a saved action.

**Parameters**

- **data** (`Any`)

**Attributes**

- **ActionProvenance.digest** (`str | None`) = `None`: Digest of the action version the invocation ran, or `None` if Roboto recorded none.

- **ActionProvenance.name** (`str`): Name of the action, unique within the organization that owns it.

- **ActionProvenance.org_id** (`str`): ID of the organization that owns the action.

  For an Action Hub action, this differs from the organization the invocation ran in.

### DataSelector

```python
class roboto.domain.actions.invocation_record.DataSelector(/, **data: Any)
```

`from roboto.domain.actions import DataSelector`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L125-L168)

Bases: `pydantic.BaseModel`

Selector that chooses one kind of an invocation's inputs: its files, its sessions, or its topics.

Carried in `InvocationInput.sessions` and `InvocationInput.topics`.

Set at least one of `query`, `ids`, and `names`. The selector chooses every input that any of them matches. Constructing a selector that sets none of them raises `pydantic.ValidationError`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **DataSelector.dataset_id** (`str | None`) = `None`: ID of the dataset that a file selector's `paths` are relative to.

  Every other field ignores it, and session and topic selectors ignore it entirely, with a warning. To limit a selection to one dataset, write the condition into `query` instead: `dataset_id = "ds_12345"` for files, or `dataset.dataset_id = "ds_12345"` for sessions and topics.

- **DataSelector.ids** (`list[str] | None`) = `None`: IDs of the inputs to select.

  File IDs in a file selector, session IDs in a session selector, and topic IDs in a topic selector. Repeated IDs are dropped.

- **DataSelector.names** (`list[str] | None`) = `None`: Names of the inputs to select, such as topic names. Repeated names are dropped.

- **DataSelector.query** (`str | None`) = `None`: RoboQL query that matches the inputs to select.

#### DataSelector.ensure_not_empty()

```python
def ensure_not_empty() -> DataSelector
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L163-L168)

Reject a selector that sets none of `query`, `ids`, and `names`.

**Returns**

- `DataSelector`

### ExecutableProvenance

```python
class roboto.domain.actions.invocation_record.ExecutableProvenance(/, **data: Any)
```

`from roboto import ExecutableProvenance`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L334-L344)

Bases: `pydantic.BaseModel`

Container image an invocation ran.

Carried in `InvocationProvenance.executable`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **ExecutableProvenance.container_image_digest** (`str | None`) = `None`: Digest of the container image Roboto pulled to run the invocation, or `None` if it recorded none.
- **ExecutableProvenance.container_image_uri** (`str | None`) = `None`: URI of the action's container image.

### FileSelector

```python
class roboto.domain.actions.invocation_record.FileSelector(/, **data: Any)
```

`from roboto.domain.actions import FileSelector`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L171-L196)

Bases: [`DataSelector`](/docs/reference/python-sdk/roboto/domain/actions/invocation_record#roboto.domain.actions.invocation_record.DataSelector)

Selector that chooses an invocation's file inputs, which can also select files by path within one dataset.

Carried in `InvocationInput.files`.

A RoboQL `query` can select the same files as `dataset_id` and `paths`, across any number of datasets: `dataset_id = "ds_12345" AND path LIKE "%.mcap"`.

Set at least one of `query`, `ids`, `names`, and `paths`. Constructing a file selector that sets none of them raises `pydantic.ValidationError`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **FileSelector.paths** (`list[str] | None`) = `None`: Gitignore-style patterns for the files to select.

  The patterns are relative to `dataset_id` or, when it is unset, to the invocation's data source. A RoboQL `query` can express them instead, as `path LIKE "<pattern>"`.

#### FileSelector.ensure_not_empty()

```python
def ensure_not_empty() -> FileSelector
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L191-L196)

Reject a selector that sets none of `query`, `ids`, `names`, and `paths`.

**Returns**

- `FileSelector`

### InvocationDataSource

```python
class roboto.domain.actions.invocation_record.InvocationDataSource(/, **data: Any)
```

`from roboto import InvocationDataSource`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L31-L61)

Bases: `pydantic.BaseModel`

Data source an invocation reads from: a dataset, or none.

An invocation whose invoker named no data source carries the placeholder that `unspecified` returns.

**Parameters**

- **data** (`Any`)

**Attributes**

- **InvocationDataSource.data_source_id** (`str`): ID of the dataset the invocation reads from, or a placeholder when the data source is unspecified.

  The placeholder names no dataset.

- **InvocationDataSource.data_source_type** (`InvocationDataSourceType`): Kind of data source, always `InvocationDataSourceType.Dataset`.

#### InvocationDataSource.is_unspecified()

```python
def is_unspecified() -> bool
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L59-L61)

Return whether this is the placeholder for an invocation that names no data source.

**Returns**

- `bool`

#### InvocationDataSource.unspecified()

```python
@staticmethod
def unspecified() -> InvocationDataSource
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L47-L57)

Return the data source of an invocation that names none.

Its type is `InvocationDataSourceType.Dataset` and its ID is a placeholder that matches no dataset. Check for it with `is_unspecified` rather than by comparing IDs.

**Returns**

- `InvocationDataSource`

### InvocationDataSourceType

```python
class roboto.domain.actions.invocation_record.InvocationDataSourceType(*args, **kwds)
```

`from roboto import InvocationDataSourceType`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L25-L28)

Bases: `enum.Enum`

Kind of data source an invocation reads from. `Dataset` is the only kind.

**Attributes**

- **InvocationDataSourceType.Dataset** = `'Dataset'`

### InvocationInput

```python
class roboto.domain.actions.invocation_record.InvocationInput(/, **data: Any)
```

`from roboto.domain.actions import InvocationInput`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L199-L309)

Bases: `pydantic.BaseModel`

Inputs an invocation reads: files, sessions, and topics, each chosen by one or more selectors.

A selector chooses inputs by RoboQL query, by ID, or by name; see `DataSelector`. At least one of `files`, `sessions`, and `topics` must be set: constructing an input that sets none of them, or sets each to an empty list, raises `pydantic.ValidationError`. An invocation that reads no inputs has no `InvocationInput`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **InvocationInput.files** (`FileSelector | list[FileSelector] | None`) = `None`: Selectors for the files to read, as one selector or a list.
- **InvocationInput.sessions** (`DataSelector | list[DataSelector] | None`) = `None`: Selectors for the sessions to read, as one selector or a list.
- **InvocationInput.topics** (`DataSelector | list[DataSelector] | None`) = `None`: Selectors for the topics to read, as one selector or a list.

**Properties**

- **InvocationInput.file_paths** (`list[str]`): Path patterns of every file selector, combined without repeats, in no particular order.
- **InvocationInput.safe_files** (`list[FileSelector]`): File selectors as a list, empty when `files` is unset.
- **InvocationInput.safe_sessions** (`list[DataSelector]`): Session selectors as a list, empty when `sessions` is unset.
- **InvocationInput.safe_topics** (`list[DataSelector]`): Topic selectors as a list, empty when `topics` is unset.

#### InvocationInput.ensure_not_empty()

```python
def ensure_not_empty() -> InvocationInput
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L217-L228)

Reject an input that sets none of `files`, `sessions`, and `topics`, or sets each to an empty list.

**Returns**

- `InvocationInput`

#### InvocationInput.file_query()

```python
@classmethod
def file_query(roboql_query: str) -> InvocationInput
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L250-L256)

Build an input that selects the files a RoboQL query matches.

**Parameters**

- **roboql_query** (`str`): RoboQL query that matches the files to select.

**Returns**

- `InvocationInput`

#### InvocationInput.from_dataset_file_paths()

```python
@classmethod
def from_dataset_file_paths(dataset_id: str, file_paths: list[str]) -> InvocationInput
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L231-L238)

Build an input that selects files in a dataset by path.

**Parameters**

- **dataset_id** (`str`): ID of the dataset to select files from.
- **file_paths** (`list[str]`): Gitignore-style patterns for the files to select, relative to the dataset.

**Returns**

- `InvocationInput`

#### InvocationInput.from_session_id()

```python
@classmethod
def from_session_id(session_id: str) -> InvocationInput
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L241-L247)

Build an input that selects one session by ID.

**Parameters**

- **session_id** (`str`): ID of the session to select.

**Returns**

- `InvocationInput`

#### InvocationInput.session_query()

```python
@classmethod
def session_query(roboql_query: str) -> InvocationInput
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L259-L265)

Build an input that selects the sessions a RoboQL query matches.

**Parameters**

- **roboql_query** (`str`): RoboQL query that matches the sessions to select.

**Returns**

- `InvocationInput`

#### InvocationInput.topic_query()

```python
@classmethod
def topic_query(roboql_query: str) -> InvocationInput
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L268-L274)

Build an input that selects the topics a RoboQL query matches.

**Parameters**

- **roboql_query** (`str`): RoboQL query that matches the topics to select.

**Returns**

- `InvocationInput`

### InvocationProvenance

```python
class roboto.domain.actions.invocation_record.InvocationProvenance(/, **data: Any)
```

`from roboto import InvocationProvenance`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L371-L384)

Bases: `pydantic.BaseModel`

What an invocation ran and what started it.

Carried in `InvocationRecord.provenance`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **InvocationProvenance.action** (`ActionProvenance`): Action the invocation ran.
- **InvocationProvenance.executable** (`ExecutableProvenance`): Container image the invocation ran.
- **InvocationProvenance.source** (`SourceProvenance`): User or trigger that started the invocation.

### InvocationRecord

```python
class roboto.domain.actions.invocation_record.InvocationRecord(/, **data: Any)
```

`from roboto import InvocationRecord`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L544-L658)

Bases: `pydantic.BaseModel`

Data record of an invocation, as the Roboto API returns it.

An invocation is one run of an action, started by a user or by a trigger. [`Invocation`](/docs/reference/python-sdk/roboto/domain/actions/invocation#roboto.domain.actions.invocation.Invocation) wraps this record with methods that act on the invocation, and exposes it as [`record`](/docs/reference/python-sdk/roboto/domain/actions/invocation#roboto.domain.actions.invocation.Invocation.record).

**Parameters**

- **data** (`Any`)

**Attributes**

- **InvocationRecord.compute_requirements** (`roboto.domain.actions.action_record.ComputeRequirements`): CPU, memory, and storage the invocation runs with: the action's, with any overrides the invoker gave.

- **InvocationRecord.container_parameters** (`roboto.domain.actions.action_record.ContainerParameters`): Command, entry point, environment variables, and working directory the invocation's container starts with.

  They are the action's, with any overrides the invoker gave.

- **InvocationRecord.created** (`datetime.datetime`): Time the invocation was created, in UTC.

- **InvocationRecord.data_source** (`InvocationDataSource`): Dataset the invocation reads from, or an unspecified data source when its invoker named none.

- **InvocationRecord.duration** (`datetime.timedelta`) = `None`: Time the invocation spent running, summed over its attempts if it was retried. Zero until an attempt ends.

- **InvocationRecord.idempotency_id** (`str | None`) = `None`: ID the invoker gave so that the invocation runs at most once.

  Another request with the same ID in the same organization creates no second invocation. `None` if the invoker gave none.

- **InvocationRecord.input_data** (`list[str]`): Deprecated. Paths within `data_source` that the invoker selected.

  Use `rich_input_data` instead. Set only when the request selected nothing but such paths, and empty otherwise.

- **InvocationRecord.invocation_id** (`str`): Unique ID of the invocation, beginning with `iv_`.

- **InvocationRecord.last_heartbeat** (`datetime.datetime | None`) = `None`: Time the running invocation last reported that it is still alive, or `None` if it never has.

- **InvocationRecord.last_status** (`InvocationStatus`): Latest status of the invocation.

- **InvocationRecord.org_id** (`str`): ID of the organization that owns the invocation.

- **InvocationRecord.parameter_values** (`dict[str, Any]`) = `None`: Values of the action's parameters for this invocation, keyed by parameter name.

  Parameters the invoker left out have their defaults.

- **InvocationRecord.provenance** (`InvocationProvenance`): Action and container image the invocation ran, and the user or trigger that started it.

- **InvocationRecord.resolved_input_data** (`InvocationInput | None`) = `None`: Inputs the request resolved to, each named by its file, session, or topic ID.

  The inputs may span any number of datasets. `None` when the invocation records no resolved inputs.

- **InvocationRecord.rich_input_data** (`InvocationInput | None`) = `None`: Inputs as the invoker requested them, or `None` if it requested none.

  A file selector with `paths` and no `dataset_id` is relative to `data_source`. [`input_data`](/docs/reference/python-sdk/roboto/domain/actions/invocation#roboto.domain.actions.invocation.Invocation.input_data) returns a copy with that `dataset_id` filled in.

- **InvocationRecord.status** (`list[InvocationStatusRecord]`) = `None`: Statuses the invocation has entered, each with the time it entered it.

- **InvocationRecord.timeout** (`int`): Maximum time, in minutes, the invocation may run.

- **InvocationRecord.upload_destination** (`InvocationUploadDestination | None`) = `None`: Where Roboto uploads the files the action writes to its output directory.

  `None` if the invoker named no destination. Without one, Roboto uploads them to the dataset the inputs come from, when they all come from one.

### InvocationSource

```python
class roboto.domain.actions.invocation_record.InvocationSource(*args, **kwds)
```

`from roboto import InvocationSource`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L347-L351)

Bases: `enum.Enum`

How an invocation was started: by a user, or by a trigger.

**Attributes**

- **InvocationSource.Manual** = `'Manual'`
- **InvocationSource.Trigger** = `'Trigger'`

### InvocationStatus

```python
class roboto.domain.actions.invocation_record.InvocationStatus
```

`from roboto import InvocationStatus`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L387-L500)

Bases: `int`, `enum.Enum`

Status of an invocation.

An invocation moves through the statuses from `Queued` to `Completed` in order of value, and may skip some. `Cancelled`, `Failed`, and `Deadly` end it outside that order. Their values are higher than `Completed`'s, so comparing values, such as `status > InvocationStatus.Processing`, also matches them.

**Attributes**

- **InvocationStatus.Cancelled** = `997`: The invocation was cancelled before it finished.
- **InvocationStatus.Completed** = `5`: The invocation finished successfully.
- **InvocationStatus.Deadly** = `999`: The invocation failed and will not be retried.
- **InvocationStatus.Downloading** = `2`: Roboto is preparing the execution environment and downloading inputs, if the action needs them.
- **InvocationStatus.Failed** = `998`: The invocation ended in failure. Roboto can queue a failed invocation again, to retry it.
- **InvocationStatus.Processing** = `3`: The action's container is running.
- **InvocationStatus.Queued** = `0`: The invocation is waiting for Roboto to start it.
- **InvocationStatus.Scheduled** = `1`: Roboto is provisioning compute to run it.
- **InvocationStatus.Uploading** = `4`: Roboto is uploading the files the action wrote to its output directory, if any.

#### InvocationStatus.can_transition_to()

```python
def can_transition_to(other: InvocationStatus) -> bool
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L441-L474)

Return whether an invocation in this status may move to `other`.

- Any status may stay where it is.
- `Completed`, `Cancelled`, and `Deadly` move nowhere else.
- `Failed` moves only to `Queued`, to retry, or to `Deadly`.
- Any other status moves to `Cancelled`, to `Failed`, or to a status with a higher value, except that only `Queued` moves to `Deadly`.

**Parameters**

- **other** (`InvocationStatus`): Status to move to.

**Returns**

- `bool`

#### InvocationStatus.from_value()

```python
@staticmethod
def from_value(v: Union[int, str]) -> InvocationStatus
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L426-L439)

Return the status whose number is `v`, or whose name is `v` in any case.

**Parameters**

- **v** (`Union[int, str]`): A status number such as `998`, or a status name such as `"Failed"` or `"failed"`.

**Raises**

- `ValueError`: `v` is neither a status number nor a status name.

**Returns**

- `InvocationStatus`

#### InvocationStatus.is_running()

```python
def is_running() -> bool
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L476-L482)

Return whether this status is `Downloading`, `Processing`, or `Uploading`.

**Returns**

- `bool`

#### InvocationStatus.is_terminal()

```python
def is_terminal() -> bool
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L484-L494)

Return whether this status ends the invocation: `Completed`, `Cancelled`, `Failed`, or `Deadly`.

A `Failed` invocation can still be queued again, to retry it.

**Returns**

- `bool`

#### InvocationStatus.next()

```python
def next() -> Optional[InvocationStatus]
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L496-L500)

Return the next status from `Queued` to `Completed`, or `None` if this status is terminal.

**Returns**

- `Optional[InvocationStatus]`

### InvocationStatusRecord

```python
class roboto.domain.actions.invocation_record.InvocationStatusRecord(/, **data: Any)
```

`from roboto import InvocationStatusRecord`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L503-L527)

Bases: `pydantic.BaseModel`

Entry in an invocation's status history: a status, and when the invocation entered it.

Carried in `InvocationRecord.status`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **InvocationStatusRecord.detail** (`str | None`) = `None`: Human-readable explanation of the status, such as why the invocation failed, or `None` if there is none.
- **InvocationStatusRecord.status** (`InvocationStatus`): Status the invocation entered.
- **InvocationStatusRecord.timestamp** (`datetime.datetime`): Time the invocation entered the status, in UTC.

#### InvocationStatusRecord.to_presentable_dict()

```python
def to_presentable_dict() -> dict[str, Optional[str]]
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L518-L527)

Return the record as a dictionary for display, with the status by name and the time in ISO 8601 format.

`detail` is `None` when the record has none.

**Returns**

- `dict[str, Optional[str]]`

### InvocationUploadDestination

```python
class roboto.domain.actions.invocation_record.InvocationUploadDestination(
    /,
    **data: Any,
)
```

`from roboto import InvocationUploadDestination`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L78-L122)

Bases: `pydantic.BaseModel`

Where Roboto uploads the files an action writes to its output directory.

**Parameters**

- **data** (`Any`)

**Attributes**

- **InvocationUploadDestination.destination_id** (`str | None`) = `None`: ID of the destination: for a dataset destination, the dataset's ID.
- **InvocationUploadDestination.destination_type** (`UploadDestinationType`): Kind of destination. Defaults to a dataset.

**Properties**

- **InvocationUploadDestination.is_dataset** (`bool`): Whether this is a dataset destination that names a dataset.
- **InvocationUploadDestination.is_unknown** (`bool`): Whether the destination's type is one this SDK version does not recognize.

#### InvocationUploadDestination.dataset()

```python
@classmethod
def dataset(dataset_id: str) -> InvocationUploadDestination
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L103-L110)

Build a destination that uploads outputs to a dataset.

**Parameters**

- **dataset_id** (`str`): ID of the dataset to upload outputs to.

**Returns**

- `InvocationUploadDestination`

#### InvocationUploadDestination.pre_validate_destination_type()

```python
@classmethod
def pre_validate_destination_type(value: Any) -> Any
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L89-L100)

Read a destination type this SDK version does not recognize as an unknown type.

Such a value becomes `UploadDestinationType.Unknown`.

**Parameters**

- **value** (`Any`)

**Returns**

- `Any`

### LogRecord

```python
class roboto.domain.actions.invocation_record.LogRecord(/, **data: Any)
```

`from roboto import LogRecord`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L661-L680)

Bases: `pydantic.BaseModel`

Line of output that one of an invocation's containers wrote to STDOUT or STDERR.

[`get_logs()`](/docs/reference/python-sdk/roboto/domain/actions/invocation#roboto.domain.actions.invocation.Invocation.get_logs) yields these.

**Parameters**

- **data** (`Any`)

**Attributes**

- **LogRecord.log** (`str`): Text of the log line.

- **LogRecord.partial_id** (`str | None`) = `None`: ID shared by the records that one log line too long for a single record was split into.

  `None` on a line that arrived whole. Roboto does not rejoin the parts.

- **LogRecord.process** (`roboto.domain.actions.action_record.ExecutorContainer`): Container that wrote the line: the setup container, the action's own container, or the output handler.

- **LogRecord.timestamp** (`datetime.datetime`): Time the container wrote the line.

### LogsLocation

```python
class roboto.domain.actions.invocation_record.LogsLocation(/, **data: Any)
```

`from roboto import LogsLocation`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L530-L541)

Bases: `pydantic.BaseModel`

S3 location where Roboto stores an invocation's log files.

Roboto records it with [`set_logs_location()`](/docs/reference/python-sdk/roboto/domain/actions/invocation#roboto.domain.actions.invocation.Invocation.set_logs_location). To read the logs, use [`get_logs()`](/docs/reference/python-sdk/roboto/domain/actions/invocation#roboto.domain.actions.invocation.Invocation.get_logs).

**Parameters**

- **data** (`Any`)

**Attributes**

- **LogsLocation.bucket** (`str`): Name of the S3 bucket that holds the logs.
- **LogsLocation.prefix** (`str`): Key prefix under which the logs are stored.

### SourceProvenance

```python
class roboto.domain.actions.invocation_record.SourceProvenance(/, **data: Any)
```

`from roboto import SourceProvenance`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L354-L368)

Bases: `pydantic.BaseModel`

User or trigger that started an invocation.

Carried in `InvocationProvenance.source`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **SourceProvenance.source_id** (`str`): ID of the trigger or user that started the invocation.

  It is a trigger ID when `source_type` is `InvocationSource.Trigger`, and a user ID when it is `InvocationSource.Manual`.

- **SourceProvenance.source_type** (`InvocationSource`): Whether a user or a trigger started the invocation.

### UploadDestinationType

```python
class roboto.domain.actions.invocation_record.UploadDestinationType(*args, **kwds)
```

`from roboto import UploadDestinationType`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_record.py#L64-L75)

Bases: `enum.Enum`

Kind of place an invocation's outputs are uploaded to.

**Attributes**

- **UploadDestinationType.Dataset** = `'Dataset'`: Dataset to upload outputs to. The default.

- **UploadDestinationType.Unknown** = `'Unknown'`: Destination type this SDK version does not recognize.

  The SDK reads any type it has no member for as `Unknown`, so a response from a newer version of Roboto still parses. Do not send it in an invocation request. Upgrade the SDK to read the actual type.
