- Name
parts- Kind
- property
- Type
readonly ["root", "message"]- Requirement
- required
DocsAPI referenceHeadlessassistant-error
assistant-error headless API
The core connector and vanilla mount are always visible. Use the framework choice to inspect native composition, props, outputs, context and hooks for the selected adapter.
6 of 6
@grassroot/ui-headless-core/assistant-error
Core connector and vanilla API
assistantErrorAnatomy
valueassistantErrorAnatomyts
export declare const assistantErrorAnatomy: { readonly scope: "assistant-error"; readonly parts: readonly ["root", "message"];};Name
Kind
Type
Requirement
partsproperty
readonly ["root", "message"]required
scopeproperty
"assistant-error"required
- Name
scope- Kind
- property
- Type
"assistant-error"- Requirement
- required
AssistantErrorApi
interfaceAssistantErrorApits
interface AssistantErrorApi { rootProps(): PartProps; messageProps(): PartProps; readonly visible: boolean; readonly message: string;}Name
Kind
Type
Requirement
messageproperty
stringrequired
messagePropsmethod
() => PartPropsrequired
rootPropsmethod
() => PartPropsrequired
visibleproperty
booleanrequired
- Name
message- Kind
- property
- Type
string- Requirement
- required
- Name
messageProps- Kind
- method
- Type
() => PartProps- Requirement
- required
- Name
rootProps- Kind
- method
- Type
() => PartProps- Requirement
- required
- Name
visible- Kind
- property
- Type
boolean- Requirement
- required
AssistantErrorConnectOptions
interfaceAssistantErrorConnectOptionsts
interface AssistantErrorConnectOptions { readonly status?: AssistantErrorStatus;}Name
Kind
Type
Requirement
statusproperty
AssistantErrorStatusoptional
- Name
status- Kind
- property
- Type
AssistantErrorStatus- Requirement
- optional
AssistantErrorPart
typeAssistantErrorPartts
type AssistantErrorPart = (typeof assistantErrorAnatomy.parts)[number];AssistantErrorStatus
typeAssistantErrorStatusts
type AssistantErrorStatus = { readonly type: string; readonly reason?: string; readonly error?: unknown;};Name
Kind
Type
Requirement
errorproperty
unknownoptional
reasonproperty
stringoptional
typeproperty
stringrequired
- Name
error- Kind
- property
- Type
unknown- Requirement
- optional
- Name
reason- Kind
- property
- Type
string- Requirement
- optional
- Name
type- Kind
- property
- Type
string- Requirement
- required
connectAssistantError
functionconnectAssistantErrorts
declare function connectAssistantError(scope: PartScope, options?: AssistantErrorConnectOptions): AssistantErrorApi;Name
Kind
Type
Requirement
scopeparameter
PartScoperequired
optionsparameter
AssistantErrorConnectOptionsoptional
returnreturn value
AssistantErrorApin/a
- Name
scope- Kind
- parameter
- Type
PartScope- Requirement
- required
- Name
options- Kind
- parameter
- Type
AssistantErrorConnectOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
AssistantErrorApi- Requirement
- n/a
Framework adapters
Each panel keeps its adapter's public vocabulary. React compound exports, Vue composables, standalone Angular declarations, Svelte components, and Solid hooks stay native to their framework.
This entry is core-only. No framework adapter package ships for assistant-error yet — mount it through the vanilla API above.