Skip to content

AgentChatProps

View as Markdown

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

Property Type Description Defined in
className? string - react-ui/src/components/AgentChat.tsx:50
components? Partial<ChatComponents> Replace any of the default building blocks. react-ui/src/components/AgentChat.tsx:49
defaultRuntime? string Runtime id preselected for new sessions (default: first available). react-ui/src/components/AgentChat.tsx:37
locale? Locale UI language (default 'en'). react-ui/src/components/AgentChat.tsx:31
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
showTools? boolean Show tool steps between messages (default true). react-ui/src/components/AgentChat.tsx:41
sidebar? boolean Show the session sidebar (default true). react-ui/src/components/AgentChat.tsx:35
starterPrompts? string[] Prompts offered on the empty state. react-ui/src/components/AgentChat.tsx:39
theme? "auto" | "light" | "dark" Sets data-theme on the root (default 'auto': follows the OS). react-ui/src/components/AgentChat.tsx:33