---
sidebar:
  hidden: true
title: roboto.ai.goals.achieve_inputs
---
## Module Contents

### CreateEventsAchieveInput

```python
class roboto.ai.goals.achieve_inputs.CreateEventsAchieveInput(/, **data: Any)
```

`from roboto.ai.goals import CreateEventsAchieveInput`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/goals/achieve_inputs.py#L173-L184)

Bases: `pydantic.BaseModel`

Input Roboto's AI submits to achieve a [`CREATE_EVENTS`](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.GoalType.CREATE_EVENTS) goal.

Roboto checks the AI's input against it, and [`CreateEventsGoalResult`](/docs/reference/python-sdk/roboto/ai/goals/results#roboto.ai.goals.results.CreateEventsGoalResult) holds that input for you to read.

**Parameters**

- **data** (`Any`)

**Attributes**

- **CreateEventsAchieveInput.events** (`list[EventSpec]`): Events to create on the goal's dataset.

  Empty when the AI found no span of time that matches the goal's event types.

### DatasetSummaryAchieveInput

```python
class roboto.ai.goals.achieve_inputs.DatasetSummaryAchieveInput(/, **data: Any)
```

`from roboto.ai.goals import DatasetSummaryAchieveInput`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/goals/achieve_inputs.py#L34-L39)

Bases: [`SummaryAchieveInput`](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.SummaryAchieveInput)

Input Roboto's AI submits to achieve a [`DATASET_SUMMARY`](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.GoalType.DATASET_SUMMARY) goal.

Roboto checks the AI's input against it, and [`DatasetSummaryGoalResult`](/docs/reference/python-sdk/roboto/ai/goals/results#roboto.ai.goals.results.DatasetSummaryGoalResult) holds that input for you to read.

**Parameters**

- **data** (`Any`)

### DatasetTriageAchieveInput

```python
class roboto.ai.goals.achieve_inputs.DatasetTriageAchieveInput(/, **data: Any)
```

`from roboto.ai.goals import DatasetTriageAchieveInput`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/goals/achieve_inputs.py#L105-L110)

Bases: [`TriageAchieveInput`](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.TriageAchieveInput)

Input Roboto's AI submits to achieve a [`DATASET_TRIAGE`](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.GoalType.DATASET_TRIAGE) goal.

Roboto checks the AI's input against it, and [`DatasetTriageGoalResult`](/docs/reference/python-sdk/roboto/ai/goals/results#roboto.ai.goals.results.DatasetTriageGoalResult) holds that input for you to read.

**Parameters**

- **data** (`Any`)

### EventSpec

```python
class roboto.ai.goals.achieve_inputs.EventSpec(/, **data: Any)
```

`from roboto.ai.goals import EventSpec`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/goals/achieve_inputs.py#L158-L170)

Bases: [`EventSpecBase`](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.EventSpecBase)

Event Roboto's AI proposes to create for a [`CREATE_EVENTS`](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.GoalType.CREATE_EVENTS) goal.

Carried in `CreateEventsAchieveInput.events`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **EventSpec.target_id** (`str | None`) = `None`: ID of the dataset, file, topic or message path the event is about.

  It names the goal's dataset (`ds_`), or a file (`fl_`), topic (`tp_`) or message path (`mp_`) in that dataset. Roboto rejects a submission that names anything else or leaves this `None`. `None` on events the AI proposed before Roboto stored this field.

### EventSpecBase

```python
class roboto.ai.goals.achieve_inputs.EventSpecBase(/, **data: Any)
```

`from roboto.ai.goals import EventSpecBase`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/goals/achieve_inputs.py#L121-L155)

Bases: `pydantic.BaseModel`

Fields shared by the events Roboto's AI proposes for a goal that creates events, on a dataset or a session.

Base of [`EventSpec`](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.EventSpec) and [`SessionEventSpec`](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.SessionEventSpec). Building it raises `pydantic.ValidationError` when `start_time` or `end_time` is not an integer (a boolean, string or float is rejected, not converted), or when `end_time` is before `start_time`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **EventSpecBase.description** (`str | None`) = `None`: Human-readable description of the event. `None` gives the event no description.

- **EventSpecBase.end_time** (`pydantic.StrictInt`): End of the event, in nanoseconds since the Unix epoch. Equal to `start_time` for an instantaneous event.

- **EventSpecBase.name** (`str`): Name of the event: a key of the goal's `event_vocabulary`, which Roboto checks when the AI submits it.

- **EventSpecBase.start_time** (`pydantic.StrictInt`): Start of the event, in nanoseconds since the Unix epoch.

- **EventSpecBase.tags** (`list[str]`) = `None`: Tags to set on the event, each a key of the goal's `tag_vocabulary`.

  Roboto checks the tags against that vocabulary when the AI submits them. Defaults to none.

### LabelDecision

```python
class roboto.ai.goals.achieve_inputs.LabelDecision(/, **data: Any)
```

`from roboto.ai.goals import LabelDecision`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/goals/achieve_inputs.py#L50-L88)

Bases: `pydantic.BaseModel`

Decision of Roboto's AI on whether one label of a triage goal's vocabulary applies.

Carried in `TriageAchieveInput.label_decisions`. Building it raises `pydantic.ValidationError` when:

- `applies` is not a boolean (a string or number is rejected, not converted).
- `justification` is empty or holds only whitespace.
- `confidence` is outside 0.0 to 1.0.

**Parameters**

- **data** (`Any`)

**Attributes**

- **LabelDecision.applies** (`pydantic.StrictBool`): Whether the label applies to the goal's dataset or session.

  Roboto adds each label that applies to that dataset's or session's tags. A label that does not apply is kept only in this decision.

- **LabelDecision.confidence** (`float`) = `None`: Confidence of the AI in the decision, from 0.0 (none) to 1.0 (certain).

  Roboto does not use it to decide whether to add the label.

- **LabelDecision.justification** (`str`) = `None`: Reasoning for the decision, citing what the AI observed in the dataset or session.

  Required whether or not the label applies.

- **LabelDecision.label** (`str`): Label the decision is about: a key of the goal's `label_vocabulary`.

  Roboto checks the label against that vocabulary when the AI submits it.

### SessionCreateEventsAchieveInput

```python
class roboto.ai.goals.achieve_inputs.SessionCreateEventsAchieveInput(/, **data: Any)
```

`from roboto.ai.goals import SessionCreateEventsAchieveInput`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/goals/achieve_inputs.py#L202-L213)

Bases: `pydantic.BaseModel`

Input Roboto's AI submits to achieve a [`SESSION_CREATE_EVENTS`](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.GoalType.SESSION_CREATE_EVENTS) goal.

Roboto checks the AI's input against it, and [`SessionCreateEventsGoalResult`](/docs/reference/python-sdk/roboto/ai/goals/results#roboto.ai.goals.results.SessionCreateEventsGoalResult) holds that input for you to read.

**Parameters**

- **data** (`Any`)

**Attributes**

- **SessionCreateEventsAchieveInput.events** (`list[SessionEventSpec]`): Events to create on the goal's session.

  Empty when the AI found no span of time that matches the goal's event types.

### SessionEventSpec

```python
class roboto.ai.goals.achieve_inputs.SessionEventSpec(/, **data: Any)
```

`from roboto.ai.goals import SessionEventSpec`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/goals/achieve_inputs.py#L187-L199)

Bases: [`EventSpecBase`](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.EventSpecBase)

Event Roboto's AI proposes to create for a [`SESSION_CREATE_EVENTS`](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.GoalType.SESSION_CREATE_EVENTS) goal.

Carried in `SessionCreateEventsAchieveInput.events`. The event belongs to the goal's session, so no field names a session.

**Parameters**

- **data** (`Any`)

**Attributes**

- **SessionEventSpec.topic_ids** (`list[str]`) = `None`: IDs of the session's topics that the event concerns.

  Defaults to none, meaning the event concerns the whole session. Roboto rejects a submission that names a topic twice, or a topic with no data in the session.

### SessionSummaryAchieveInput

```python
class roboto.ai.goals.achieve_inputs.SessionSummaryAchieveInput(/, **data: Any)
```

`from roboto.ai.goals import SessionSummaryAchieveInput`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/goals/achieve_inputs.py#L42-L47)

Bases: [`SummaryAchieveInput`](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.SummaryAchieveInput)

Input Roboto's AI submits to achieve a [`SESSION_SUMMARY`](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.GoalType.SESSION_SUMMARY) goal.

Roboto checks the AI's input against it, and [`SessionSummaryGoalResult`](/docs/reference/python-sdk/roboto/ai/goals/results#roboto.ai.goals.results.SessionSummaryGoalResult) holds that input for you to read.

**Parameters**

- **data** (`Any`)

### SessionTriageAchieveInput

```python
class roboto.ai.goals.achieve_inputs.SessionTriageAchieveInput(/, **data: Any)
```

`from roboto.ai.goals import SessionTriageAchieveInput`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/goals/achieve_inputs.py#L113-L118)

Bases: [`TriageAchieveInput`](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.TriageAchieveInput)

Input Roboto's AI submits to achieve a [`SESSION_TRIAGE`](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.GoalType.SESSION_TRIAGE) goal.

Roboto checks the AI's input against it, and [`SessionTriageGoalResult`](/docs/reference/python-sdk/roboto/ai/goals/results#roboto.ai.goals.results.SessionTriageGoalResult) holds that input for you to read.

**Parameters**

- **data** (`Any`)

### SummaryAchieveInput

```python
class roboto.ai.goals.achieve_inputs.SummaryAchieveInput(/, **data: Any)
```

`from roboto.ai.goals.achieve_inputs import SummaryAchieveInput`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/goals/achieve_inputs.py#L19-L31)

Bases: `pydantic.BaseModel`

Input Roboto's AI submits to achieve a summary goal, on a dataset or a session.

Building it raises `pydantic.ValidationError` when `summary` is empty or holds only whitespace.

**Parameters**

- **data** (`Any`)

**Attributes**

- **SummaryAchieveInput.summary** (`str`) = `None`: Text of the summary, which Roboto stores on the goal's dataset or session.

### TriageAchieveInput

```python
class roboto.ai.goals.achieve_inputs.TriageAchieveInput(/, **data: Any)
```

`from roboto.ai.goals.achieve_inputs import TriageAchieveInput`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/goals/achieve_inputs.py#L91-L102)

Bases: `pydantic.BaseModel`

Input Roboto's AI submits to achieve a triage goal, on a dataset or a session.

Building it raises `pydantic.ValidationError` when `label_decisions` is empty.

**Parameters**

- **data** (`Any`)

**Attributes**

- **TriageAchieveInput.label_decisions** (`list[LabelDecision]`) = `None`: One decision for each label in the goal's `label_vocabulary`.

  Roboto checks that every label appears exactly once when the AI submits the decisions, and this model does not, so the result of a failed attempt can repeat or leave out a label.
