ToolUnavailableNotice
Say in the transcript that a tool or the server behind it stopped answering, without turning the answer into an error card: tracker is unavailable. The connection dropped after three attempts.. server names the server or the tool in the title and is dropped from it when omitted; message carries what went wrong. onRetry adds a retry button, onDismiss a close button, and with neither the notice is read-only. Shares its look and its labels pattern with IdleReturnPrompt and SpendThresholdNotice.
Getting Started
$pnpm add @sinups/ai-kit @mantine/core @mantine/hooks @tabler/icons-reactExamples
Server lost, with retry
API reference
Prop
Type
Required
message
React.ReactNode
Yes
What went wrong, for example `Connection to the server was lost after 3 attempts.`
server
string
No
Name of the server or tool that went away, shown in the title
onRetry
() => void
No
Renders a retry button when set
onDismiss
() => void
No
Renders a close button when set
labels
Partial<ToolUnavailableNoticeLabels>
No
Overrides of the default English labels
className
string
No
Class name added to the root element
style
React.CSSProperties
No
Inline styles added to the root element