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

### CancelActiveInvocationsRequest

```python
class roboto.domain.actions.invocation_operations.CancelActiveInvocationsRequest(
    /,
    **data: Any,
)
```

`from roboto.domain.actions import CancelActiveInvocationsRequest`

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

Bases: `pydantic.BaseModel`

Request body for `POST /v1/actions/invocations/cancel/all`.

The `roboto invocations cancel-all` CLI command sends it. Each request cancels active invocations, those that have not completed, failed, or been cancelled: every queued one in the organization and a limited number of those already scheduled or running. Repeat it until the response's `CancelActiveInvocationsResponse.has_more` is `False`, as the CLI command does.

**Parameters**

- **data** (`Any`)

**Attributes**

- **CancelActiveInvocationsRequest.condition** (`roboto.query.ConditionType | None`) = `None`: Condition an invocation must match to be cancelled. `None` cancels every active invocation in the organization.

  Takes the fields and comparators of `POST /v1/actions/invocations/query`; for example, `input.session_id` equal to a session ID cancels the invocations whose input names that session.

- **CancelActiveInvocationsRequest.created_before** (`datetime.datetime | None`) = `None`: Latest creation time of the scheduled and running invocations to cancel, inclusive.

  It does not limit queued invocations: each request cancels those whatever their age. `None` sets no age limit.

### CancelActiveInvocationsResponse

```python
class roboto.domain.actions.invocation_operations.CancelActiveInvocationsResponse(
    /,
    **data: Any,
)
```

`from roboto.domain.actions import CancelActiveInvocationsResponse`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_operations.py#L50-L69)

Bases: `pydantic.BaseModel`

Response body of `POST /v1/actions/invocations/cancel/all`.

That route takes `CancelActiveInvocationsRequest`. `POST /v1/datasets/{dataset_id}/invocations/cancel`, which cancels the invocations whose data source is that dataset, also returns it.

**Parameters**

- **data** (`Any`)

**Attributes**

- **CancelActiveInvocationsResponse.failure_count** (`int`): Number of invocations this request tried and failed to cancel.

- **CancelActiveInvocationsResponse.has_more** (`bool`): Whether active invocations may remain after this request.

  They remain either beyond the number one request cancels or because a cancellation failed. Repeat the request until it is `False`.

- **CancelActiveInvocationsResponse.success_count** (`int`): Number of invocations this request cancelled.

### CreateInvocationRequest

```python
class roboto.domain.actions.invocation_operations.CreateInvocationRequest(
    /,
    **data: Any,
)
```

`from roboto import CreateInvocationRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_operations.py#L72-L154)

Bases: `pydantic.BaseModel`

Request body for [`invoke()`](/docs/reference/python-sdk/roboto/domain/actions/action#roboto.domain.actions.action.Action.invoke), which starts one run of an action.

**Parameters**

- **data** (`Any`)

**Attributes**

- **CreateInvocationRequest.compute_requirement_overrides** (`roboto.domain.actions.action_record.ComputeRequirements | None`) = `None`: Compute requirements, such as vCPU and memory, that replace the action's own.

  Fields left unset keep the action's values. `None` uses the action's own.

- **CreateInvocationRequest.container_parameter_overrides** (`roboto.domain.actions.action_record.ContainerParameters | None`) = `None`: Container parameters, such as the entry point and environment variables, that replace the action's own.

  Fields left unset keep the action's values. `None` uses the action's own.

- **CreateInvocationRequest.data_source_id** (`str`): ID of the dataset the invocation reads from.

  An invocation that reads from no dataset takes the `data_source_id` of [`unspecified()`](/docs/reference/python-sdk/roboto/domain/actions/invocation_record#roboto.domain.actions.invocation_record.InvocationDataSource.unspecified) instead.

- **CreateInvocationRequest.data_source_type** (`roboto.domain.actions.invocation_record.InvocationDataSourceType`): Type of the data source that `data_source_id` names.

  [`Dataset`](/docs/reference/python-sdk/roboto/domain/actions/invocation_record#roboto.domain.actions.invocation_record.InvocationDataSourceType.Dataset) is the only type.

- **CreateInvocationRequest.idempotency_id** (`str | None`) = `None`: ID that no other invocation may share.

  A request that repeats one is rejected with `RobotoConflictException`, so retrying it never runs the action twice. `None` sets no such ID.

- **CreateInvocationRequest.input_data** (`list[str]`): Deprecated. Gitignore-style patterns for the files in the data source to read.

  Use `rich_input_data` instead. Ignored when `rich_input_data` is set.

- **CreateInvocationRequest.invocation_source** (`roboto.domain.actions.invocation_record.InvocationSource`): Whether a user or a trigger started the invocation.

  Only Roboto can create invocations with source [`Trigger`](/docs/reference/python-sdk/roboto/domain/actions/invocation_record#roboto.domain.actions.invocation_record.InvocationSource.Trigger).

- **CreateInvocationRequest.invocation_source_id** (`str | None`) = `None`: ID of the user or trigger that started the invocation.

  On a [`Manual`](/docs/reference/python-sdk/roboto/domain/actions/invocation_record#roboto.domain.actions.invocation_record.InvocationSource.Manual) invocation, Roboto replaces it with the caller's user ID.

- **CreateInvocationRequest.owner_org_id** (`str | None`) = `None`: ID of the organization that owns the action, such as `roboto-public` for an action in the Action Hub.

  The invocation is created in the caller's organization, not the action's. `None` looks the action up in the organization the request's headers name.

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

  Roboto converts each value to a string, and fills in the default of each parameter left out. `None` gives no values, which Roboto rejects with `RobotoInvalidRequestException` when the action has a required parameter.

- **CreateInvocationRequest.rich_input_data** (`roboto.domain.actions.invocation_record.InvocationInput | None`) = `None`: Inputs the invocation reads, such as files, topics, or sessions. `None` falls back to `input_data`.

- **CreateInvocationRequest.timeout** (`int | None`) = `None`: Maximum time the invocation may run, in minutes.

  `None` uses the action's timeout, or Roboto's default when the action has none.

- **CreateInvocationRequest.upload_destination** (`roboto.domain.actions.invocation_record.InvocationUploadDestination | None`) = `None`: Dataset to upload the files the invocation writes to its output directory to.

  `None` uploads them to the dataset the invocation's input files and topics come from when they all come from one, and otherwise not at all.

### SetContainerInfoRequest

```python
class roboto.domain.actions.invocation_operations.SetContainerInfoRequest(
    /,
    **data: Any,
)
```

`from roboto import SetContainerInfoRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_operations.py#L157-L164)

Bases: `pydantic.BaseModel`

Request body for [`set_container_image_digest()`](/docs/reference/python-sdk/roboto/domain/actions/invocation#roboto.domain.actions.invocation.Invocation.set_container_image_digest).

Only the invocation itself, while it runs, or Roboto administrators may send it.

**Parameters**

- **data** (`Any`)

**Attributes**

- **SetContainerInfoRequest.image_digest** (`str`): Digest of the container image the invocation pulled to run.

### SetLogsLocationRequest

```python
class roboto.domain.actions.invocation_operations.SetLogsLocationRequest(/, **data: Any)
```

`from roboto import SetLogsLocationRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_operations.py#L167-L177)

Bases: `pydantic.BaseModel`

Request body for [`set_logs_location()`](/docs/reference/python-sdk/roboto/domain/actions/invocation#roboto.domain.actions.invocation.Invocation.set_logs_location).

Only Roboto administrators may send it.

**Parameters**

- **data** (`Any`)

**Attributes**

- **SetLogsLocationRequest.bucket** (`str`): Name of the S3 bucket that holds the invocation's logs.
- **SetLogsLocationRequest.prefix** (`str`): S3 key prefix under which the invocation's log files are stored.

### UpdateInvocationStatus

```python
class roboto.domain.actions.invocation_operations.UpdateInvocationStatus(/, **data: Any)
```

`from roboto import UpdateInvocationStatus`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/invocation_operations.py#L180-L190)

Bases: `pydantic.BaseModel`

Request body for [`update_status()`](/docs/reference/python-sdk/roboto/domain/actions/invocation#roboto.domain.actions.invocation.Invocation.update_status).

Only the invocation itself, while it runs, or Roboto administrators may send it.

**Parameters**

- **data** (`Any`)

**Attributes**

- **UpdateInvocationStatus.detail** (`str`): Human-readable detail recorded with the status, such as why the invocation failed.
- **UpdateInvocationStatus.status** (`roboto.domain.actions.invocation_record.InvocationStatus`): Status the invocation moves to.
