---
sidebar:
  hidden: true
title: roboto.ai
---
Conversations with Roboto's AI, and the summaries the AI writes of datasets and sessions.

To converse with the AI, use [`AgentThread`](/docs/reference/python-sdk/roboto/ai/agent_thread#roboto.ai.agent_thread.AgentThread) to start a thread, a persistent, multi-turn conversation, and to send it messages and follow its replies as the AI writes them; to have the AI summarize a dataset, use [`generate_summary()`](/docs/reference/python-sdk/roboto/domain/datasets#roboto.domain.datasets.Dataset.generate_summary) or [`get_summary()`](/docs/reference/python-sdk/roboto/domain/datasets#roboto.domain.datasets.Dataset.get_summary). Decorate a function with [`client_tool()`](/docs/reference/python-sdk/roboto/ai/agent_thread#roboto.ai.agent_thread.client_tool) to let the AI call it in your Python process during a thread. The summary methods return a [`StreamingAISummary`](/docs/reference/python-sdk/roboto/ai/summary#roboto.ai.summary.StreamingAISummary), which gives the summary as [`AISummary`](/docs/reference/python-sdk/roboto/ai#roboto.ai.AISummary) snapshots or as text streamed while the AI writes it.

## Submodules

- [roboto.ai.agent](/docs/reference/python-sdk/roboto/ai/agent)
- [roboto.ai.agent_thread](/docs/reference/python-sdk/roboto/ai/agent_thread)
- [roboto.ai.core](/docs/reference/python-sdk/roboto/ai/core)
- [roboto.ai.goals](/docs/reference/python-sdk/roboto/ai/goals)
- [roboto.ai.mcp](/docs/reference/python-sdk/roboto/ai/mcp)
- [roboto.ai.record](/docs/reference/python-sdk/roboto/ai/record)
- [roboto.ai.summary](/docs/reference/python-sdk/roboto/ai/summary)

## Package Contents

- [AISummary](/docs/reference/python-sdk/roboto/ai/summary#roboto.ai.summary.AISummary) (class): Data record of an AI summary of a dataset or a session, as the Roboto API returns it.

- [AgentThread](/docs/reference/python-sdk/roboto/ai/agent_thread/agent_thread#roboto.ai.agent_thread.agent_thread.AgentThread) (class): A thread: a persistent, multi-turn conversation with Roboto's AI.

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

- [ClientTool](/docs/reference/python-sdk/roboto/ai/agent_thread/client_tool#roboto.ai.agent_thread.client_tool.ClientTool) (class): A client tool together with the Python function that runs it when Roboto's AI requests the tool.

- [ClientToolResult](/docs/reference/python-sdk/roboto/ai/agent_thread/record#roboto.ai.agent_thread.record.ClientToolResult) (class): Result of one client-side tool call: a tool your code ran when the AI called it.

- [ClientToolResultStatus](/docs/reference/python-sdk/roboto/ai/agent_thread/record#roboto.ai.agent_thread.record.ClientToolResultStatus) (class): Outcome of a client-side tool call: whether the tool ran, failed, or was not run.

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

- [PromptRequest](/docs/reference/python-sdk/roboto/ai/record#roboto.ai.record.PromptRequest) (class): Request body for `POST /v1/query/convert/nlp-to-roboql`.

- [SetSummaryRequest](/docs/reference/python-sdk/roboto/ai/record#roboto.ai.record.SetSummaryRequest) (class): Request body that replaces the AI summary of a dataset or a session.

- [client_tool()](/docs/reference/python-sdk/roboto/ai/agent_thread/client_tool#roboto.ai.agent_thread.client_tool.client_tool) (function): Build a `ClientTool` from a function, as a decorator or a direct call.
