---
sidebar:
  hidden: true
title: roboto.domain.skills.operations
---
## Module Contents

### CreateSkillRequest

```python
class roboto.domain.skills.operations.CreateSkillRequest(/, **data: Any)
```

`from roboto.domain.skills import CreateSkillRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/skills/operations.py#L48-L104)

Bases: `pydantic.BaseModel`

Request body for [`create()`](/docs/reference/python-sdk/roboto/domain/skills/skill#roboto.domain.skills.skill.Skill.create).

Roboto creates the skill and its version 1 together, and subscribes the author with `ai_version` set to `1`, so Roboto's AI can apply the skill for the author at once.

Building it raises `pydantic.ValidationError` when:

- `name` is longer than 120 characters.
- `name` does not match `SKILL_NAME_PATTERN`.
- `description` is longer than 500 characters.
- `accessibility` is [`Roboto`](/docs/reference/python-sdk/roboto/domain/skills/record#roboto.domain.skills.record.SkillAccessibility.Roboto).

**Parameters**

- **data** (`Any`)

**Attributes**

- **CreateSkillRequest.accessibility** (`Annotated[roboto.domain.skills.record.SkillAccessibility, pydantic.AfterValidator(_refuse_roboto_accessibility)]`): Who can see and edit the skill.

  The author can change it later with [`update_metadata()`](/docs/reference/python-sdk/roboto/domain/skills/skill#roboto.domain.skills.skill.Skill.update_metadata). [`Roboto`](/docs/reference/python-sdk/roboto/domain/skills/record#roboto.domain.skills.record.SkillAccessibility.Roboto) is refused: only Roboto ships skills with it.

- **CreateSkillRequest.body** (`str`): Instructions Roboto's AI follows when it applies version 1.

- **CreateSkillRequest.description** (`str`) = `None`: Text telling Roboto's AI when to apply version 1.

  At most 500 characters ([`MAX_SKILL_DESCRIPTION_LENGTH`](/docs/reference/python-sdk/roboto/domain/skills/record#roboto.domain.skills.record.MAX_SKILL_DESCRIPTION_LENGTH)). Roboto shows it to the AI in the conversations of every subscriber who has made this version available to it.

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

- **CreateSkillRequest.name** (`str`) = `None`: Name of the skill, at most 120 characters, matching `SKILL_NAME_PATTERN`.

  The names of skills shared with the organization ([`Org`](/docs/reference/python-sdk/roboto/domain/skills/record#roboto.domain.skills.record.SkillAccessibility.Org) and [`OrgEditable`](/docs/reference/python-sdk/roboto/domain/skills/record#roboto.domain.skills.record.SkillAccessibility.OrgEditable)) are unique within the organization. A private skill's name is unique among its author's private skills in the organization, so it can match the name of a shared skill. A name already taken raises `RobotoConflictException`.

- **CreateSkillRequest.relevant_topics** (`list[str]`) = `None`: Names of the topics version 1's instructions examine, such as `"/imu/data"`. Defaults to none.

  Roboto stores the list as given and does not read topic names from `body`; the Roboto web app fills the list in from the topic references in the body. See [`relevant_topics`](/docs/reference/python-sdk/roboto/domain/skills/record#roboto.domain.skills.record.SkillVersionRecord.relevant_topics) for how Roboto's AI uses it.

- **CreateSkillRequest.tags** (`list[str]`) = `None`: Tags to set on the skill. Defaults to none.

  Change them later with `put_tags` and `remove_tags` on `UpdateSkillMetadataRequest`.

### CreateSkillVersionRequest

```python
class roboto.domain.skills.operations.CreateSkillVersionRequest(/, **data: Any)
```

`from roboto.domain.skills import CreateSkillVersionRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/skills/operations.py#L151-L176)

Bases: `pydantic.BaseModel`

Request body for [`create_version()`](/docs/reference/python-sdk/roboto/domain/skills/skill#roboto.domain.skills.skill.Skill.create_version).

Roboto numbers the new version one higher than the skill's highest version. Subscribers keep the version they have pinned.

Building the request raises `pydantic.ValidationError` when `description` is longer than 500 characters.

**Parameters**

- **data** (`Any`)

**Attributes**

- **CreateSkillVersionRequest.body** (`str`): Instructions Roboto's AI follows when it applies this version.

- **CreateSkillVersionRequest.description** (`str`) = `None`: Text telling Roboto's AI when to apply this version.

  At most 500 characters ([`MAX_SKILL_DESCRIPTION_LENGTH`](/docs/reference/python-sdk/roboto/domain/skills/record#roboto.domain.skills.record.MAX_SKILL_DESCRIPTION_LENGTH)). Roboto shows it to the AI in the conversations of every subscriber who has made this version available to it.

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

- **CreateSkillVersionRequest.relevant_topics** (`list[str]`) = `None`: Names of the topics this version's instructions examine, such as `"/imu/data"`. Defaults to none.

  See [`relevant_topics`](/docs/reference/python-sdk/roboto/domain/skills/record#roboto.domain.skills.record.SkillVersionRecord.relevant_topics) for how Roboto's AI uses them.

### SKILL_NAME_PATTERN

```python
roboto.domain.skills.operations.SKILL_NAME_PATTERN = '^[A-Za-z0-9_-]+$'
```

`from roboto.domain.skills import SKILL_NAME_PATTERN`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/skills/operations.py#L18-L18)

Regular expression a skill name must match: letters, digits, hyphens and underscores only.

Roboto checks names against it when a skill is created or renamed. A user invokes a skill in a chat message by typing `/` and its name, and the name ends at the first space, so it cannot contain whitespace.

### SetSkillSubscriptionRequest

```python
class roboto.domain.skills.operations.SetSkillSubscriptionRequest(/, **data: Any)
```

`from roboto.domain.skills import SetSkillSubscriptionRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/skills/operations.py#L205-L219)

Bases: `pydantic.BaseModel`

Request body for [`set_ai_version()`](/docs/reference/python-sdk/roboto/domain/skills/skill#roboto.domain.skills.skill.Skill.set_ai_version).

Roboto subscribes the caller to the skill if they are not subscribed, and otherwise changes only the subscription's `ai_version`. Any caller who can see the skill can send it.

**Parameters**

- **data** (`Any`)

**Attributes**

- **SetSkillSubscriptionRequest.ai_version** (`int | None`) = `None`: Version of the skill Roboto's AI may apply for the caller on its own.

  `None` keeps the subscription but stops the AI from applying the skill on its own; the caller can still invoke it in a chat message. A version the skill does not have raises `RobotoNotFoundException`.

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

### SkillListScope

```python
class roboto.domain.skills.operations.SkillListScope
```

`from roboto.domain.skills import SkillListScope`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/skills/operations.py#L26-L39)

Bases: `roboto.compat.StrEnum`

Scope of [`list_for_org()`](/docs/reference/python-sdk/roboto/domain/skills/skill#roboto.domain.skills.skill.Skill.list_for_org): which of the skills the caller can see it lists.

A skill shared with the organization that the caller subscribed to but did not author is in both subsets.

**Attributes**

- **SkillListScope.Org** = `'org'`: Skills shared with the organization that someone else authored, whether or not the caller subscribed.
- **SkillListScope.Personal** = `'personal'`: Skills the caller authored or has subscribed to.
- **SkillListScope.Roboto** = `'roboto'`: Skills that Roboto ships ([`Roboto`](/docs/reference/python-sdk/roboto/domain/skills/record#roboto.domain.skills.record.SkillAccessibility.Roboto)), and no others.

### UpdateSkillMetadataRequest

```python
class roboto.domain.skills.operations.UpdateSkillMetadataRequest(/, **data: Any)
```

`from roboto.domain.skills import UpdateSkillMetadataRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/skills/operations.py#L107-L148)

Bases: `pydantic.BaseModel`

Request body for [`update_metadata()`](/docs/reference/python-sdk/roboto/domain/skills/skill#roboto.domain.skills.skill.Skill.update_metadata).

A field left unset (`NotSet`) leaves that property of the skill unchanged. The author can change every field. On an [`OrgEditable`](/docs/reference/python-sdk/roboto/domain/skills/record#roboto.domain.skills.record.SkillAccessibility.OrgEditable) skill, any subscribed member of the organization can change the name and tags, but only the author can change `accessibility`.

Building the request raises `pydantic.ValidationError` when `name` is longer than 120 characters or does not match `SKILL_NAME_PATTERN`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **UpdateSkillMetadataRequest.accessibility** (`Annotated[roboto.domain.skills.record.SkillAccessibility | roboto.sentinels.NotSetType, pydantic.AfterValidator(_refuse_roboto_accessibility)]`): New setting for who can see and edit the skill.

  Sharing a private skill shows it to every member of the organization at once, and fails with `RobotoConflictException` when a shared skill already has its name. Making a shared skill private deletes every subscription to it except the author's. [`Roboto`](/docs/reference/python-sdk/roboto/domain/skills/record#roboto.domain.skills.record.SkillAccessibility.Roboto) is refused: only Roboto ships skills with it.

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

- **UpdateSkillMetadataRequest.name** (`str | roboto.sentinels.NotSetType`) = `None`: New name of the skill, at most 120 characters, matching `SKILL_NAME_PATTERN`.

  Unique under the same rules as `CreateSkillRequest.name`. A name already taken raises `RobotoConflictException`.

- **UpdateSkillMetadataRequest.put_tags** (`list[str]`) = `None`: Tags to add to the skill, keeping its other tags. Defaults to none.

  Roboto applies `put_tags` and `remove_tags` to the tags stored when the request arrives, so two requests that change different tags at the same time both take effect.

- **UpdateSkillMetadataRequest.remove_tags** (`list[str]`) = `None`: Tags to remove from the skill. Defaults to none.

  A tag the skill does not have is ignored, and a tag in both `put_tags` and `remove_tags` is removed.

### UpdateSkillVersionRequest

```python
class roboto.domain.skills.operations.UpdateSkillVersionRequest(/, **data: Any)
```

`from roboto.domain.skills import UpdateSkillVersionRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/skills/operations.py#L179-L202)

Bases: `pydantic.BaseModel`

Request body for [`update_version()`](/docs/reference/python-sdk/roboto/domain/skills/skill#roboto.domain.skills.skill.Skill.update_version).

A field left unset (`NotSet`) is unchanged. Roboto changes the version in place and keeps no copy of the earlier values, so subscribers pinned to the version get the new content the next time Roboto's AI applies it for them. To leave them on the current content, add a version with [`create_version()`](/docs/reference/python-sdk/roboto/domain/skills/skill#roboto.domain.skills.skill.Skill.create_version) instead.

Building the request raises `pydantic.ValidationError` when `description` is longer than 500 characters.

**Parameters**

- **data** (`Any`)

**Attributes**

- **UpdateSkillVersionRequest.body** (`str | roboto.sentinels.NotSetType`): New instructions Roboto's AI follows when it applies this version.

- **UpdateSkillVersionRequest.description** (`str | roboto.sentinels.NotSetType`) = `None`: New text telling Roboto's AI when to apply this version.

  At most 500 characters ([`MAX_SKILL_DESCRIPTION_LENGTH`](/docs/reference/python-sdk/roboto/domain/skills/record#roboto.domain.skills.record.MAX_SKILL_DESCRIPTION_LENGTH)).

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

- **UpdateSkillVersionRequest.relevant_topics** (`list[str] | roboto.sentinels.NotSetType`): New names of the topics this version's instructions examine. An empty list clears them.
