---
sidebar:
  label: roboto.ai.agent
  order: 0
title: roboto.ai.agent
---
Agents: AI workers an organization defines and runs on its data, each a saved request to start a thread.

Each launch fills the agent's typed `{{name}}` placeholders with its own values and starts a thread, so one agent can be launched repeatedly with different inputs. Use [`Agent`](/docs/reference/python-sdk/roboto/ai/agent#roboto.ai.agent.Agent) to create, find, update, and launch agents.

## Submodules

- [roboto.ai.agent.agent](/docs/reference/python-sdk/roboto/ai/agent/agent)
- [roboto.ai.agent.record](/docs/reference/python-sdk/roboto/ai/agent/record)
- [roboto.ai.agent.resolver](/docs/reference/python-sdk/roboto/ai/agent/resolver)
- [roboto.ai.agent.subject](/docs/reference/python-sdk/roboto/ai/agent/subject)

## Package Contents

- [Agent](/docs/reference/python-sdk/roboto/ai/agent/agent#roboto.ai.agent.agent.Agent) (class): An agent: an AI worker an organization defines and runs on its data.

- [AgentRecord](/docs/reference/python-sdk/roboto/ai/agent/record#roboto.ai.agent.record.AgentRecord) (class): Data record of an agent, as the Roboto API returns it.

- [AgentResolutionError](/docs/reference/python-sdk/roboto/ai/agent/resolver#roboto.ai.agent.resolver.AgentResolutionError) (exception): Base class of the exceptions the SDK raises when the values for a launch of an agent do not match its variables.

- [AgentSubject](/docs/reference/python-sdk/roboto/ai/agent/record#roboto.ai.agent.record.AgentSubject) (class): Subject of an agent: the kind of resource it is launched on.

- [CreateAgentRequest](/docs/reference/python-sdk/roboto/ai/agent/record#roboto.ai.agent.record.CreateAgentRequest) (class): Request body for [`create()`](/docs/reference/python-sdk/roboto/ai/agent/agent#roboto.ai.agent.agent.Agent.create).

- [LaunchAgentRequest](/docs/reference/python-sdk/roboto/ai/agent/record#roboto.ai.agent.record.LaunchAgentRequest) (class): Request body for [`launch()`](/docs/reference/python-sdk/roboto/ai/agent/agent#roboto.ai.agent.agent.Agent.launch).

- [TemplateVariable](/docs/reference/python-sdk/roboto/ai/agent/record#roboto.ai.agent.record.TemplateVariable) (class): Variable of an agent: a named value that each launch fills into the agent's `{{name}}` placeholders.

- [TemplateVariableType](/docs/reference/python-sdk/roboto/ai/agent/record#roboto.ai.agent.record.TemplateVariableType) (class): Type of a template variable's value: how Roboto checks it when the agent is launched.

- [UnknownAgentVariablesError](/docs/reference/python-sdk/roboto/ai/agent/resolver#roboto.ai.agent.resolver.UnknownAgentVariablesError) (exception): A launch of an agent has a value for a name that is not one of the agent's variables.

- [UnresolvedAgentVariablesError](/docs/reference/python-sdk/roboto/ai/agent/resolver#roboto.ai.agent.resolver.UnresolvedAgentVariablesError) (exception): A launch of an agent has no value for a required variable that has no default.

- [UpdateAgentRequest](/docs/reference/python-sdk/roboto/ai/agent/record#roboto.ai.agent.record.UpdateAgentRequest) (class): Request body for [`update()`](/docs/reference/python-sdk/roboto/ai/agent/agent#roboto.ai.agent.agent.Agent.update).

- [extract_placeholders()](/docs/reference/python-sdk/roboto/ai/agent/record#roboto.ai.agent.record.extract_placeholders) (function): Return the name of every `{{name}}` placeholder in the string values of `body`.

- [infer_agent_subject()](/docs/reference/python-sdk/roboto/ai/agent/subject#roboto.ai.agent.subject.infer_agent_subject) (function): Return the kind of resource an agent is launched on, worked out from its goals and variables.

- [resolve_agent()](/docs/reference/python-sdk/roboto/ai/agent/resolver#roboto.ai.agent.resolver.resolve_agent) (function): Build the request that starts a thread for one launch of an agent, with `values` in its placeholders.
