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

### CreateTriggerRequest

```python
class roboto.domain.actions.trigger_operations.CreateTriggerRequest(/, **data: Any)
```

`from roboto import CreateTriggerRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/trigger_operations.py#L30-L109)

Bases: `pydantic.BaseModel`

Deprecated. Request body for [`create()`](/docs/reference/python-sdk/roboto/domain/actions/trigger#roboto.domain.actions.trigger.Trigger.create), in the legacy trigger model.

To create a trigger with the current model, use [`create()`](/docs/reference/python-sdk/roboto/domain/triggers/trigger#roboto.domain.triggers.trigger.Trigger.create), which sends [`CreateTriggerRequest`](/docs/reference/python-sdk/roboto/domain/triggers/operations#roboto.domain.triggers.operations.CreateTriggerRequest).

Building it raises `pydantic.ValidationError` when:

- `name` is empty, is longer than 256 characters, or holds a character other than a letter, digit, underscore, or hyphen.
- `required_inputs` is empty or holds only blank patterns.
- `additional_inputs` is empty or holds only blank patterns.

**Parameters**

- **data** (`Any`)

**Attributes**

- **CreateTriggerRequest.action_digest** (`str | None`) = `None`: Digest of the action version to invoke. `None` invokes the latest version.

- **CreateTriggerRequest.action_name** (`str`): Name of the action to invoke, unique within the organization that owns it.

- **CreateTriggerRequest.action_owner_id** (`str | None`) = `None`: ID of the organization that owns the action. `None` means the organization the trigger is created in.

- **CreateTriggerRequest.additional_inputs** (`list[str] | None`) = `None`: File patterns for more files to pass to each invocation, beyond those `required_inputs` matches.

  `None` adds none. A list must contain at least one non-blank pattern.

- **CreateTriggerRequest.causes** (`list[roboto.domain.actions.trigger_record.TriggerEvaluationCause] | None`) = `None`: Kinds of change that make Roboto evaluate the trigger. `None` evaluates it when files are uploaded.

- **CreateTriggerRequest.compute_requirement_overrides** (`roboto.domain.actions.ComputeRequirements | None`) = `None`: Compute requirements that override the action's for each invocation. `None` uses the action's own.

- **CreateTriggerRequest.condition** (`roboto.query.ConditionType | None`) = `None`: Condition a dataset or file must satisfy for the trigger to invoke the action. `None` sets none.

  A condition can test, for example, the dataset's or file's metadata.

- **CreateTriggerRequest.container_parameter_overrides** (`roboto.domain.actions.ContainerParameters | None`) = `None`: Container parameters that override the action's for each invocation. `None` uses the action's own.

- **CreateTriggerRequest.enabled** (`bool`) = `True`: Whether the trigger is enabled as soon as it is created.

- **CreateTriggerRequest.for_each** (`roboto.domain.actions.trigger_record.TriggerForEachPrimitive`): Whether the trigger starts one invocation per dataset or one per matching file.

- **CreateTriggerRequest.name** (`str`) = `None`: Human-readable name of the trigger, unique within its organization.

  Letters, digits, underscores, and hyphens only, at most 256 characters.

- **CreateTriggerRequest.parameter_values** (`dict[str, Any] | None`) = `None`: Values to pass to the action's parameters, keyed by parameter name. `None` passes none.

- **CreateTriggerRequest.required_inputs** (`list[str]`): File patterns, such as `**/*.bag`, that select the files the trigger invokes the action on.

  With `for_each` set to [`Dataset`](/docs/reference/python-sdk/roboto/domain/actions/trigger_record#roboto.domain.actions.trigger_record.TriggerForEachPrimitive.Dataset), the dataset's files together must match every pattern; with [`DatasetFile`](/docs/reference/python-sdk/roboto/domain/actions/trigger_record#roboto.domain.actions.trigger_record.TriggerForEachPrimitive.DatasetFile), each file that matches any pattern gets its own invocation. The list must contain at least one non-blank pattern.

- **CreateTriggerRequest.service_user_id** (`str | None`) = `None`: Deprecated. Roboto ignores it: a trigger's invocations run as its organization's service user.

- **CreateTriggerRequest.timeout** (`int | None`) = `None`: Maximum run time of each invocation, in minutes, overriding the action's. `None` uses the action's own.

#### CreateTriggerRequest.validate_additional_inputs()

```python
def validate_additional_inputs(value: Optional[list[str]]) -> Optional[list[str]]
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/trigger_operations.py#L107-L109)

Reject an empty list, or one whose patterns are all blank; `None` passes.

**Parameters**

- **value** (`Optional[list[str]]`)

**Returns**

- `Optional[list[str]]`

#### CreateTriggerRequest.validate_required_inputs()

```python
def validate_required_inputs(value: list[str]) -> list[str]
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/trigger_operations.py#L102-L104)

Reject an empty list, or one whose patterns are all blank.

**Parameters**

- **value** (`list[str]`)

**Returns**

- `list[str]`

### EvaluateTriggersRequest

```python
class roboto.domain.actions.trigger_operations.EvaluateTriggersRequest(/, **data: Any)
```

`from roboto import EvaluateTriggersRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/trigger_operations.py#L112-L119)

Bases: `pydantic.BaseModel`

Request body holding the IDs of trigger evaluations to process.

No SDK method or Roboto route uses this model.

**Parameters**

- **data** (`Any`)

**Attributes**

- **EvaluateTriggersRequest.trigger_evaluation_ids** (`collections.abc.Iterable[int]`): IDs of the trigger evaluations to process.

### QueryTriggersRequest

```python
class roboto.domain.actions.trigger_operations.QueryTriggersRequest(/, **data: Any)
```

`from roboto import QueryTriggersRequest`

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

Bases: `pydantic.BaseModel`

Request body holding filter criteria for triggers.

No SDK method or Roboto route uses this model. To list an organization's triggers, use [`list()`](/docs/reference/python-sdk/roboto/domain/triggers/trigger#roboto.domain.triggers.trigger.Trigger.list).

**Parameters**

- **data** (`Any`)

**Attributes**

- **QueryTriggersRequest.filters** (`dict[str, Any]`) = `None`: Filter criteria for triggers.
- **QueryTriggersRequest.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

### TriggerEvaluationsSummaryResponse

```python
class roboto.domain.actions.trigger_operations.TriggerEvaluationsSummaryResponse(
    /,
    **data: Any,
)
```

`from roboto import TriggerEvaluationsSummaryResponse`

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

Bases: `pydantic.BaseModel`

Response body of `GET /v1/triggers/dataset/id/{dataset_id}/evaluations/summary`.

Summary of one dataset's trigger evaluations.

**Parameters**

- **data** (`Any`)

**Attributes**

- **TriggerEvaluationsSummaryResponse.count_pending** (`int`): Number of the dataset's trigger evaluations that are pending.
- **TriggerEvaluationsSummaryResponse.last_evaluation_start** (`datetime.datetime | None`): Time the dataset's most recent trigger evaluation started, or `None` if none has.

### UpdateTriggerRequest

```python
class roboto.domain.actions.trigger_operations.UpdateTriggerRequest(/, **data: Any)
```

`from roboto import UpdateTriggerRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/trigger_operations.py#L147-L208)

Bases: `pydantic.BaseModel`

Deprecated. Request body for [`update()`](/docs/reference/python-sdk/roboto/domain/actions/trigger#roboto.domain.actions.trigger.Trigger.update), in the legacy trigger model.

Each field left unset (`NotSet`) leaves that setting of the trigger unchanged. To update a trigger with the current model, use [`update()`](/docs/reference/python-sdk/roboto/domain/triggers/trigger#roboto.domain.triggers.trigger.Trigger.update), which sends [`UpdateTriggerRequest`](/docs/reference/python-sdk/roboto/domain/triggers/operations#roboto.domain.triggers.operations.UpdateTriggerRequest).

**Parameters**

- **data** (`Any`)

**Attributes**

- **UpdateTriggerRequest.action_digest** (`str | roboto.sentinels.NotSetType | None`): Digest of the action version to invoke. `None` invokes the latest version.

- **UpdateTriggerRequest.action_name** (`str | roboto.sentinels.NotSetType`): Name of the action to invoke, unique within the organization that owns it.

- **UpdateTriggerRequest.action_owner_id** (`str | roboto.sentinels.NotSetType`): ID of the organization that owns the action.

- **UpdateTriggerRequest.additional_inputs** (`list[str] | roboto.sentinels.NotSetType | None`): File patterns for more files to pass to each invocation, beyond those `required_inputs` matches.

  `None` clears them.

- **UpdateTriggerRequest.causes** (`list[roboto.domain.actions.trigger_record.TriggerEvaluationCause] | roboto.sentinels.NotSetType`): Kinds of change that make Roboto evaluate the trigger.

- **UpdateTriggerRequest.compute_requirement_overrides** (`roboto.domain.actions.ComputeRequirements | roboto.sentinels.NotSetType | None`): Compute requirements that override the action's for each invocation.

  `None` clears the override, so invocations use the action's own.

- **UpdateTriggerRequest.condition** (`roboto.query.ConditionType | roboto.sentinels.NotSetType | None`): Condition a dataset or file must satisfy for the trigger to invoke the action. `None` clears it.

- **UpdateTriggerRequest.container_parameter_overrides** (`roboto.domain.actions.ContainerParameters | roboto.sentinels.NotSetType | None`): Container parameters that override the action's for each invocation.

  `None` clears the override, so invocations use the action's own.

- **UpdateTriggerRequest.enabled** (`bool | roboto.sentinels.NotSetType`): Whether the trigger is enabled.

- **UpdateTriggerRequest.for_each** (`roboto.domain.actions.trigger_record.TriggerForEachPrimitive | roboto.sentinels.NotSetType`): Whether the trigger starts one invocation per dataset or one per matching file.

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

- **UpdateTriggerRequest.parameter_values** (`dict[str, Any] | roboto.sentinels.NotSetType | None`): Values to pass to the action's parameters, keyed by parameter name. `None` clears them.

- **UpdateTriggerRequest.required_inputs** (`list[str] | roboto.sentinels.NotSetType`): File patterns that select the files the trigger invokes the action on.

  Matched as described on `CreateTriggerRequest.required_inputs`.

- **UpdateTriggerRequest.timeout** (`int | roboto.sentinels.NotSetType | None`): Maximum run time of each invocation, in minutes, overriding the action's.

  `None` clears the override, so invocations use the action's own.
