---
sidebar:
  label: roboto.ai.goals
  order: 3
title: roboto.ai.goals
---
Goals: structured outcomes attached to a turn of a thread, which Roboto's AI must achieve before the turn completes.

Pass goals such as [`DatasetTriageGoal`](/docs/reference/python-sdk/roboto/ai/goals#roboto.ai.goals.DatasetTriageGoal) or [`CreateEventsGoal`](/docs/reference/python-sdk/roboto/ai/goals#roboto.ai.goals.CreateEventsGoal) to [`start()`](/docs/reference/python-sdk/roboto/ai/agent_thread#roboto.ai.agent_thread.AgentThread.start) or [`send()`](/docs/reference/python-sdk/roboto/ai/agent_thread#roboto.ai.agent_thread.AgentThread.send) to have the AI summarize a dataset or session, tag it with the labels that fit, or create events on it. Each goal in [`goals`](/docs/reference/python-sdk/roboto/ai/agent_thread#roboto.ai.agent_thread.AgentThread.goals) gives its status and its [`GoalResult`](/docs/reference/python-sdk/roboto/ai/goals#roboto.ai.goals.GoalResult), such as the AI's decision on each label or the events it created. When the AI cannot achieve every goal of a turn, [`run()`](/docs/reference/python-sdk/roboto/ai/agent_thread#roboto.ai.agent_thread.AgentThread.run) raises [`RobotoAgentGoalsFailedException`](/docs/reference/python-sdk/roboto/ai/agent_thread#roboto.ai.agent_thread.RobotoAgentGoalsFailedException).

## Submodules

- [roboto.ai.goals.achieve_inputs](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs)
- [roboto.ai.goals.results](/docs/reference/python-sdk/roboto/ai/goals/results)
- [roboto.ai.goals.types](/docs/reference/python-sdk/roboto/ai/goals/types)

## Package Contents

- [AgentGoal](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.AgentGoal) (data): Goal of any kind: an instance of one of the six goal classes.

- [AgentGoalStatus](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.AgentGoalStatus) (class): Status of a goal: whether Roboto's AI has achieved it.

- [CreateEventsAchieveInput](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.CreateEventsAchieveInput) (class): 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.

- [CreateEventsGoal](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.CreateEventsGoal) (class): Goal that has Roboto's AI investigate a dataset and create events on it, of kinds the caller supplies.

- [CreateEventsGoalResult](/docs/reference/python-sdk/roboto/ai/goals/results#roboto.ai.goals.results.CreateEventsGoalResult) (class): Result of a dataset events goal: the events the AI submitted for the dataset, in `events`.

- [DatasetSummaryAchieveInput](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.DatasetSummaryAchieveInput) (class): 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.

- [DatasetSummaryAgentGoal](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.DatasetSummaryAgentGoal) (class): Goal that has Roboto's AI summarize a dataset.

- [DatasetSummaryGoalResult](/docs/reference/python-sdk/roboto/ai/goals/results#roboto.ai.goals.results.DatasetSummaryGoalResult) (class): Result of a dataset summary goal: the summary the AI wrote for the dataset, in `summary`.

- [DatasetTriageAchieveInput](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.DatasetTriageAchieveInput) (class): 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.

- [DatasetTriageGoal](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.DatasetTriageGoal) (class): Goal that has Roboto's AI tag a dataset with the labels from a vocabulary that apply to it.

- [DatasetTriageGoalResult](/docs/reference/python-sdk/roboto/ai/goals/results#roboto.ai.goals.results.DatasetTriageGoalResult) (class): Result of a dataset triage goal: the AI's decision on each label, and the labels it tagged the dataset with.

- [EventSpec](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.EventSpec) (class): 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.

- [EventSpecBase](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.EventSpecBase) (class): Fields shared by the events Roboto's AI proposes for a goal that creates events, on a dataset or a session.

- [GoalResult](/docs/reference/python-sdk/roboto/ai/goals/results#roboto.ai.goals.results.GoalResult) (data): 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.

- [GoalResultBase](/docs/reference/python-sdk/roboto/ai/goals/results#roboto.ai.goals.results.GoalResultBase) (class): Base of every goal result: the goal's status and the tool use in which the AI submitted the result.

- [GoalType](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.GoalType) (class): Kind of goal: what Roboto's AI must produce.

- [LabelDecision](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.LabelDecision) (class): Decision of Roboto's AI on whether one label of a triage goal's vocabulary applies.

- [SessionCreateEventsAchieveInput](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.SessionCreateEventsAchieveInput) (class): 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.

- [SessionCreateEventsGoal](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.SessionCreateEventsGoal) (class): Goal that has Roboto's AI investigate a session and create session events on it, of kinds the caller supplies.

- [SessionCreateEventsGoalResult](/docs/reference/python-sdk/roboto/ai/goals/results#roboto.ai.goals.results.SessionCreateEventsGoalResult) (class): Result of a session events goal: the events the AI submitted for the session, in `events`.

- [SessionEventSpec](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.SessionEventSpec) (class): 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.

- [SessionSummaryAchieveInput](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.SessionSummaryAchieveInput) (class): 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.

- [SessionSummaryAgentGoal](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.SessionSummaryAgentGoal) (class): Goal that has Roboto's AI summarize a session.

- [SessionSummaryGoalResult](/docs/reference/python-sdk/roboto/ai/goals/results#roboto.ai.goals.results.SessionSummaryGoalResult) (class): Result of a session summary goal: the summary the AI wrote for the session, in `summary`.

- [SessionTriageAchieveInput](/docs/reference/python-sdk/roboto/ai/goals/achieve_inputs#roboto.ai.goals.achieve_inputs.SessionTriageAchieveInput) (class): 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.

- [SessionTriageGoal](/docs/reference/python-sdk/roboto/ai/goals/types#roboto.ai.goals.types.SessionTriageGoal) (class): Goal that has Roboto's AI tag a session with the labels from a vocabulary that apply to it.

- [SessionTriageGoalResult](/docs/reference/python-sdk/roboto/ai/goals/results#roboto.ai.goals.results.SessionTriageGoalResult) (class): Result of a session triage goal: the AI's decision on each label, and the labels it tagged the session with.
