Skip to main content

ChatInlineProps

Agent Runtimes


Agent Runtimes / chat/ChatInline / ChatInlineProps

Interface: ChatInlineProps

Defined in: chat/ChatInline.tsx:169

ChatInline component props

Properties

onClose?

optional onClose?: () => void

Defined in: chat/ChatInline.tsx:181

Callback to close the inline chat

Returns

void


onInsertBelow?

optional onInsertBelow?: (text) => void

Defined in: chat/ChatInline.tsx:179

Callback when user wants to insert AI result as new paragraph

Parameters

text

string

Returns

void


onInsertInline?

optional onInsertInline?: (text) => void

Defined in: chat/ChatInline.tsx:177

Callback when user wants to insert AI result inline after selection

Parameters

text

string

Returns

void


onPendingPromptConsumed?

optional onPendingPromptConsumed?: () => void

Defined in: chat/ChatInline.tsx:189

Callback after the pending prompt has been consumed

Returns

void


onReplaceSelection?

optional onReplaceSelection?: (text) => void

Defined in: chat/ChatInline.tsx:175

Callback when user wants to replace selection with AI result

Parameters

text

string

Returns

void


onRestoreSelection?

optional onRestoreSelection?: () => void

Defined in: chat/ChatInline.tsx:185

Callback to restore selection after input blur

Returns

void


onSaveSelection?

optional onSaveSelection?: () => void

Defined in: chat/ChatInline.tsx:183

Callback to save selection before input focus

Returns

void


pendingPrompt?

optional pendingPrompt?: string | null

Defined in: chat/ChatInline.tsx:187

A pending prompt to submit automatically (from toolbar dropdown action)


protocol

protocol: ChatInlineProtocolConfig

Defined in: chat/ChatInline.tsx:173

Protocol configuration for connecting to the agent


selectedText

selectedText: string

Defined in: chat/ChatInline.tsx:171

The selected text from the editor