---
sidebar:
  hidden: true
title: roboto.experimental.ingest.operations
---
## Module Contents

### DeclareTopicsRequest

```python
class roboto.experimental.ingest.operations.DeclareTopicsRequest(/, **data: Any)
```

`from roboto.experimental.ingest.operations import DeclareTopicsRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/experimental/ingest/operations.py#L669-L721)

Bases: `pydantic.BaseModel`

Request body for [`declare_topics()`](/docs/reference/python-sdk/roboto/domain/files/file#roboto.domain.files.file.File.declare_topics).

Registers the topic data one already-uploaded file carries, without naming a session. Roboto applies each declaration on its own and reports what became of each, so one it refuses leaves the others in place. Nothing here is scoped to a session, so requests naming different files run concurrently.

Resending an identical request is safe: a topic and the slice of the file it names identify the data a declaration registers, so a resend finds what the first attempt registered and reuses it instead of registering the data twice.

Building it raises `pydantic.ValidationError` when:

- `topics` is empty or has more than 500 entries.
- One topic is declared twice over the same slice of the file.
- Two topics anchor the same slice at different instants.
- Representations name one file in two storage formats.

**Parameters**

- **data** (`Any`)

**Attributes**

- **DeclareTopicsRequest.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- **DeclareTopicsRequest.topics** (`list[FileTopicDeclaration]`) = `None`: Topics this file carries data for, from 1 to 500 per request (`MAX_FILES_AND_TOPICS_PER_REQUEST`). One entry per topic and slice of the file: a file carrying one topic across three slices declares three entries, and a file whose rows carry four topics at once declares four entries over the same slice.

### DeclaredTimelineSource

```python
roboto.experimental.ingest.operations.DeclaredTimelineSource
```

`from roboto.experimental.ingest import DeclaredTimelineSource`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/experimental/ingest/operations.py#L236-L239)

Timeline source of any kind, with the bounds it spans in one file.

One of `SchemaFieldSource`, `McapLogTimeSource`, `McapPublishTimeSource` or `Mp4PresentationTimeSource`, chosen by the entry's `kind`.

### FileTopicDeclaration

```python
class roboto.experimental.ingest.operations.FileTopicDeclaration(/, **data: Any)
```

`from roboto.experimental.ingest import FileTopicDeclaration`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/experimental/ingest/operations.py#L646-L666)

Bases: [`TopicDeclaration`](/docs/reference/python-sdk/roboto/experimental/ingest/operations#roboto.experimental.ingest.operations.TopicDeclaration)

Topic whose data a file carries, declared on the file itself rather than inside a session.

Passed to [`declare_topics()`](/docs/reference/python-sdk/roboto/domain/files/file#roboto.domain.files.file.File.declare_topics), which carries it in `DeclareTopicsRequest.topics`. Adds to `TopicDeclaration` the wall-clock instant the data was captured at, which a topic declared inside a session takes from the entry enclosing it. Building it raises `pydantic.ValidationError` for every value `TopicDeclaration` rejects, and when `anchor_ns` is not after the Unix epoch or is greater than `2**63 - 1`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **FileTopicDeclaration.anchor_ns** (`roboto.time._EpochNanosecondsFromTime | None`) = `None`: Wall-clock anchor for the data this declaration names, in nanoseconds since the Unix epoch.

  It is the time at which that data's time 0 occurred, after the epoch and at most `2**63 - 1`. Also accepts any [`Time`](/docs/reference/python-sdk/roboto/time#roboto.time.Time) at runtime, read as [`to_epoch_nanoseconds()`](/docs/reference/python-sdk/roboto/time#roboto.time.to_epoch_nanoseconds) reads it; convert with that function first to satisfy a type checker. `None` keeps the anchor the data already carries from an earlier declaration, or an offset of 0 when it carries none, so its timestamps read exactly as declared.

  An anchor covers the whole slice `data_range` names, not this topic alone, so every topic declared over that slice moves with it; two declarations sharing a slice may not name different anchors.

### MAX_FILES_AND_TOPICS_PER_REQUEST

```python
roboto.experimental.ingest.operations.MAX_FILES_AND_TOPICS_PER_REQUEST = 500
```

`from roboto.experimental.ingest import MAX_FILES_AND_TOPICS_PER_REQUEST`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/experimental/ingest/operations.py#L23-L23)

Maximum number of files and topics one request may name, counting each file entry and each topic declaration.

Each file and topic named adds writes that Roboto must finish within the request's fixed time limit, so Roboto refuses a request naming more than this instead of letting it run out of time; split a larger batch across several calls. The request models in this module and in [`roboto.experimental.sessions`](/docs/reference/python-sdk/roboto/experimental/sessions) raise `pydantic.ValidationError` when built over the limit, and Roboto checks it again on every request that declares files or topics, so a request body built without these models is held to the same limit.

### MESSAGE_ENVELOPE_TIMELINE_SOURCES

```python
roboto.experimental.ingest.operations.MESSAGE_ENVELOPE_TIMELINE_SOURCES: dict[str, tuple[roboto.domain.topics.record.TimelineSourceKind, str]]
```

`from roboto.experimental.ingest import MESSAGE_ENVELOPE_TIMELINE_SOURCES`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/experimental/ingest/operations.py#L33-L37)

Kind and name Roboto stores each message-envelope timeline source under, keyed by its declared `kind`.

These sources sit in the message envelope, not in the topic's data columns. The stored kind, a [`TimelineSourceKind`](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.TimelineSourceKind) value, says which of the envelope's two timestamps a source is, log time or publish time; a read selects a source by its stored name.

MCAP log time and MP4 presentation time each name the timeline a container stamps on every record it holds: for MCAP, the instant the recorder wrote the record; for MP4, the instant the frame is shown. Roboto stores one such timeline per topic schema, so the two share a stored kind, differ only in the name a read selects them by, and cannot both be declared on one topic.

`TopicDeclaration` checks each declared source against this table, and Roboto stores the source under the kind and name the table gives.

### McapLogTimeSource

```python
class roboto.experimental.ingest.operations.McapLogTimeSource(/, **data: Any)
```

`from roboto.experimental.ingest import McapLogTimeSource`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/experimental/ingest/operations.py#L191-L201)

Bases: `_DeclaredSourceBase`

Timeline source whose timestamps are MCAP's log time: when the recorder wrote each record to the file.

MCAP carries these timestamps in its message envelope, not in a data column, so this source names no field. Carried in `TopicDeclaration.timeline_sources`. Building it raises `pydantic.ValidationError` when `min_file_timestamp_ns` is greater than `max_file_timestamp_ns`, or either is outside `-2**63` to `2**63 - 1`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **McapLogTimeSource.kind** (`Literal['mcap_log_time']`) = `'mcap_log_time'`: Kind of timeline source, always `"mcap_log_time"`.

### McapPublishTimeSource

```python
class roboto.experimental.ingest.operations.McapPublishTimeSource(/, **data: Any)
```

`from roboto.experimental.ingest import McapPublishTimeSource`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/experimental/ingest/operations.py#L204-L214)

Bases: `_DeclaredSourceBase`

Timeline source whose timestamps are MCAP's publish time: when each message was published on the bus.

MCAP carries these timestamps in its message envelope, not in a data column, so this source names no field. Carried in `TopicDeclaration.timeline_sources`. Building it raises `pydantic.ValidationError` when `min_file_timestamp_ns` is greater than `max_file_timestamp_ns`, or either is outside `-2**63` to `2**63 - 1`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **McapPublishTimeSource.kind** (`Literal['mcap_publish_time']`) = `'mcap_publish_time'`: Kind of timeline source, always `"mcap_publish_time"`.

### Mp4PresentationTimeSource

```python
class roboto.experimental.ingest.operations.Mp4PresentationTimeSource(/, **data: Any)
```

`from roboto.experimental.ingest import Mp4PresentationTimeSource`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/experimental/ingest/operations.py#L217-L233)

Bases: `_DeclaredSourceBase`

Timeline source whose timestamps are presentation time: when each frame is shown, from the start of the media.

These timestamps sit in the message envelope, not in a data column, so this source names no field. Roboto stores it as a message-envelope timeline source named `presentation_time`, the name a read selects it by. Carried in `TopicDeclaration.timeline_sources`. Building it raises `pydantic.ValidationError` when `min_file_timestamp_ns` is greater than `max_file_timestamp_ns`, or either is outside `-2**63` to `2**63 - 1`.

Data declared with this source is readable from an MCAP of encoded frames whose messages' log times are the presentation times, when the topic lists that MCAP in `TopicDeclaration.representations`. The MP4 itself cannot be listed, since no storage format a representation can state describes it. A topic with no representations is registered, and a read of it returns no rows.

**Parameters**

- **data** (`Any`)

**Attributes**

- **Mp4PresentationTimeSource.kind** (`Literal['mp4_presentation_time']`) = `'mp4_presentation_time'`: Kind of timeline source, always `"mp4_presentation_time"`.

### RepresentationDeclaration

```python
class roboto.experimental.ingest.operations.RepresentationDeclaration(/, **data: Any)
```

`from roboto.experimental.ingest import RepresentationDeclaration`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/experimental/ingest/operations.py#L247-L352)

Bases: `pydantic.BaseModel`

One representation of a topic's data: a file a read of the topic can open, and how that file holds the data.

Carried in `TopicDeclaration.representations` when a topic is declared, and in `TopicRepresentations.representations` when a topic's representations are replaced. Roboto does not open the file when it is listed, so it takes what this states on trust, and a read of the topic that picks this representation opens `file_id` and decodes it as stated. Building it raises `pydantic.ValidationError` when `file_id` is empty, or `field_path` is an empty list or has an empty name.

Every file named by a representation that is untransformed, or whose every transformation is an `encode`, must hold the topic's rows:

1. At the same positions in each of those files, so a `TopicDeclaration.data_range` names the same rows whichever one a read opens. In an MCAP, positions count only the topic's own messages.
2. Decoding to the topic's declared schema, carrying the timestamps its timeline sources describe: not rebased, not converted to other units, not rounded.

A representation whose file breaks either is accepted, and reads of it return the wrong rows or fail.

A representation covers the whole topic unless it states a `field_path`, in which case it covers that field and everything under it. Its file still holds every row, each with its timestamp: a read that takes fields from several files pairs those files row by row, and fails when their row numbers or timestamps differ.

Four things identify a representation among those of one topic: what it covers (the whole topic, or one field), its `storage_format`, its `content_format` and its `transformations`. Over each part of a file it is declared on, a topic holds at most one representation per combination of the four: two with the same combination cannot be listed together, and one declared later takes the earlier one's place.

A read decodes a [`PARQUET`](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.RepresentationStorageFormat.PARQUET) representation's file as Parquet; the file needs no `.parquet` extension. A read can decode an [`MCAP`](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.RepresentationStorageFormat.MCAP) representation's file when all three of the following hold:

1. The file is chunked and carries a summary section indexing those chunks.
2. Exactly one of the file's channels carries the topic's name.
3. That channel's schema is in an encoding Roboto can decode: `ros1msg`, `ros2msg`, `ros2idl`, `omgidl`, `jsonschema`, or `json`.

A recording holding several topics is therefore read one topic at a time, each from the channel carrying its name; the file's other channels are neither decoded nor checked.

**Parameters**

- **data** (`Any`)

**Attributes**

- **RepresentationDeclaration.content_format** (`str | None`) = `None`: Format of the data inside the container, or `None` when unspecified.

  Examples are `"jpeg"` for re-encoded images and `"compressedVideo"` for passed-through video frames. A read names it through `roboto.experimental.topics.RepresentationSelector.content_format`.

- **RepresentationDeclaration.field_path** (`list[str] | None`) = `None`: Field of the topic's schema this representation covers, as the names from the schema root down to it. `None`, the same as leaving it out, makes this a representation of the whole topic.

  The path must equal the [`path`](/docs/reference/python-sdk/roboto/experimental/ingest/schema#roboto.experimental.ingest.schema.Field.path) of a field the topic's schema declares. That field may have fields under it, and the representation then covers those too. A level of the schema that only the paths of deeper fields pass through, with no field declared at it, cannot be named.

  A read takes each field from the representation covering the deepest field that contains it, so a representation of one field supplies that field whatever its transformations, and the representations of the whole topic supply the rest. A read asking for untransformed data (`roboto.experimental.topics.RepresentationSelector.raw()`) leaves out every representation that states a transformation.

- **RepresentationDeclaration.file_id** (`str`) = `None`: File a read opens to get the topic's data.

  It is the file the topic is declared on, when its own bytes hold the data, or another file in the organization, such as a per-topic MCAP converted out of a PX4 ULog. Its status must be [`Available`](/docs/reference/python-sdk/roboto/domain/files/record#roboto.domain.files.record.FileStatus.Available), and the caller must be able to edit it. A read through the SDK or the Roboto web app downloads this file with the reader's own download permission on it, and Roboto's AI tools read it for anyone who can read the topic.

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

- **RepresentationDeclaration.storage_format** (`roboto.domain.topics.record.RepresentationStorageFormat`): Container `file_id` holds the data in.

  Within one request, every representation naming a file must state the same format for it, whichever of the request's topics, files or sessions lists it; a request model that states two formats for one file raises `pydantic.ValidationError` when built.

- **RepresentationDeclaration.transformations** (`list[str]`) = `None`: Transformations applied to the topic's data to produce what `file_id` holds, in the order applied.

  Each is a `"<kind>:<param>"` string, as in `["downsample:0.7", "encode:jpeg"]`; [`TransformationKind`](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.TransformationKind) lists the kinds. Empty for untransformed data. A read names them through `roboto.experimental.topics.RepresentationSelector.transformations`, and with no selector Roboto prefers the representation with the fewest.

  A representation can be read by row position when it is untransformed or every transformation is an `encode`. One with any other transformation, such as a `downsample`, cannot, and a read of a topic declared over a `data_range` never uses it: on such a topic, everything it covers must also be covered by representations that can.

  Within one topic, every representation naming a file must state the same transformations for it: a read that takes two representations from one file and finds their transformations differ raises [`RobotoReadPlanExecutionException`](/docs/reference/python-sdk/roboto/exceptions/domain#roboto.exceptions.domain.RobotoReadPlanExecutionException) with kind `inconsistent-scan-tasks-on-file`.

### SchemaFieldSource

```python
class roboto.experimental.ingest.operations.SchemaFieldSource(/, **data: Any)
```

`from roboto.experimental.ingest import SchemaFieldSource`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/experimental/ingest/operations.py#L163-L188)

Bases: `_DeclaredSourceBase`

Timeline source whose timestamps are a field of the topic's own data, such as a `timestamp` field.

Carried in `TopicDeclaration.timeline_sources`. Building it raises `pydantic.ValidationError` when:

- `field_path` is empty or has an empty name.
- `min_file_timestamp_ns` is greater than `max_file_timestamp_ns`.
- Either bound is outside `-2**63` to `2**63 - 1`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **SchemaFieldSource.field_path** (`list[str]`) = `None`: Path of the field holding this source's timestamps: the names from the schema root down to that field. The field must be declared on the topic's schema and typed [`Timestamp`](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.CanonicalDataType.Timestamp).
- **SchemaFieldSource.kind** (`Literal['field']`) = `'field'`: Kind of timeline source, always `"field"`.

### SetRepresentationsRequest

```python
class roboto.experimental.ingest.operations.SetRepresentationsRequest(/, **data: Any)
```

`from roboto.experimental.ingest.operations import SetRepresentationsRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/experimental/ingest/operations.py#L766-L799)

Bases: `pydantic.BaseModel`

Request body for [`set_representations()`](/docs/reference/python-sdk/roboto/domain/files/file#roboto.domain.files.file.File.set_representations).

Replaces the representations of the topics it names on one file, the one the topics were declared on. Roboto checks every entry before writing any, and one refused entry refuses the whole request.

Building it raises `pydantic.ValidationError` when `topics` is empty or has more than 500 entries, lists one topic and slice twice, or lists representations naming one file in two storage formats.

**Parameters**

- **data** (`Any`)

**Attributes**

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

- **SetRepresentationsRequest.topics** (`list[TopicRepresentations]`) = `None`: One entry per topic and slice whose representations to replace, from 1 to 500 per request.

  `MAX_FILES_AND_TOPICS_PER_REQUEST` sets that limit; split a larger set across several requests. Topics not named keep their representations.

### TopicDeclaration

```python
class roboto.experimental.ingest.operations.TopicDeclaration(/, **data: Any)
```

`from roboto.experimental.ingest import TopicDeclaration`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/experimental/ingest/operations.py#L445-L643)

Bases: `pydantic.BaseModel`

Topic whose data a file carries, as a session's file entry declares it.

Roboto registers the data from the declaration alone, without opening the file, so the declaration states the topic's name, the structure of its rows, the bounds of every timeline source those rows carry, and which part of the file they occupy.

Carried in [`topics`](/docs/reference/python-sdk/roboto/experimental/sessions/operations#roboto.experimental.sessions.operations.FileDeclaration.topics): list a file's topic declarations on the [`SessionFile`](/docs/reference/python-sdk/roboto/experimental/sessions/operations#roboto.experimental.sessions.operations.SessionFile) for that file, which anchors everything it declares. To register a file's topic data without naming a session, through [`declare_topics()`](/docs/reference/python-sdk/roboto/domain/files/file#roboto.domain.files.file.File.declare_topics), build a `FileTopicDeclaration` instead; with no enclosing entry to anchor it, that class carries its own anchor.

The file a topic is declared on is the one its data belongs to: the data's slices, bounds and anchors, and the windows sessions hold it over, are all stated against that file. Which files a read opens to get the data is a separate statement, `representations`, so data can belong to a file Roboto cannot decode (a PX4 ULog, a ROS `.bag`, a CSV) and be read from files converted out of it.

Building it raises `pydantic.ValidationError` when:

- `topic_name` or `timeline_sources` is empty.
- A `SchemaFieldSource` names a field the schema does not declare, or one not typed [`Timestamp`](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.CanonicalDataType.Timestamp).
- Two timeline sources are the same source, would be selected by the same name, or are both a timeline a container stamps on its records (MCAP log time and MP4 presentation time).
- More than one timeline source sets `is_default_for_reads` to `True`.
- Two representations cover the same thing (the whole topic, or the same field) under the same storage format, content format and transformations, or name one file under different transformations.
- A representation's `field_path` names no field of `topic_schema`.
- A [`PARQUET`](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.RepresentationStorageFormat.PARQUET) representation is listed on a topic declaring any timeline source but `SchemaFieldSource`: the others take their timestamps from the message envelope, which a Parquet file does not have.

**Parameters**

- **data** (`Any`)

**Attributes**

- **TopicDeclaration.data_range** (`roboto.domain.topics.record.DataRange | None`) = `None`: Part of the file this topic's data occupies, as `(start, end)`.

  `start` is the first covered position, and `end` is one past the last. Set this when one file packs a topic's data into slices, such as a single episode inside a LeRobot v3 data file. Omit it when the data covers whatever encloses this declaration: the slice claimed by the [`SessionFile`](/docs/reference/python-sdk/roboto/experimental/sessions/operations#roboto.experimental.sessions.operations.SessionFile) carrying it, or the whole file when the topics are declared on the file itself through [`declare_topics()`](/docs/reference/python-sdk/roboto/domain/files/file#roboto.domain.files.file.File.declare_topics). A range set inside a `SessionFile` must sit within that entry's own [`data_range`](/docs/reference/python-sdk/roboto/experimental/sessions/operations#roboto.experimental.sessions.operations.FileDeclaration.data_range).

  Values are in the file's own units: stored-row positions (counted from 0), or nanoseconds of the file's media time for video. Each file uses exactly one of the two, so the pair needs no unit marker; which one applies follows from the file's format. A read applies the range to the file it opens, and it opens only files named by representations that can be read by row position, as `RepresentationDeclaration.transformations` describes: each of those files must hold the same rows at the same positions. Over a range, everything a topic's representations cover must be covered by ones that can be read by row position; Roboto refuses the declaration otherwise.

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

- **TopicDeclaration.representations** (`list[RepresentationDeclaration]`) = `None`: Files a read of this topic's data opens, each with how it holds that data. List the file the topic is declared on here, naming its `file_id`, when its own bytes are readable; list other files when the data is read from them, such as the per-topic MCAPs converted out of a PX4 ULog. A topic may list several, and a read picks among them by `roboto.experimental.topics.RepresentationSelector`.

  A topic with no representations is still registered: its data counts toward the bounds of every session holding the file, and a read of it returns no rows, or is refused when the read's selector sets a criterion. A video, or a proprietary log with no file converted out of it, is declared that way.

  Redeclaring the topic over the same part of the file adds the representations listed to the ones it has. A listed representation takes the place of the stored one that covers what it covers (the whole topic, or the same field) under the same storage format, content format and transformations, and of every stored one that names the same file, whatever that one covers; every other stored representation stays. Redeclaring the topic with the new files a conversion wrote therefore replaces each stored representation with the listed one that differs from it only in its `file_id`; redeclaring it with a file uploaded again in another storage format replaces the stored representation that names that file; and resending the same declaration leaves the stored representations as they are. To remove a representation, or to replace a topic's representations outright, use [`set_representations()`](/docs/reference/python-sdk/roboto/domain/files/file#roboto.domain.files.file.File.set_representations).

  A representation of one field is stored against that field of the schema it was declared under. While one is stored, Roboto refuses a declaration of the topic over the same part of the file with a changed `topic_schema`, unless the declaration lists a representation that takes the stored one's place. To change the schema, list the representation of that field again in the same declaration, or remove it first with `File.set_representations`.

- **TopicDeclaration.timeline_sources** (`list[DeclaredTimelineSource]`) = `None`: Timeline sources this file's topic data carries, each with its own bounds.

  Data timestamped several ways (a message's publish time and the time the recorder wrote it, say) declares one entry per source; data timestamped one way declares a list of one. Reads pick a source by name, and resolve to the one marked `is_default_for_reads` when they do not.

- **TopicDeclaration.topic_name** (`str`) = `None`: Name of the topic whose data this file, or a slice of it, carries.

  Topic names are unique within an organization, so files declaring the same name carry data for the same topic.

- **TopicDeclaration.topic_schema** (`roboto.experimental.ingest.schema.Schema`): Structure of the topic's data.

  Repeat the same schema on every file that uses it; Roboto stores each distinct schema once, so repeating it costs nothing.

### TopicRepresentations

```python
class roboto.experimental.ingest.operations.TopicRepresentations(/, **data: Any)
```

`from roboto.experimental.ingest import TopicRepresentations`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/experimental/ingest/operations.py#L724-L763)

Bases: `pydantic.BaseModel`

Complete set of representations one topic's data on a file is read from.

Passed to [`set_representations()`](/docs/reference/python-sdk/roboto/domain/files/file#roboto.domain.files.file.File.set_representations), which carries it in `SetRepresentationsRequest.topics` and leaves the topic, over the part of the file `data_range` names, with exactly these representations. `RepresentationDeclaration` states what the file each one names must hold.

Building it raises `pydantic.ValidationError` when `topic_name` is empty, when two representations cover the same thing (the whole topic, or the same field) under the same storage format, content format and transformations, or when two name one file under different transformations.

**Parameters**

- **data** (`Any`)

**Attributes**

- **TopicRepresentations.data_range** (`roboto.domain.topics.record.DataRange | None`) = `None`: Part of the file over which the topic's representations are replaced.

  `None` stands for data declared over the whole file. A range must equal a range the topic is already declared over on the file: the topic's `TopicDeclaration.data_range`, or, for a topic that stated none inside a [`SessionFile`](/docs/reference/python-sdk/roboto/experimental/sessions/operations#roboto.experimental.sessions.operations.SessionFile), that entry's [`data_range`](/docs/reference/python-sdk/roboto/experimental/sessions/operations#roboto.experimental.sessions.operations.FileDeclaration.data_range).

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

- **TopicRepresentations.representations** (`list[RepresentationDeclaration]`): Representations the topic ends up with.

  Its representations not listed are removed, those of one field included. An empty list removes every representation: the topic stays registered and still counts toward the bounds of every session holding the file, but reads of it return no rows. [`set_representations()`](/docs/reference/python-sdk/roboto/domain/files/file#roboto.domain.files.file.File.set_representations) states what Roboto refuses.

- **TopicRepresentations.topic_name** (`str`) = `None`: Name of the topic whose representations are replaced. The topic must already be declared on the file.
