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

### AddFilesRequest

```python
class roboto.experimental.sessions.operations.AddFilesRequest(/, **data: Any)
```

`from roboto.experimental.sessions.operations import AddFilesRequest`

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

Bases: `pydantic.BaseModel`

Request body for [`add_files()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.add_files).

Building it raises `pydantic.ValidationError` when:

- `files` is empty, or its entries and their topics number more than 500 together ([`MAX_FILES_AND_TOPICS_PER_REQUEST`](/docs/reference/python-sdk/roboto/experimental/ingest/operations#roboto.experimental.ingest.operations.MAX_FILES_AND_TOPICS_PER_REQUEST)).
- Two entries name the same file.
- Representations name one file in two storage formats.

**Parameters**

- **data** (`Any`)

**Attributes**

- **AddFilesRequest.files** (`list[SessionFile]`) = `None`: Files to add to the session, each appearing once and listing all of its topics.
- **AddFilesRequest.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

### AttachToDeviceRequest

```python
class roboto.experimental.sessions.operations.AttachToDeviceRequest(/, **data: Any)
```

`from roboto.experimental.sessions.operations import AttachToDeviceRequest`

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

Bases: `pydantic.BaseModel`

Request body for [`attach_to_device()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.attach_to_device).

**Parameters**

- **data** (`Any`)

**Attributes**

- **AttachToDeviceRequest.device_id** (`str`): ID of the device to attach to the session.
- **AttachToDeviceRequest.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

### CreateSessionIfNotExistsRequest

```python
class roboto.experimental.sessions.operations.CreateSessionIfNotExistsRequest(
    /,
    **data: Any,
)
```

`from roboto.experimental.sessions import CreateSessionIfNotExistsRequest`

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

Bases: `pydantic.BaseModel`

Request body for [`create_if_not_exists()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.create_if_not_exists).

Roboto creates the session only when no session matches a RoboQL query. That method describes how several matches and concurrent requests are resolved.

**Parameters**

- **data** (`Any`)

**Attributes**

- **CreateSessionIfNotExistsRequest.create_request** (`CreateSessionRequest`): Properties of the session to create when no session matches `match_roboql_query`.

- **CreateSessionIfNotExistsRequest.match_roboql_query** (`str`): RoboQL query that looks for an existing session in the organization.

  When sessions match, the response is the first of them and nothing is created.

### CreateSessionRequest

```python
class roboto.experimental.sessions.operations.CreateSessionRequest(/, **data: Any)
```

`from roboto.experimental.sessions.operations import CreateSessionRequest`

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

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

Request body for [`create()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.create).

Every request creates a new session, with zero or more devices attached. A `name` longer than 120 characters raises `pydantic.ValidationError`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **CreateSessionRequest.device_ids** (`list[str]`) = `None`: IDs of the devices to attach to the session. Defaults to none.
- **CreateSessionRequest.name** (`str | None`) = `None`: Human-readable name of the session, at most 120 characters. `None` leaves the session unnamed.

### CreateSessionsRequest

```python
class roboto.experimental.sessions.operations.CreateSessionsRequest(/, **data: Any)
```

`from roboto.experimental.sessions.operations import CreateSessionsRequest`

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

Bases: `pydantic.BaseModel`

Request body for [`create_sessions()`](/docs/reference/python-sdk/roboto/domain/devices/device#roboto.domain.devices.device.Device.create_sessions).

That method describes what a declaration writes, what a refused one leaves behind, and what resending the same batch does.

Building it raises `pydantic.ValidationError` when:

- `sessions` is empty or holds more than 100 declarations (`MAX_SESSIONS_PER_REQUEST`).
- The declarations name more than 500 files and topics together ([`MAX_FILES_AND_TOPICS_PER_REQUEST`](/docs/reference/python-sdk/roboto/experimental/ingest/operations#roboto.experimental.ingest.operations.MAX_FILES_AND_TOPICS_PER_REQUEST)).
- Two declarations have the same `name`.
- Representations name one file in two storage formats.

**Parameters**

- **data** (`Any`)

**Attributes**

- **CreateSessionsRequest.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- **CreateSessionsRequest.sessions** (`list[SessionDeclaration]`) = `None`: Sessions to create, one declaration each.

### DetachFromDeviceRequest

```python
class roboto.experimental.sessions.operations.DetachFromDeviceRequest(/, **data: Any)
```

`from roboto.experimental.sessions.operations import DetachFromDeviceRequest`

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

Bases: `pydantic.BaseModel`

Request body for [`detach_from_device()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.detach_from_device).

**Parameters**

- **data** (`Any`)

**Attributes**

- **DetachFromDeviceRequest.device_id** (`str`): ID of the device to detach from the session.
- **DetachFromDeviceRequest.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

### FileDeclaration

```python
class roboto.experimental.sessions.operations.FileDeclaration(/, **data: Any)
```

`from roboto.experimental.sessions import FileDeclaration`

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

Bases: `pydantic.BaseModel`

Declaration of one uploaded file and the topic data it carries, independent of any session.

`SessionFile` builds on it to state the file's place in a session. Every field here states a fact about the file and its recording that holds whichever session, if any, names the file, which is why [`declare_topics()`](/docs/reference/python-sdk/roboto/domain/files/file#roboto.domain.files.file.File.declare_topics) can state the same facts without naming a session.

A file can carry data for any number of topics (a LeRobot parquet file usually carries several, as columns of the same rows); declare all of them on the file's one declaration.

Data range (`data_range`):

- Use one when several sessions share a file and the file's own timestamps cannot tell their parts apart, such as a LeRobot v3 data file, whose episodes each restart their timestamp column at 0. When the timestamps can tell the parts apart, state each part by time instead, with the time window on `SessionFile`.
- `(start, end)`: `start` is the first position covered and `end` is one past the last. Positions are in the file's own units: stored-row positions counted from 0, or nanoseconds of media time for video.
- Leaving it unset covers the whole file.
- Roboto stores each topic's data in a file as one or more partitions, and registers a topic declared over a range as a partition over that range. Reading the topic returns only the positions in that range: a topic declared over `(8, 20)` of a 20-row file reads back 12 rows, not 20.
- Inside a session, the range also decides which of the file's partitions the session includes; see `SessionFile`.

Building it raises `pydantic.ValidationError` when:

- `file_id` is empty.
- `anchor_ns` does not fall after the Unix epoch, is larger than `2**63 - 1`, or is a value [`to_epoch_nanoseconds()`](/docs/reference/python-sdk/roboto/time#roboto.time.to_epoch_nanoseconds) refuses.
- `topics` declares one topic twice over the same part of the file.
- A topic's `data_range` reaches outside this declaration's `data_range`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **FileDeclaration.anchor_ns** (`roboto.time._EpochNanosecondsFromTime | None`) = `None`: Wall-clock time at which time 0 of the data this declaration names occurred, in nanoseconds since the Unix epoch.

  The anchor covers exactly what the declaration names: the part of the file `data_range` names, or the whole file when it names none, so a file holding several parts can give each the instant it happened.

  It must fall after the Unix epoch and be at most `2**63 - 1` ([`INT64_MAX`](/docs/reference/python-sdk/roboto/int64#roboto.int64.INT64_MAX)). Any [`Time`](/docs/reference/python-sdk/roboto/time#roboto.time.Time) is also accepted, converted as [`to_epoch_nanoseconds()`](/docs/reference/python-sdk/roboto/time#roboto.time.to_epoch_nanoseconds) converts it: an `int` is nanoseconds, a `float`, `decimal.Decimal`, or numeric string is seconds, and a `datetime.datetime` or ISO 8601 string is that instant. The field is typed `int`, so convert with that function first to satisfy a type checker.

  `None` takes an anchor from elsewhere rather than removing one:

  - Inside a `SessionDeclaration`, the declaration takes that session's `anchor_ns` when one is set, and cannot opt out of it.
  - With no anchor at either level, the data keeps the anchor an earlier declaration gave it, or an offset of 0 when it has none, so its timestamps read exactly as declared.
  - Nothing is inherited across parts of a file: a part with no anchor of its own never takes another part's instant.

- **FileDeclaration.data_range** (`roboto.domain.topics.record.DataRange | None`) = `None`: Part of the file this declaration describes, as `(start, end)`, or `None` for the whole file.

- **FileDeclaration.file_id** (`str`) = `None`: ID of the uploaded file this declaration describes.

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

- **FileDeclaration.topics** (`list[roboto.experimental.ingest.TopicDeclaration]`) = `None`: Topics this file carries data for, each over the part of the file that holds it.

  A topic with no [`data_range`](/docs/reference/python-sdk/roboto/experimental/ingest/operations#roboto.experimental.ingest.operations.TopicDeclaration.data_range) of its own covers everything this declaration names, and one with a range must stay within this declaration's `data_range`. A topic and its range identify one partition of the file, so each pair appears at most once. Roboto reads a topic's data from the files listed in its [`representations`](/docs/reference/python-sdk/roboto/experimental/ingest/operations#roboto.experimental.ingest.operations.TopicDeclaration.representations), and from this file only when it is listed there.

### MAX_INGESTION_SUMMARIES

```python
roboto.experimental.sessions.operations.MAX_INGESTION_SUMMARIES = 100
```

`from roboto.experimental.sessions import MAX_INGESTION_SUMMARIES`

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

Maximum number of sessions one request to `POST /v1/sessions/ingestion/summaries` may name.

[`ingestion_summaries()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.ingestion_summaries) splits a longer list across several requests.

### MAX_SESSIONS_PER_REQUEST

```python
roboto.experimental.sessions.operations.MAX_SESSIONS_PER_REQUEST = 100
```

`from roboto.experimental.sessions import MAX_SESSIONS_PER_REQUEST`

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

Maximum number of sessions one call to [`create_sessions()`](/docs/reference/python-sdk/roboto/domain/devices/device#roboto.domain.devices.device.Device.create_sessions) may declare.

Split a larger batch across several calls. `CreateSessionsRequest` applies the limit when the request body is built, and Roboto applies it again when the request arrives, so a body built by hand is held to it too.

### MAX_SESSION_DEVICES_REQUEST

```python
roboto.experimental.sessions.operations.MAX_SESSION_DEVICES_REQUEST = 100
```

`from roboto.experimental.sessions import MAX_SESSION_DEVICES_REQUEST`

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

Maximum number of sessions one request to `POST /v1/sessions/devices` may name.

### RemoveFilesRequest

```python
class roboto.experimental.sessions.operations.RemoveFilesRequest(/, **data: Any)
```

`from roboto.experimental.sessions.operations import RemoveFilesRequest`

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

Bases: `pydantic.BaseModel`

Request body for [`remove_files()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.remove_files).

Building it raises `pydantic.ValidationError` when `file_ids` is empty, names more than 500 files ([`MAX_FILES_AND_TOPICS_PER_REQUEST`](/docs/reference/python-sdk/roboto/experimental/ingest/operations#roboto.experimental.ingest.operations.MAX_FILES_AND_TOPICS_PER_REQUEST)), or names a file more than once.

**Parameters**

- **data** (`Any`)

**Attributes**

- **RemoveFilesRequest.file_ids** (`list[str]`) = `None`: IDs of the files to remove from the session, each named once.
- **RemoveFilesRequest.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

### SessionAttributes

```python
class roboto.experimental.sessions.operations.SessionAttributes(/, **data: Any)
```

`from roboto.experimental.sessions.operations import SessionAttributes`

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

Bases: `pydantic.BaseModel`

Descriptive attributes of a session that a request creating the session can set.

`CreateSessionRequest` and `SessionDeclaration` take these fields.

**Parameters**

- **data** (`Any`)

**Attributes**

- **SessionAttributes.completion_policy** (`roboto.experimental.sessions.record.CompletionPolicy | roboto.sentinels.NotSetType | None`): When Roboto marks the session complete on its own.

  Left unset (`NotSet`), the session takes its organization's default completion policy, if the organization has one. `None` means Roboto marks the session complete only when asked to, by [`complete()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.complete), whatever the organization's default.

- **SessionAttributes.custom_fields** (`dict[str, Any] | None`) = `None`: Initial values for the session's custom fields, keyed by field name. `None` sets none.

  Each name must be a [`CustomField`](/docs/reference/python-sdk/roboto/domain/custom_fields/custom_field#roboto.domain.custom_fields.custom_field.CustomField) defined for [`Session`](/docs/reference/python-sdk/roboto/domain/custom_fields/record#roboto.domain.custom_fields.record.TargetEntityType.Session) in the organization the session is created in, with status [`Ready`](/docs/reference/python-sdk/roboto/domain/custom_fields/record#roboto.domain.custom_fields.record.CustomFieldStatus.Ready), and each value must match that field's declared type. Otherwise Roboto refuses the session with `RobotoIllegalArgumentException`.

- **SessionAttributes.description** (`str | None`) = `None`: Human-readable description of the session.

- **SessionAttributes.metadata** (`dict[str, Any]`) = `None`: Key-value metadata to set on the session.

  Sessions cannot be filtered or sorted by metadata keys; to query sessions by an attribute, define a custom field for sessions.

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

- **SessionAttributes.tags** (`list[str]`) = `None`: Tags to set on the session.

### SessionDeclaration

```python
class roboto.experimental.sessions.operations.SessionDeclaration(/, **data: Any)
```

`from roboto.experimental.sessions import SessionDeclaration`

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

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

Declaration of one session to create on a device, with the files that make it up.

Pass a list of them to [`create_sessions()`](/docs/reference/python-sdk/roboto/domain/devices/device#roboto.domain.devices.device.Device.create_sessions); [`create_session()`](/docs/reference/python-sdk/roboto/domain/devices/device#roboto.domain.devices.device.Device.create_session) builds one from its arguments.

Building it raises `pydantic.ValidationError` when:

- `name` is empty or longer than 120 characters.
- `anchor_ns` does not fall after the Unix epoch, is larger than `2**63 - 1`, or is a value [`to_epoch_nanoseconds()`](/docs/reference/python-sdk/roboto/time#roboto.time.to_epoch_nanoseconds) refuses.
- Two entries in `files` name the same file.

**Parameters**

- **data** (`Any`)

**Attributes**

- **SessionDeclaration.anchor_ns** (`roboto.time._EpochNanosecondsFromTime | None`) = `None`: Wall-clock time at which time 0 of the session's data occurred, for every entry that states no anchor of its own.

  Each such entry then anchors the data it declares, which is its part of the file when it names one. It takes the same values as `FileDeclaration.anchor_ns`, which says which values it accepts, what an anchor covers, and what an entry's data does when neither level states one. `None` leaves each entry to its own `anchor_ns`.

- **SessionDeclaration.files** (`list[SessionFile]`) = `None`: Files that make up the session, with the topics each carries data for. Defaults to none.

  Each file appears once, listing all of its topics.

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

- **SessionDeclaration.name** (`str`) = `None`: Human-readable name of the session, from 1 to 120 characters, unique within the device.

  The name identifies the session the declaration creates or reuses, so resending a batch reuses the session already under this name instead of creating a second one.

### SessionDevicesRequest

```python
class roboto.experimental.sessions.operations.SessionDevicesRequest(/, **data: Any)
```

`from roboto.experimental.sessions import SessionDevicesRequest`

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

Bases: `pydantic.BaseModel`

Request body for `POST /v1/sessions/devices`.

Building it raises `pydantic.ValidationError` when `session_ids` is empty or names more than 100 sessions (`MAX_SESSION_DEVICES_REQUEST`).

**Parameters**

- **data** (`Any`)

**Attributes**

- **SessionDevicesRequest.session_ids** (`list[str]`) = `None`: IDs of the sessions whose devices to list.

### SessionDevicesResponse

```python
class roboto.experimental.sessions.operations.SessionDevicesResponse(/, **data: Any)
```

`from roboto.experimental.sessions import SessionDevicesResponse`

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

Bases: `pydantic.BaseModel`

Response body of `POST /v1/sessions/devices`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **SessionDevicesResponse.devices** (`dict[str, list[roboto.experimental.sessions.record.SessionDevice]]`): Devices attached to each requested session, sorted by device ID and keyed by session ID.

  A session with no devices, or outside the organization the caller acts in, has no key.

### SessionFile

```python
class roboto.experimental.sessions.operations.SessionFile(/, **data: Any)
```

`from roboto import SessionFile`

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

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

One uploaded file in a session, with the topic data it carries and the window of that data the session holds.

It adds the time window to `FileDeclaration`; everything else it states holds whichever session, if any, names the file. The same entry states a file's place in a session however the session is built: inside a `SessionDeclaration` that creates the session with its files, or passed to [`add_files()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.add_files) afterwards. An entry with no topics attaches the file without registering topic data; its topics can be declared later, with this entry again or with [`declare_topics()`](/docs/reference/python-sdk/roboto/domain/files/file#roboto.domain.files.file.File.declare_topics).

Topics listed here take their anchor from this entry's `anchor_ns`, which anchors everything the entry declares. State the anchor there, not on a [`FileTopicDeclaration`](/docs/reference/python-sdk/roboto/experimental/ingest/operations#roboto.experimental.ingest.operations.FileTopicDeclaration).

Time window (`min_file_timestamp_ns` and `max_file_timestamp_ns`):

- Values are nanoseconds as the file's own data carries them, measured as a timeline source such as [`SchemaFieldSource`](/docs/reference/python-sdk/roboto/experimental/ingest/operations#roboto.experimental.ingest.operations.SchemaFieldSource) measures its `min_file_timestamp_ns`. A part of a shared file whose timestamp column restarts at 0 states bounds from 0.
- Set both or neither. The window is the closed interval `[min_file_timestamp_ns, max_file_timestamp_ns]`.
- The window the entry gives the session is the smallest one enclosing these bounds and the bounds of every timeline source its topics declare. State the bounds when the file's topics are not declared here, or when the session's part of the file runs past the declared topic data. Leave both unset for a window spanning the entry's topic data, or, on an entry declaring no topics, the whole file.
- Roboto adds the anchor covering this entry to the stored window, so re-anchoring the file moves the window with its data. The bounds may be negative, but with the anchor added the window must lie between the Unix epoch and `2**63 - 1` nanoseconds after it ([`INT64_MAX`](/docs/reference/python-sdk/roboto/int64#roboto.int64.INT64_MAX)). Roboto refuses an entry whose window would fall outside that span, an entry whose anchor would move another session's window over the same data outside it, and a later re-anchoring that would move this window outside it. Roboto reports the window in wall-clock time, as [`min_wall_clock_timestamp_ns`](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.SessionFileView.min_wall_clock_timestamp_ns) and [`max_wall_clock_timestamp_ns`](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.SessionFileView.max_wall_clock_timestamp_ns).
- Several sessions can share one file, each stating its own window. A session holds the file's data that overlaps its window, and the session's own time bounds span the windows of all its files. A read scoped to the session covers those bounds unless it names a window of its own.
- A read scoped to the session returns only the rows of this file inside the window, however wide a window the read names, so a session holding part of a shared file reads back that part alone.

Data range (`data_range`) inside a session:

- The session includes one of the file's partitions only when every position of the partition lies inside the range; a partition reaching past either end is left out whole, never trimmed.
- Roboto refuses a range that cuts through a partition the file already has, rather than accepting it and including nothing of that partition.

Building it raises `pydantic.ValidationError` in the cases `FileDeclaration` lists, and when:

- Only one of `min_file_timestamp_ns` and `max_file_timestamp_ns` is set, or `min_file_timestamp_ns` is greater than `max_file_timestamp_ns`.
- A bound does not fit in a signed 64-bit integer.
- A topic is a `FileTopicDeclaration` with its own `anchor_ns`.
- The input has a `range_min_timestamp_ns` or `range_max_timestamp_ns` key. Those keys state a window in nanoseconds since the Unix epoch; this entry takes its window in the file's own timestamps.

**Parameters**

- **data** (`Any`)

**Attributes**

- **SessionFile.max_file_timestamp_ns** (`roboto.experimental.ingest.operations._FileWindowBoundNs | None`) = `None`: Inclusive end of the time window, in the same form. `None` only together with `min_file_timestamp_ns`.

- **SessionFile.min_file_timestamp_ns** (`roboto.experimental.ingest.operations._FileWindowBoundNs | None`) = `None`: Inclusive start of the time window, in nanoseconds of the file's own timestamps.

  `None`, with `max_file_timestamp_ns` also `None`, spans the entry's topic data.

### SessionIngestionSummariesRequest

```python
class roboto.experimental.sessions.operations.SessionIngestionSummariesRequest(
    /,
    **data: Any,
)
```

`from roboto.experimental.sessions import SessionIngestionSummariesRequest`

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

Bases: `pydantic.BaseModel`

Request body for [`ingestion_summaries()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.ingestion_summaries).

Building it raises `pydantic.ValidationError` when `session_ids` is empty or names more than 100 sessions (`MAX_INGESTION_SUMMARIES`).

**Parameters**

- **data** (`Any`)

**Attributes**

- **SessionIngestionSummariesRequest.session_ids** (`list[str]`) = `None`: IDs of the sessions to summarize.

### SessionIngestionSummariesResponse

```python
class roboto.experimental.sessions.operations.SessionIngestionSummariesResponse(
    /,
    **data: Any,
)
```

`from roboto.experimental.sessions import SessionIngestionSummariesResponse`

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

Bases: `pydantic.BaseModel`

Response body of [`ingestion_summaries()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.ingestion_summaries).

**Parameters**

- **data** (`Any`)

**Attributes**

- **SessionIngestionSummariesResponse.summaries** (`list[roboto.experimental.sessions.record.SessionIngestionSummary]`): One summary per requested session, in request order.

  Sessions outside the organization the caller acts in are left out.

### SessionUpdate

```python
class roboto.experimental.sessions.operations.SessionUpdate(/, **data: Any)
```

`from roboto.experimental.sessions.operations import SessionUpdate`

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

Bases: `pydantic.BaseModel`

Request body for [`update()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.update).

A field left at its default (`NotSet` or `None`) is unchanged. A `name` longer than 120 characters raises `pydantic.ValidationError`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **SessionUpdate.completion_policy** (`roboto.experimental.sessions.record.CompletionPolicy | roboto.sentinels.NotSetType | None`): Completion policy of the session.

  `None` removes it, so Roboto marks the session complete only when asked to, by [`complete()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.complete).

  On a session in progress that has files, setting a policy restarts its inactivity: Roboto marks the session complete [`inactivity_minutes`](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.CompletionPolicy.inactivity_minutes) from now, unless a file is added first. A complete session stays complete; the policy applies once a file is added to it, which puts it back in progress.

- **SessionUpdate.custom_fields_changeset** (`roboto.updates.CustomFieldChangeset | None`) = `None`: Changes to the session's custom-field values.

  Each field name the changeset references must be a custom field defined for [`Session`](/docs/reference/python-sdk/roboto/domain/custom_fields/record#roboto.domain.custom_fields.record.TargetEntityType.Session) in the session's organization, with status [`Ready`](/docs/reference/python-sdk/roboto/domain/custom_fields/record#roboto.domain.custom_fields.record.CustomFieldStatus.Ready), and each `set_fields` value must match that field's declared type. Otherwise the request fails with `RobotoIllegalArgumentException`. Fields the changeset does not name are unchanged.

- **SessionUpdate.description** (`str | roboto.sentinels.NotSetType | None`): Human-readable description of the session. `None` clears it.

- **SessionUpdate.metadata_changeset** (`roboto.updates.MetadataChangeset | roboto.sentinels.NotSetType`): Changes to the session's tags and metadata.

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

- **SessionUpdate.name** (`Annotated[str, pydantic.StringConstraints(max_length=120)] | roboto.sentinels.NotSetType | None`): Human-readable name of the session, at most 120 characters. `None` clears it.

### SetUnixOffsetRequest

```python
class roboto.experimental.sessions.operations.SetUnixOffsetRequest(/, **data: Any)
```

`from roboto.experimental.sessions.operations import SetUnixOffsetRequest`

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

Bases: `pydantic.BaseModel`

Request body for [`set_unix_offset()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.set_unix_offset).

That method describes which data the anchor reaches and how it replaces anchors already on the data. Building it raises `pydantic.ValidationError` when `unix_epoch_offset_ns` does not fall after the Unix epoch, is larger than `2**63 - 1`, or is a value [`to_epoch_nanoseconds()`](/docs/reference/python-sdk/roboto/time#roboto.time.to_epoch_nanoseconds) refuses.

**Parameters**

- **data** (`Any`)

**Attributes**

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

- **SetUnixOffsetRequest.unix_epoch_offset_ns** (`roboto.time._EpochNanosecondsFromTime`): Wall-clock time of stored time 0, in nanoseconds since the Unix epoch.

  Any [`Time`](/docs/reference/python-sdk/roboto/time#roboto.time.Time) is also accepted, converted as [`to_epoch_nanoseconds()`](/docs/reference/python-sdk/roboto/time#roboto.time.to_epoch_nanoseconds) converts it: an `int` is nanoseconds, a `float`, `decimal.Decimal`, or numeric string is seconds, and a `datetime.datetime` or ISO 8601 string is that instant. The field is typed `int`, so convert with that function first to satisfy a type checker.

### SkipWaitingRequest

```python
class roboto.experimental.sessions.operations.SkipWaitingRequest(/, **data: Any)
```

`from roboto.experimental.sessions import SkipWaitingRequest`

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

Bases: `pydantic.BaseModel`

Request body for [`skip_waiting_for()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.skip_waiting_for).

Building it raises `pydantic.ValidationError` when `file_ids` is empty or names more than 1,000 files.

**Parameters**

- **data** (`Any`)

**Attributes**

- **SkipWaitingRequest.file_ids** (`list[str]`) = `None`: IDs of the session's files to stop waiting for.

  A file not in the session is listed in [`not_in_session`](/docs/reference/python-sdk/roboto/experimental/sessions/record#roboto.experimental.sessions.record.SkipWaitingResponse.not_in_session) and nothing is skipped for it.
