Utilities
Miscellaneous @assistant-ui/react utilities for custom rendering, composition, and advanced assistant UI behavior.
API Reference
AssistantCloud
AssistantCloudconstructor?: (config: AssistantCloudConfig) => AssistantCloudthreads?: AssistantCloudThreadsauth?: {
tokens: AssistantCloudAuthTokens;
}runs?: AssistantCloudRunsfiles?: AssistantCloudFilestelemetry?: AssistantCloudTelemetryConfigChainOfThoughtClient
ChainOfThoughtClient propsparts: readonly ChainOfThoughtPart[]getMessagePart: (selector: { index: number }) => PartMethodsDevToolsHooks
DevToolsHooksstatic subscribe?: (listener: () => void) => Unsubscribestatic clearEventLogs?: (apiId: number) => voidstatic getApis?: () => Map<number, DevToolsApiEntry>ExportedMessageRepository
ExportedMessageRepositoryheadId?: string | nullmessages: Array<{
message: ThreadMessage;
parentId: string | null;
runConfig?: RunConfig;
}>InMemoryThreadList
InMemoryThreadList propsthread: (threadId: string) => ResourceElement<ClientOutput<"thread">>onSwitchToThread?: (threadId: string) => voidonSwitchToNewThread?: () => voidInteractables
const Interactables: () => ResourceElement<ClientOutput<"interactables">, undefined>;makeAssistantVisible
const makeAssistantVisible: <T extends ComponentType<any>>(Component: T, config?: { clickable?: boolean | undefined; editable?: boolean | undefined; }) => T;SingleThreadList
A minimal threads scope that wraps a single thread. Automatically provided by ExternalThread when no threads scope exists. Mounts the provided thread resource element.
SingleThreadList propsthread: ClientElement<"thread">type: Resource<R, P> & { [fnSymbol]: (props: P) => R }props: Pkey?: string | numberSuggestions
const Suggestions: {
(): ResourceElement<
ClientOutput<"suggestions">,
undefined
>;
(
suggestions: SuggestionConfig[],
): ResourceElement<
ClientOutput<"suggestions">,
SuggestionConfig[]
>;
};