---
sidebar:
  hidden: true
title: roboto.ai.agent_thread.record
---
## Module Contents

- [AGENT_CONTENT_MODEL_BY_TYPE](/docs/reference/python-sdk/roboto/ai/core/content#roboto.ai.core.content.AGENT_CONTENT_MODEL_BY_TYPE) (data): `AGENT_CONTENT_MODEL_BY_TYPE: dict[AgentContentType, type[AgentContent]]`. Model of each kind of content block other than text, keyed by its `content_type`.

- [AgentArtifactRecord](/docs/reference/python-sdk/roboto/ai/core/content#roboto.ai.core.content.AgentArtifactRecord) (class): File a tool produced while it ran.

- [AgentClientContextEntry](/docs/reference/python-sdk/roboto/ai/core/content#roboto.ai.core.content.AgentClientContextEntry) (class): What the caller had open when they sent a message, carried as a block on that message.

- [AgentCompressionFillerContent](/docs/reference/python-sdk/roboto/ai/core/content#roboto.ai.core.content.AgentCompressionFillerContent) (class): Stand-in for the content of a message Roboto emptied in the copy of a thread it sends to the AI model.

- [AgentContent](/docs/reference/python-sdk/roboto/ai/core/content#roboto.ai.core.content.AgentContent) (type alias): `type AgentContent = AgentTextContent | AgentToolUseContent | AgentToolResultContent | AgentErrorContent | AgentDeletedContent | AgentCompressionFillerContent | AgentClientContextEntry`. Content block of any kind: one of the content block models.

- [AgentContentType](/docs/reference/python-sdk/roboto/ai/core/content#roboto.ai.core.content.AgentContentType) (class): Kind of a content block in a message.

- [AgentDeletedContent](/docs/reference/python-sdk/roboto/ai/core/content#roboto.ai.core.content.AgentDeletedContent) (class): Placeholder for a content block Roboto removed from the shortened copy of a thread it sends to the AI model.

- [AgentErrorContent](/docs/reference/python-sdk/roboto/ai/core/content#roboto.ai.core.content.AgentErrorContent) (class): Error block of a message: why Roboto's AI failed to generate the message, or that it was cancelled.

- [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.

- [AgentMessage](/docs/reference/python-sdk/roboto/ai/core/record#roboto.ai.core.record.AgentMessage) (class): Message in a thread from one sender, made of content blocks such as text, tool uses, and tool results.

- [AgentMessageStatus](/docs/reference/python-sdk/roboto/ai/core/record#roboto.ai.core.record.AgentMessageStatus) (class): Status of a message's generation.

- [AgentRole](/docs/reference/python-sdk/roboto/ai/core/record#roboto.ai.core.record.AgentRole) (class): Role of a message's sender in a thread.

- [AgentSubtask](/docs/reference/python-sdk/roboto/ai/core/task#roboto.ai.core.task.AgentSubtask) (class): Sub-task of a task: one step of its work, tracked as a checklist item.

- [AgentSubtaskStatus](/docs/reference/python-sdk/roboto/ai/core/task#roboto.ai.core.task.AgentSubtaskStatus) (class): Status of a sub-task: whether Roboto's AI has done it.

- [AgentTask](/docs/reference/python-sdk/roboto/ai/core/task#roboto.ai.core.task.AgentTask) (class): Task in a thread's task list: a unit of work Roboto's AI plans, such as a question to answer or a deliverable.

- [AgentTaskBoundary](/docs/reference/python-sdk/roboto/ai/core/task#roboto.ai.core.task.AgentTaskBoundary) (class): Position in a thread of the tool use with which Roboto's AI started or completed a task.

- [AgentTaskMinimal](/docs/reference/python-sdk/roboto/ai/core/task#roboto.ai.core.task.AgentTaskMinimal) (class): ID and resulting status of a task that one of Roboto's AI task tools changed.

- [AgentTaskStatus](/docs/reference/python-sdk/roboto/ai/core/task#roboto.ai.core.task.AgentTaskStatus) (class): Status of a task in a thread's task list: whether Roboto's AI has started or completed it.

- [AgentTextContent](/docs/reference/python-sdk/roboto/ai/core/content#roboto.ai.core.content.AgentTextContent) (class): Text block of a message, from the caller or from Roboto's AI.

- [AgentThreadDelta](/docs/reference/python-sdk/roboto/ai/core/record#roboto.ai.core.record.AgentThreadDelta) (class): Response body of `GET /v1/ai/threads/{thread_id}/delta`: a thread's changes since a continuation token.

- [AgentThreadGoalRecord](/docs/reference/python-sdk/roboto/ai/core/record#roboto.ai.core.record.AgentThreadGoalRecord) (class): Data record of a goal declared on a turn of a thread, as the Roboto API returns it.

- [AgentThreadRecord](/docs/reference/python-sdk/roboto/ai/core/record#roboto.ai.core.record.AgentThreadRecord) (class): Data record of a thread, as the Roboto API returns it.

- [AgentThreadStatus](/docs/reference/python-sdk/roboto/ai/core/record#roboto.ai.core.record.AgentThreadStatus) (class): Status of a thread: whose turn it is, or why the thread stopped.

- [AgentToolResultContent](/docs/reference/python-sdk/roboto/ai/core/content#roboto.ai.core.content.AgentToolResultContent) (class): Tool result block of a message: what a tool returned when it ran for a tool use.

- [AgentToolUseContent](/docs/reference/python-sdk/roboto/ai/core/content#roboto.ai.core.content.AgentToolUseContent) (class): Tool use block of a message: a request from Roboto's AI to run a tool.

- [ClientToolSpec](/docs/reference/python-sdk/roboto/ai/core/record#roboto.ai.core.record.ClientToolSpec) (class): Specification of a client tool: a tool Roboto's AI can ask the caller to run, whose result the caller submits.

- [ThreadOrigin](/docs/reference/python-sdk/roboto/ai/core/record#roboto.ai.core.record.ThreadOrigin) (class): Origin of a thread: the surface it was started from, which owns it.

- [ThreadVisibility](/docs/reference/python-sdk/roboto/ai/core/record#roboto.ai.core.record.ThreadVisibility) (class): Visibility of a thread: who can read it.

### AgentThreadSubject

```python
class roboto.ai.agent_thread.record.AgentThreadSubject(/, **data: Any)
```

`from roboto.ai.agent_thread import AgentThreadSubject`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/agent_thread/record.py#L430-L444)

Bases: `pydantic.BaseModel`

Resource an agent thread is about, such as a dataset, file or session, recorded so the thread can be found.

Roboto records one for each resource a turn's goal targets, and for each one the caller has open in `client_context` when starting the thread or sending a message. `POST /v1/ai/threads/search` finds the threads about a resource by its `subject_id`. No SDK method or Roboto route sends or returns this model.

**Parameters**

- **data** (`Any`)

**Attributes**

- **AgentThreadSubject.association_id** (`str`): ID of the resource the thread is about, such as a dataset ID.
- **AgentThreadSubject.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- **AgentThreadSubject.note** (`str`): Short, free-form note on why the thread is about the resource.

### AgentToolArtifactResponse

```python
class roboto.ai.agent_thread.record.AgentToolArtifactResponse(/, **data: Any)
```

`from roboto.ai.agent_thread import AgentToolArtifactResponse`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/agent_thread/record.py#L73-L96)

Bases: `pydantic.BaseModel`

Response body of `GET /v1/ai/threads/{thread_id}/tool-use/{tool_use_id}/artifacts/{name}`.

Holds a download URL for one file a tool produced in a thread, which [`AgentArtifactRecord`](/docs/reference/python-sdk/roboto/ai/core/content#roboto.ai.core.content.AgentArtifactRecord) describes without a URL. Roboto returns it only to a caller who can read the thread. The URL expires after 5 minutes, so request it when you need the file rather than storing it.

**Parameters**

- **data** (`Any`)

**Attributes**

- **AgentToolArtifactResponse.bytes** (`int`): Size of the file, in bytes.

- **AgentToolArtifactResponse.content_type** (`str`): Media type the URL serves the file as.

  An image a browser displays keeps its own type (`image/png`, `image/jpeg`, `image/gif` or `image/webp`); any other file is served as `application/octet-stream`, which a browser downloads.

- **AgentToolArtifactResponse.name** (`str`): Name of the file, as [`name`](/docs/reference/python-sdk/roboto/ai/core/content#roboto.ai.core.content.AgentArtifactRecord.name) gives it.

- **AgentToolArtifactResponse.url** (`str`): URL to download the file from, valid for 5 minutes.

### AgentToolDetailResponse

```python
class roboto.ai.agent_thread.record.AgentToolDetailResponse(/, **data: Any)
```

`from roboto.ai.agent_thread import AgentToolDetailResponse`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/agent_thread/record.py#L59-L70)

Bases: `pydantic.BaseModel`

Response body of `GET /v1/ai/threads/{thread_id}/tool-use/{tool_use_id}`.

Holds one tool use in a thread and its result. Unlike a read of the whole thread, it keeps the tool use's `raw_request` and the result's `raw_response`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **AgentToolDetailResponse.tool_result** (`roboto.ai.core.record.AgentToolResultContent`): Result of the tool use.
- **AgentToolDetailResponse.tool_use** (`roboto.ai.core.record.AgentToolUseContent`): Request the AI made to run the tool.

### AvailableSkillSpec

```python
class roboto.ai.agent_thread.record.AvailableSkillSpec(/, **data: Any)
```

`from roboto.ai.agent_thread import AvailableSkillSpec`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/agent_thread/record.py#L120-L139)

Bases: `pydantic.BaseModel`

Skill the AI may apply on its own during one thread, at a fixed version.

Carried in `StartAgentThreadRequest.available_skills`. Unlike `InvokeSkillSpec`, it does not apply the skill; the AI decides whether to.

**Parameters**

- **data** (`Any`)

**Attributes**

- **AvailableSkillSpec.skill_id** (`str`): ID of the skill.

  Any skill the caller can see is allowed, whether or not the caller subscribes to it. Roboto rejects a skill the caller cannot see with `RobotoNotFoundException`.

- **AvailableSkillSpec.version** (`int | None`) = `None`: Number of the skill version the AI may apply in the thread.

  `None` uses the skill's latest version when the thread starts. The caller's pinned version, if any, does not apply.

### ClientToolResult

```python
class roboto.ai.agent_thread.record.ClientToolResult(/, **data: Any)
```

`from roboto.ai import ClientToolResult`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/agent_thread/record.py#L370-L393)

Bases: `pydantic.BaseModel`

Result of one client-side tool call: a tool your code ran when the AI called it.

Carried in `SubmitToolResultsRequest.tool_results`. [`run()`](/docs/reference/python-sdk/roboto/ai/agent_thread/agent_thread#roboto.ai.agent_thread.agent_thread.AgentThread.run) builds and submits one for each call to a tool registered with a callback.

**Parameters**

- **data** (`Any`)

**Attributes**

- **ClientToolResult.output** (`dict[str, Any] | None`) = `None`: Output of the tool as a JSON-compatible dictionary, or `None` if it has none.

- **ClientToolResult.runtime_ms** (`int`): Time the tool took to run, in milliseconds.

- **ClientToolResult.status** (`ClientToolResultStatus`): Outcome of the call.

- **ClientToolResult.tool_name** (`str`): Name of the tool that was called.

- **ClientToolResult.tool_use_id** (`str`): ID of the tool use this result answers.

  It is the [`tool_use_id`](/docs/reference/python-sdk/roboto/ai/core/content#roboto.ai.core.content.AgentToolUseContent.tool_use_id) of the AI's call.

### ClientToolResultStatus

```python
class roboto.ai.agent_thread.record.ClientToolResultStatus
```

`from roboto.ai import ClientToolResultStatus`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/agent_thread/record.py#L357-L367)

Bases: `roboto.compat.StrEnum`

Outcome of a client-side tool call: whether the tool ran, failed, or was not run.

**Attributes**

- **ClientToolResultStatus.DECLINED** = `'declined'`: The client did not run the tool.
- **ClientToolResultStatus.ERROR** = `'error'`: The tool failed, or the client had no tool by that name to run.
- **ClientToolResultStatus.SUCCESS** = `'success'`: The tool ran and returned its output.

### ForkAgentThreadRequest

```python
class roboto.ai.agent_thread.record.ForkAgentThreadRequest(/, **data: Any)
```

`from roboto.ai.agent_thread import ForkAgentThreadRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/agent_thread/record.py#L409-L413)

Bases: `pydantic.BaseModel`

Request body for [`fork()`](/docs/reference/python-sdk/roboto/ai/agent_thread/agent_thread#roboto.ai.agent_thread.agent_thread.AgentThread.fork).

**Parameters**

- **data** (`Any`)

**Attributes**

- **ForkAgentThreadRequest.message_sequence_num** (`int`): Sequence number of the last message to copy into the new thread; every earlier message is copied too.

### InvokeSkillSpec

```python
class roboto.ai.agent_thread.record.InvokeSkillSpec(/, **data: Any)
```

`from roboto.ai.agent_thread import InvokeSkillSpec`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/agent_thread/record.py#L99-L117)

Bases: `pydantic.BaseModel`

Skill the caller chooses to apply in a turn, rather than leaving the choice to the AI.

Carried in `SendMessageRequest.invoke_skills` and `StartAgentThreadRequest.invoke_skills`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **InvokeSkillSpec.skill_id** (`str`): ID of the skill to apply.

  The caller must be the skill's author or subscribed to it; otherwise Roboto rejects the request with `RobotoUnauthorizedException`.

- **InvokeSkillSpec.version** (`int | None`) = `None`: Number of the skill version to apply.

  `None` applies the skill's latest version, even when the caller pinned another with [`set_ai_version()`](/docs/reference/python-sdk/roboto/domain/skills/skill#roboto.domain.skills.skill.Skill.set_ai_version).

### PinThreadRequest

```python
class roboto.ai.agent_thread.record.PinThreadRequest(/, **data: Any)
```

`from roboto.ai.agent_thread import PinThreadRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/agent_thread/record.py#L423-L427)

Bases: `pydantic.BaseModel`

Request body for [`set_pinned()`](/docs/reference/python-sdk/roboto/ai/agent_thread/agent_thread#roboto.ai.agent_thread.agent_thread.AgentThread.set_pinned).

**Parameters**

- **data** (`Any`)

**Attributes**

- **PinThreadRequest.pinned** (`bool`): Whether the thread is pinned for the caller after the change.

### SendMessageRequest

```python
class roboto.ai.agent_thread.record.SendMessageRequest(/, **data: Any)
```

`from roboto.ai.agent_thread import SendMessageRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/agent_thread/record.py#L142-L221)

Bases: `pydantic.BaseModel`

Request body for [`send()`](/docs/reference/python-sdk/roboto/ai/agent_thread/agent_thread#roboto.ai.agent_thread.agent_thread.AgentThread.send).

The request needs at least one of `message`, `goals` and `invoke_skills`. Building it raises `pydantic.ValidationError` when:

- `message`, `goals` and `invoke_skills` are all empty.
- `message` is not a user message made only of text.
- `goals` holds more than `MAX_GOALS_PER_TURN` goals.

**Parameters**

- **data** (`Any`)

**Attributes**

- **SendMessageRequest.analysis_scope** (`roboto.ai.core.AnalysisScope | None`) = `None`: Analysis scope that replaces the thread's own, from this turn on.

  Roboto passes the scope to each tool the AI calls, and each tool decides whether to apply it. `None` leaves the thread's scope unchanged; no value of this field clears it.

- **SendMessageRequest.client_context** (`roboto.ai.core.ClientViewingContext | None`) = `None`: What the caller had open in their client when they wrote the message, such as datasets or files.

  Lets the AI resolve references like "this dataset". `None` sends none. Also accepted under the key `context`.

- **SendMessageRequest.client_tools** (`list[roboto.ai.core.record.ClientToolSpec] | None`) = `None`: Client-side tools the AI may call from this turn on: tools your code runs when the AI calls them.

  A non-empty list replaces the thread's client-side tools; `None` or an empty list leaves them unchanged.

- **SendMessageRequest.goals** (`list[roboto.ai.goals.AgentGoal] | None`) = `None`: Goals the AI must meet in this turn, at most `MAX_GOALS_PER_TURN`.

  Roboto prompts the AI again until it meets every goal or runs out of retries, which leaves the thread in [`GOALS_FAILED`](/docs/reference/python-sdk/roboto/ai/core/record#roboto.ai.core.record.AgentThreadStatus.GOALS_FAILED). `None` declares none.

- **SendMessageRequest.invoke_skills** (`list[InvokeSkillSpec]`) = `None`: Skills to apply in this turn, in order.

  Roboto adds each skill's procedure to the transcript after `message`, as a call to the AI's skill-loading tool and its result. Defaults to none.

- **SendMessageRequest.message** (`roboto.ai.core.record.AgentMessage | None`) = `None`: User message that starts the turn, containing only text.

  `None` is allowed when `goals` or `invoke_skills` is set. With goals, Roboto writes a short user message that asks the AI to meet them; with only skills, the skills start the turn.

### StartAgentThreadRequest

```python
class roboto.ai.agent_thread.record.StartAgentThreadRequest(/, **data: Any)
```

`from roboto.ai.agent_thread import StartAgentThreadRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/agent_thread/record.py#L224-L354)

Bases: `pydantic.BaseModel`

Request body for [`start()`](/docs/reference/python-sdk/roboto/ai/agent_thread/agent_thread#roboto.ai.agent_thread.agent_thread.AgentThread.start).

An agent also starts each of its threads from one, its [`request_template`](/docs/reference/python-sdk/roboto/ai/agent/agent#roboto.ai.agent.agent.Agent.request_template). The request needs at least one of `messages`, `goals` and `invoke_skills`. Building it raises `pydantic.ValidationError` when:

- `messages`, `goals` and `invoke_skills` are all empty.
- `goals` and `messages` are set, `invoke_skills` is empty, and no message contains text.
- `goals` holds more than `MAX_GOALS_PER_TURN` goals.
- `available_skills` holds more than `MAX_AVAILABLE_SKILLS` entries, or lists one skill twice.

**Parameters**

- **data** (`Any`)

**Attributes**

- **StartAgentThreadRequest.analysis_scope** (`roboto.ai.core.AnalysisScope | None`) = `None`: Analysis scope for the thread.

  Roboto passes the scope to each tool the AI calls, and each tool decides whether to apply it. `None` sets no scope.

- **StartAgentThreadRequest.available_skills** (`list[AvailableSkillSpec] | None`) = `None`: Skills the AI may apply on its own during the thread, in place of the ones the caller subscribes to.

  - `None`, the default, lets the AI apply the skills the caller subscribes to, at the versions the caller pinned with [`set_ai_version()`](/docs/reference/python-sdk/roboto/domain/skills/skill#roboto.domain.skills.skill.Skill.set_ai_version).
  - An empty list lets the AI apply no skill on its own.
  - A non-empty list lets the AI apply exactly these skills, at these versions, whatever the caller subscribes to.

  Roboto resolves the list once, when the thread starts, so later changes to subscriptions or skills do not change it. It holds at most `MAX_AVAILABLE_SKILLS` entries, one per skill. Unlike `invoke_skills`, it applies no skill and starts no turn, so a request that sets it still needs `messages`, `goals` or `invoke_skills`.

- **StartAgentThreadRequest.client_context** (`roboto.ai.core.ClientViewingContext | None`) = `None`: What the caller had open in their client when they started the thread, such as datasets or files.

  Lets the AI resolve references like "this dataset". `None` sends none. Also accepted under the key `context`.

- **StartAgentThreadRequest.client_tools** (`list[roboto.ai.core.record.ClientToolSpec] | None`) = `None`: Client-side tools the AI may call in the thread: tools your code runs when the AI calls them.

  `None` offers none.

- **StartAgentThreadRequest.goals** (`list[roboto.ai.goals.AgentGoal] | None`) = `None`: Goals the AI must meet in the first turn, at most `MAX_GOALS_PER_TURN`.

  Roboto prompts the AI again until it meets every goal or runs out of retries, which leaves the thread in [`GOALS_FAILED`](/docs/reference/python-sdk/roboto/ai/core/record#roboto.ai.core.record.AgentThreadStatus.GOALS_FAILED). `None` declares none.

- **StartAgentThreadRequest.invoke_skills** (`list[InvokeSkillSpec]`) = `None`: Skills to apply in the first turn, in order.

  Roboto adds each skill's procedure to the transcript after `messages`, as a call to the AI's skill-loading tool and its result. Defaults to none.

- **StartAgentThreadRequest.messages** (`list[roboto.ai.core.record.AgentMessage]`) = `None`: Messages to start the thread with.

  May be empty when `goals` or `invoke_skills` is set. When no user message contains text, Roboto puts a short user message first that asks the AI to meet the goals or apply the skills.

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

- **StartAgentThreadRequest.model_profile** (`str | None`) = `None`: ID of the model profile to run the thread with, such as `"standard"` or `"advanced"`.

  `None` uses Roboto's default profile.

- **StartAgentThreadRequest.system_prompt** (`str | None`) = `None`: Instructions Roboto adds to the AI's system prompt for the thread. `None` adds none.

- **StartAgentThreadRequest.visibility** (`roboto.ai.core.record.ThreadVisibility`): Who can read the thread once it is created.

  The default, [`PRIVATE`](/docs/reference/python-sdk/roboto/ai/core/record#roboto.ai.core.record.ThreadVisibility.PRIVATE), limits reads to the thread's creator and Roboto administrators. `ORG` lets every member of the thread's organization read the thread and find it with `POST /v1/ai/threads/search`. [`launch()`](/docs/reference/python-sdk/roboto/ai/agent/agent#roboto.ai.agent.agent.Agent.launch) sets this field itself, to `ORG` unless its caller passes another value.

### SubmitToolResultsRequest

```python
class roboto.ai.agent_thread.record.SubmitToolResultsRequest(/, **data: Any)
```

`from roboto.ai.agent_thread import SubmitToolResultsRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/agent_thread/record.py#L396-L406)

Bases: `pydantic.BaseModel`

Request body for [`submit_client_tool_results()`](/docs/reference/python-sdk/roboto/ai/agent_thread/agent_thread#roboto.ai.agent_thread.agent_thread.AgentThread.submit_client_tool_results).

**Parameters**

- **data** (`Any`)

**Attributes**

- **SubmitToolResultsRequest.client_tools** (`list[roboto.ai.core.record.ClientToolSpec] | None`) = `None`: Client-side tools the AI may call from the next turn on, replacing the thread's current ones.

  `None` leaves them unchanged, and an empty list removes them.

- **SubmitToolResultsRequest.tool_results** (`list[ClientToolResult]`): Results of the client-side tool calls the AI is waiting on.

### UpdateThreadVisibilityRequest

```python
class roboto.ai.agent_thread.record.UpdateThreadVisibilityRequest(/, **data: Any)
```

`from roboto.ai.agent_thread import UpdateThreadVisibilityRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/ai/agent_thread/record.py#L416-L420)

Bases: `pydantic.BaseModel`

Request body for [`set_visibility()`](/docs/reference/python-sdk/roboto/ai/agent_thread/agent_thread#roboto.ai.agent_thread.agent_thread.AgentThread.set_visibility).

**Parameters**

- **data** (`Any`)

**Attributes**

- **UpdateThreadVisibilityRequest.visibility** (`roboto.ai.core.record.ThreadVisibility`): Who can read the thread after the change.
