ChatProps
Agent Runtimes / chat/Chat / ChatProps
Interface: ChatProps
Defined in: chat/Chat.tsx:122
Chat props
Properties
agentId?
optionalagentId?:string
Defined in: chat/Chat.tsx:136
Agent ID
authToken?
optionalauthToken?:string
Defined in: chat/Chat.tsx:139
Authentication token (JWT) to send as Authorization Bearer header
autoConnect?
optionalautoConnect?:boolean
Defined in: chat/Chat.tsx:151
Whether to auto-connect on mount
autoFocus?
optionalautoFocus?:boolean
Defined in: chat/Chat.tsx:242
Auto-focus the input on mount
availableModels?
optionalavailableModels?:ModelConfig[]
Defined in: chat/Chat.tsx:215
Override the list of available models. When provided, this list replaces the models returned by the config endpoint. Use this to restrict the model selector to a specific subset of models.
baseUrl?
optionalbaseUrl?:string
Defined in: chat/Chat.tsx:130
Base URL of the server (for HTTP-based protocols)
brandIcon?
optionalbrandIcon?:ReactNode
Defined in: chat/Chat.tsx:148
Brand icon shown in chat header/empty state and details title
chatViewMode?
optionalchatViewMode?:ChatViewMode
Defined in: chat/Chat.tsx:300
Current chat view mode for the header segmented toggle. When provided, a view-mode toggle is rendered in the header.
className?
optionalclassName?:string
Defined in: chat/Chat.tsx:172
Custom styles
clearOnMount?
optionalclearOnMount?:boolean
Defined in: chat/Chat.tsx:224
Clear messages when component mounts or agentId changes
codemodeEnabled?
optionalcodemodeEnabled?:boolean
Defined in: chat/Chat.tsx:199
Indicate tools are accessed via Codemode meta-tools
contextSnapshot?
optionalcontextSnapshot?:ContextSnapshotData
Defined in: chat/Chat.tsx:326
External context snapshot data for the token usage bar. When provided, overrides the built-in (no-op) useContextSnapshot hook.
description?
optionaldescription?:string
Defined in: chat/Chat.tsx:233
Description shown in empty state
errorBanner?
optionalerrorBanner?:object
Defined in: chat/Chat.tsx:284
Error banner to display at the top of the chat. Use this to show sandbox connection errors or other warnings.
message
message:
string
variant?
optionalvariant?:"warning"|"danger"
extensions?
optionalextensions?:Extension[]
Defined in: chat/Chat.tsx:127
Extensions for chat features
frontendTools?
optionalfrontendTools?:FrontendToolDefinition<Record<string,unknown>,unknown>[]
Defined in: chat/Chat.tsx:311
Frontend tool definitions to register with the chat. Pass an empty array to explicitly disable all frontend tools.
headerActions?
optionalheaderActions?:ReactNode
Defined in: chat/Chat.tsx:239
Custom actions to render in the chat header title row (right side).
headerContent?
optionalheaderContent?:ReactNode
Defined in: chat/Chat.tsx:236
Custom content to render in the chat header title row (left side).
height?
optionalheight?:string|number
Defined in: chat/Chat.tsx:175
Height of the chat container
hideMessagesAfterToolUI?
optionalhideMessagesAfterToolUI?:boolean
Defined in: chat/Chat.tsx:320
Hide assistant messages that follow a rendered tool call UI. Useful to suppress raw tool-call/continuation text and show only tool cards.
historyEndpoint?
optionalhistoryEndpoint?:string
Defined in: chat/Chat.tsx:272
Endpoint URL for fetching conversation history.
When runtimeId is provided, this endpoint is called to fetch
the conversation history on mount.
If not provided, defaults to {protocol.endpoint}/api/v1/history.
identityProviders?
optionalidentityProviders?:object
Defined in: chat/Chat.tsx:245
Identity providers configuration for OAuth
custom?
optionalcustom?:object
custom.clientId
clientId:
string
custom.config?
optionalconfig?:Partial<OAuthProviderConfig>
custom.scopes?
optionalscopes?:string[]
github?
optionalgithub?:object
github.clientId
clientId:
string
github.config?
optionalconfig?:Partial<OAuthProviderConfig>
github.scopes?
optionalscopes?:string[]
google?
optionalgoogle?:object
google.clientId
clientId:
string
google.config?
optionalconfig?:Partial<OAuthProviderConfig>
google.scopes?
optionalscopes?:string[]
kaggle?
optionalkaggle?:object
kaggle.clientId
clientId:
string
kaggle.config?
optionalconfig?:Partial<OAuthProviderConfig>
kaggle.scopes?
optionalscopes?:string[]
linkedin?
optionallinkedin?:object
linkedin.clientId
clientId:
string
linkedin.config?
optionalconfig?:Partial<OAuthProviderConfig>
linkedin.scopes?
optionalscopes?:string[]
notion?
optionalnotion?:object
notion.clientId
clientId:
string
notion.config?
optionalconfig?:Partial<OAuthProviderConfig>
notion.scopes?
optionalscopes?:string[]
slack?
optionalslack?:object
slack.clientId
clientId:
string
slack.config?
optionalconfig?:Partial<OAuthProviderConfig>
slack.scopes?
optionalscopes?:string[]
initialModel?
optionalinitialModel?:string
Defined in: chat/Chat.tsx:208
Initial model ID to select (e.g., 'openai:gpt-4o-mini')
initialSkills?
optionalinitialSkills?:string[]
Defined in: chat/Chat.tsx:221
Initial skill IDs to enable
mcpServers?
optionalmcpServers?:McpServerSelection[]
Defined in: chat/Chat.tsx:218
MCP server selections to enable (others will be disabled)
mcpStatusData?
optionalmcpStatusData?:McpToolsetsStatusResponse|null
Defined in: chat/Chat.tsx:332
External MCP toolsets status data for the MCP indicator. When provided, the data is forwarded to the McpStatusIndicator.
onChatViewModeChange?
optionalonChatViewModeChange?: (mode) =>void
Defined in: chat/Chat.tsx:305
Callback when the user switches chat view mode via the header toggle.
Parameters
mode
Returns
void
onCollapsePanel?
optionalonCollapsePanel?: () =>void
Defined in: chat/Chat.tsx:169
Callback when collapse panel is clicked
Returns
void
onDisconnect?
optionalonDisconnect?: () =>void
Defined in: chat/Chat.tsx:163
Callback when disconnect is clicked
Returns
void
onIdentityConnect?
optionalonIdentityConnect?: (identity) =>void
Defined in: chat/Chat.tsx:254
Callback when identity connects
Parameters
identity
Returns
void
onIdentityDisconnect?
optionalonIdentityDisconnect?: (provider) =>void
Defined in: chat/Chat.tsx:257
Callback when identity disconnects
Parameters
provider
Returns
void
onLogout?
optionalonLogout?: () =>void
Defined in: chat/Chat.tsx:166
Callback when logout is clicked
Returns
void
onMessageReceived?
optionalonMessageReceived?: (message) =>void
Defined in: chat/Chat.tsx:160
Callback when a response is received
Parameters
message
unknown
Returns
void
onMessageSent?
optionalonMessageSent?: (content) =>void
Defined in: chat/Chat.tsx:157
Callback when a message is sent
Parameters
content
string
Returns
void
pendingPrompt?
optionalpendingPrompt?:string
Defined in: chat/Chat.tsx:278
A prompt to append and send after the conversation history is loaded. The message is shown in the chat and sent to the agent exactly once.
placeholder?
optionalplaceholder?:string
Defined in: chat/Chat.tsx:142
Custom placeholder text
protocol
protocol:
Protocol
Defined in: chat/Chat.tsx:124
Transport to use
renderToolResult?
optionalrenderToolResult?:RenderToolResult
Defined in: chat/Chat.tsx:314
Optional custom renderer for tool-call message cards.
runtimeId?
optionalruntimeId?:string
Defined in: chat/Chat.tsx:264
Runtime ID for conversation persistence. When provided, messages are fetched from the server API on page reload and prevents message mixing between different agent runtimes.
showClearButton?
optionalshowClearButton?:boolean
Defined in: chat/Chat.tsx:184
Show the clear chat button in the header
showHeader?
optionalshowHeader?:boolean
Defined in: chat/Chat.tsx:178
Show header with connection status
showInformation?
optionalshowInformation?:boolean
Defined in: chat/Chat.tsx:294
Show the information icon in the header. When clicked, it opens the agent details panel.
Default
false
showInput?
optionalshowInput?:boolean
Defined in: chat/Chat.tsx:193
Show input area
showModelSelector?
optionalshowModelSelector?:boolean
Defined in: chat/Chat.tsx:187
Show model selector (fetched from /configure endpoint)
showNewChatButton?
optionalshowNewChatButton?:boolean
Defined in: chat/Chat.tsx:181
Show the new chat (+) button in the header
showSkillsMenu?
optionalshowSkillsMenu?:boolean
Defined in: chat/Chat.tsx:196
Show skills menu (fetched from /skills endpoint)
showTokenUsage?
optionalshowTokenUsage?:boolean
Defined in: chat/Chat.tsx:205
Show token usage bar between input and selectors.
Default
true
showToolsMenu?
optionalshowToolsMenu?:boolean
Defined in: chat/Chat.tsx:190
Show tools menu (fetched from /configure endpoint)
streaming?
optionalstreaming?:boolean
Defined in: chat/Chat.tsx:154
Whether to use streaming (for protocols that support it)
submitOnSuggestionClick?
optionalsubmitOnSuggestionClick?:boolean
Defined in: chat/Chat.tsx:230
Whether to automatically submit the message when a suggestion is clicked
suggestions?
optionalsuggestions?:Suggestion[]
Defined in: chat/Chat.tsx:227
Suggestions to show in empty state
title?
optionaltitle?:string
Defined in: chat/Chat.tsx:145
Custom title
wsUrl?
optionalwsUrl?:string
Defined in: chat/Chat.tsx:133
WebSocket URL (for WebSocket-based protocols like ACP)