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.

@grassroot/ui-headless-core/assistant-error

Core connector and vanilla API

6 exports
View source packages/ui-headless/core/src/assistant-error/index.ts
DeclarationView source
assistantErrorAnatomyts
export declare const assistantErrorAnatomy: {
readonly scope: "assistant-error";
readonly parts: readonly ["root", "message"];
};
Name
Kind
Type
Requirement
parts
property
readonly ["root", "message"]
required
scope
property
"assistant-error"
required
Name
parts
Kind
property
Type
readonly ["root", "message"]
Requirement
required
Name
scope
Kind
property
Type
"assistant-error"
Requirement
required

AssistantErrorApi

interface
DeclarationView source
AssistantErrorApits
interface AssistantErrorApi {
rootProps(): PartProps;
messageProps(): PartProps;
readonly visible: boolean;
readonly message: string;
}
Name
Kind
Type
Requirement
message
property
string
required
messageProps
method
() => PartProps
required
rootProps
method
() => PartProps
required
visible
property
boolean
required
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
DeclarationView source
AssistantErrorConnectOptionsts
interface AssistantErrorConnectOptions {
readonly status?: AssistantErrorStatus;
}
Name
Kind
Type
Requirement
status
property
AssistantErrorStatus
optional
Name
status
Kind
property
Type
AssistantErrorStatus
Requirement
optional
DeclarationView source
AssistantErrorPartts
type AssistantErrorPart = (typeof assistantErrorAnatomy.parts)[number];
DeclarationView source
AssistantErrorStatusts
type AssistantErrorStatus = {
readonly type: string;
readonly reason?: string;
readonly error?: unknown;
};
Name
Kind
Type
Requirement
error
property
unknown
optional
reason
property
string
optional
type
property
string
required
Name
error
Kind
property
Type
unknown
Requirement
optional
Name
reason
Kind
property
Type
string
Requirement
optional
Name
type
Kind
property
Type
string
Requirement
required
DeclarationView source
connectAssistantErrorts
declare function connectAssistantError(scope: PartScope, options?: AssistantErrorConnectOptions): AssistantErrorApi;
Name
Kind
Type
Requirement
scope
parameter
PartScope
required
options
parameter
AssistantErrorConnectOptions
optional
return
return value
AssistantErrorApi
n/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.