# AgentChatProps

<!-- https://uncage.vercel.app/docs/api/react-ui/interfaces/agentchatprops/ -->

Defined in: react-ui/src/components/AgentChat.tsx:29

## Properties

| Property | Type | Description | Defined in |
| ------ | ------ | ------ | ------ |
| <a id="property-classname"></a> `className?` | `string` | - | react-ui/src/components/AgentChat.tsx:50 |
| <a id="property-components"></a> `components?` | `Partial`\<[`ChatComponents`](https://uncage.vercel.app/docs/api/react-ui/interfaces/chatcomponents.md)\> | Replace any of the default building blocks. | react-ui/src/components/AgentChat.tsx:49 |
| <a id="property-defaultruntime"></a> `defaultRuntime?` | `string` | Runtime id preselected for new sessions (default: first available). | react-ui/src/components/AgentChat.tsx:37 |
| <a id="property-locale"></a> `locale?` | [`Locale`](https://uncage.vercel.app/docs/api/react-ui/type-aliases/locale.md) | UI language (default `'en'`). | react-ui/src/components/AgentChat.tsx:31 |
| <a id="property-persistsession"></a> `persistSession?` | `PersistSessionMode` | Where the open session is remembered so a reload reopens it (default `'url'`: `?session=<id>`, kept in sync with `history.replaceState`). `'localStorage'` keeps the URL clean; `false` turns it off (e.g. when the host app routes sessions itself). | react-ui/src/components/AgentChat.tsx:47 |
| <a id="property-showtools"></a> `showTools?` | `boolean` | Show tool steps between messages (default `true`). | react-ui/src/components/AgentChat.tsx:41 |
| <a id="property-sidebar"></a> `sidebar?` | `boolean` | Show the session sidebar (default `true`). | react-ui/src/components/AgentChat.tsx:35 |
| <a id="property-starterprompts"></a> `starterPrompts?` | `string`[] | Prompts offered on the empty state. | react-ui/src/components/AgentChat.tsx:39 |
| <a id="property-theme"></a> `theme?` | `"auto"` \| `"light"` \| `"dark"` | Sets `data-theme` on the root (default `'auto'`: follows the OS). | react-ui/src/components/AgentChat.tsx:33 |
