Skip to main content

ChatInlineToolbarState

Agent Runtimes


Agent Runtimes / lexical/useChatInlineToolbarItems / ChatInlineToolbarState

Interface: ChatInlineToolbarState

Defined in: lexical/useChatInlineToolbarItems.ts:43

Return type for useChatInlineToolbarItems.

Properties

clearPendingPrompt

clearPendingPrompt: () => void

Defined in: lexical/useChatInlineToolbarItems.ts:53

Clear the pending prompt after it has been consumed

Returns

void


closeAi

closeAi: () => void

Defined in: lexical/useChatInlineToolbarItems.ts:57

Close the AI panel

Returns

void


isAiOpen

isAiOpen: boolean

Defined in: lexical/useChatInlineToolbarItems.ts:47

Whether the AI inline chat panel is open


openAi

openAi: () => void

Defined in: lexical/useChatInlineToolbarItems.ts:55

Open the AI panel (with custom prompt input)

Returns

void


pendingPrompt

pendingPrompt: string | null

Defined in: lexical/useChatInlineToolbarItems.ts:51

The pending prompt (set by dropdown, consumed by ChatInlinePlugin)


submitPrompt

submitPrompt: (prompt) => void

Defined in: lexical/useChatInlineToolbarItems.ts:49

Submit a prompt directly (used by the dropdown actions)

Parameters

prompt

string

Returns

void


toolbarItems

toolbarItems: ToolbarItem[]

Defined in: lexical/useChatInlineToolbarItems.ts:45

ToolbarItem[] to pass as extraItems to FloatingTextFormatToolbarPlugin