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

### CreateEventsGoalResult

```python
class roboto.ai.goals.results.CreateEventsGoalResult(/, **data: Any)
```

`from roboto.ai.goals import CreateEventsGoalResult`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/goals/results.py#L94-L103)

Bases: [`GoalResultBase`](/docs/reference/python-sdk/roboto/ai/goals/results#roboto.ai.goals.results.GoalResultBase), [`roboto.ai.goals.achieve_inputs.CreateEventsAchieveInput`](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.CreateEventsAchieveInput)

Result of a dataset events goal: the events the AI submitted for the dataset, in `events`.

The goal is a [`CreateEventsGoal`](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.CreateEventsGoal). The result does not hold the IDs of the events Roboto created; to find them, list the dataset's events with [`get_by_dataset()`](/docs/reference/python-sdk/roboto/domain/events/event#roboto.domain.events.event.Event.get_by_dataset) and match their names and time ranges.

**Parameters**

- **data** (`Any`)

**Attributes**

- **CreateEventsGoalResult.goal_type** (`Literal[roboto.ai.goals.types.GoalType.CREATE_EVENTS]`): Kind of goal, always [`CREATE_EVENTS`](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.GoalType.CREATE_EVENTS).

### DatasetSummaryGoalResult

```python
class roboto.ai.goals.results.DatasetSummaryGoalResult(/, **data: Any)
```

`from roboto.ai.goals import DatasetSummaryGoalResult`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/goals/results.py#L57-L64)

Bases: [`GoalResultBase`](/docs/reference/python-sdk/roboto/ai/goals/results#roboto.ai.goals.results.GoalResultBase), [`roboto.ai.goals.achieve_inputs.DatasetSummaryAchieveInput`](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.DatasetSummaryAchieveInput)

Result of a dataset summary goal: the summary the AI wrote for the dataset, in `summary`.

The goal is a [`DatasetSummaryAgentGoal`](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.DatasetSummaryAgentGoal).

**Parameters**

- **data** (`Any`)

**Attributes**

- **DatasetSummaryGoalResult.goal_type** (`Literal[roboto.ai.goals.types.GoalType.DATASET_SUMMARY]`): Kind of goal, always [`DATASET_SUMMARY`](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.GoalType.DATASET_SUMMARY).

### DatasetTriageGoalResult

```python
class roboto.ai.goals.results.DatasetTriageGoalResult(/, **data: Any)
```

`from roboto.ai.goals import DatasetTriageGoalResult`

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

Bases: [`TriageGoalResultBase`](/docs/reference/python-sdk/roboto/ai/goals/results#roboto.ai.goals.results.TriageGoalResultBase), [`roboto.ai.goals.achieve_inputs.DatasetTriageAchieveInput`](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.DatasetTriageAchieveInput)

Result of a dataset triage goal: the AI's decision on each label, and the labels it tagged the dataset with.

The goal is a [`DatasetTriageGoal`](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.DatasetTriageGoal).

**Parameters**

- **data** (`Any`)

**Attributes**

- **DatasetTriageGoalResult.goal_type** (`Literal[roboto.ai.goals.types.GoalType.DATASET_TRIAGE]`): Kind of goal, always [`DATASET_TRIAGE`](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.GoalType.DATASET_TRIAGE).

### GoalResult

```python
roboto.ai.goals.results.GoalResult
```

`from roboto.ai.goals import GoalResult`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/goals/results.py#L143-L153)

Result of a goal of any type, as [`result`](/docs/reference/python-sdk/roboto/ai/agent_thread/agent_thread_goal_view#roboto.ai.agent_thread.agent_thread_goal_view.AgentThreadGoalView.result) returns it.

One of `DatasetSummaryGoalResult`, `DatasetTriageGoalResult`, `CreateEventsGoalResult`, `SessionSummaryGoalResult`, `SessionTriageGoalResult` or `SessionCreateEventsGoalResult`, whichever the goal's `goal_type` selects.

### GoalResultBase

```python
class roboto.ai.goals.results.GoalResultBase(/, **data: Any)
```

`from roboto.ai.goals import GoalResultBase`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/goals/results.py#L29-L54)

Bases: `pydantic.BaseModel`

Base of every goal result: the goal's status and the tool use in which the AI submitted the result.

Roboto subclasses it once per goal type, together with the model of the fields the AI submits for that type, such as [`DatasetSummaryAchieveInput`](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.DatasetSummaryAchieveInput). Each subclass is a member of `GoalResult`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **GoalResultBase.achieve_tool_result** (`roboto.ai.core.content.AgentToolResultContent | None`) = `None`: Tool result that answers `achieve_tool_use`, or `None` when the thread's messages hold none.

  A failed goal whose last attempt errored before Roboto recorded its result has a tool use and no tool result.

- **GoalResultBase.achieve_tool_use** (`roboto.ai.core.content.AgentToolUseContent`): Tool use in which the AI submitted the result.

  Its `input` holds the submitted fields as a dictionary; the subclass's own fields, such as `summary`, are built from it.

- **GoalResultBase.status** (`roboto.ai.goals.types.AgentGoalStatus`): Status of the goal when the thread was fetched.

  While it is [`PENDING`](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.AgentGoalStatus.PENDING), the result comes from the AI's latest attempt, and a later attempt can replace it.

### SessionCreateEventsGoalResult

```python
class roboto.ai.goals.results.SessionCreateEventsGoalResult(/, **data: Any)
```

`from roboto.ai.goals import SessionCreateEventsGoalResult`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/goals/results.py#L126-L135)

Bases: [`GoalResultBase`](/docs/reference/python-sdk/roboto/ai/goals/results#roboto.ai.goals.results.GoalResultBase), [`roboto.ai.goals.achieve_inputs.SessionCreateEventsAchieveInput`](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.SessionCreateEventsAchieveInput)

Result of a session events goal: the events the AI submitted for the session, in `events`.

The goal is a [`SessionCreateEventsGoal`](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.SessionCreateEventsGoal). The result does not hold the IDs of the events Roboto created; to find them, list the session's events with [`list_events()`](/docs/reference/python-sdk/roboto/experimental/sessions/session#roboto.experimental.sessions.session.Session.list_events).

**Parameters**

- **data** (`Any`)

**Attributes**

- **SessionCreateEventsGoalResult.goal_type** (`Literal[roboto.ai.goals.types.GoalType.SESSION_CREATE_EVENTS]`): Kind of goal, always [`SESSION_CREATE_EVENTS`](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.GoalType.SESSION_CREATE_EVENTS).

### SessionSummaryGoalResult

```python
class roboto.ai.goals.results.SessionSummaryGoalResult(/, **data: Any)
```

`from roboto.ai.goals import SessionSummaryGoalResult`

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

Bases: [`GoalResultBase`](/docs/reference/python-sdk/roboto/ai/goals/results#roboto.ai.goals.results.GoalResultBase), [`roboto.ai.goals.achieve_inputs.SessionSummaryAchieveInput`](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.SessionSummaryAchieveInput)

Result of a session summary goal: the summary the AI wrote for the session, in `summary`.

The goal is a [`SessionSummaryAgentGoal`](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.SessionSummaryAgentGoal).

**Parameters**

- **data** (`Any`)

**Attributes**

- **SessionSummaryGoalResult.goal_type** (`Literal[roboto.ai.goals.types.GoalType.SESSION_SUMMARY]`): Kind of goal, always [`SESSION_SUMMARY`](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.GoalType.SESSION_SUMMARY).

### SessionTriageGoalResult

```python
class roboto.ai.goals.results.SessionTriageGoalResult(/, **data: Any)
```

`from roboto.ai.goals import SessionTriageGoalResult`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/goals/results.py#L116-L123)

Bases: [`TriageGoalResultBase`](/docs/reference/python-sdk/roboto/ai/goals/results#roboto.ai.goals.results.TriageGoalResultBase), [`roboto.ai.goals.achieve_inputs.SessionTriageAchieveInput`](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.SessionTriageAchieveInput)

Result of a session triage goal: the AI's decision on each label, and the labels it tagged the session with.

The goal is a [`SessionTriageGoal`](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.SessionTriageGoal).

**Parameters**

- **data** (`Any`)

**Attributes**

- **SessionTriageGoalResult.goal_type** (`Literal[roboto.ai.goals.types.GoalType.SESSION_TRIAGE]`): Kind of goal, always [`SESSION_TRIAGE`](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.GoalType.SESSION_TRIAGE).

### TriageGoalResultBase

```python
class roboto.ai.goals.results.TriageGoalResultBase(/, **data: Any)
```

`from roboto.ai.goals.results import TriageGoalResultBase`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/goals/results.py#L67-L81)

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

Base of `DatasetTriageGoalResult` and `SessionTriageGoalResult`: the AI's decision on each label of a goal.

`label_decisions` holds one decision for each label in the goal's vocabulary, and `applied_labels` the labels that apply.

**Parameters**

- **data** (`Any`)

**Properties**

- **TriageGoalResultBase.applied_labels** (`list[str]`): Labels the AI decided apply, in the order of `label_decisions`.

  When the goal is achieved, these are the labels Roboto added as tags to the dataset or session. Tags have no order; `sorted(result.applied_labels)` gives a stable one.
