ChatInlineProps
Agent Runtimes / chat/ChatInline / ChatInlineProps
Interface: ChatInlineProps
Defined in: chat/ChatInline.tsx:169
ChatInline component props
Properties
onClose?
optionalonClose?: () =>void
Defined in: chat/ChatInline.tsx:181
Callback to close the inline chat
Returns
void
onInsertBelow?
optionalonInsertBelow?: (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?
optionalonInsertInline?: (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?
optionalonPendingPromptConsumed?: () =>void
Defined in: chat/ChatInline.tsx:189
Callback after the pending prompt has been consumed
Returns
void
onReplaceSelection?
optionalonReplaceSelection?: (text) =>void
Defined in: chat/ChatInline.tsx:175
Callback when user wants to replace selection with AI result
Parameters
text
string
Returns
void
onRestoreSelection?
optionalonRestoreSelection?: () =>void
Defined in: chat/ChatInline.tsx:185
Callback to restore selection after input blur
Returns
void
onSaveSelection?
optionalonSaveSelection?: () =>void
Defined in: chat/ChatInline.tsx:183
Callback to save selection before input focus
Returns
void
pendingPrompt?
optionalpendingPrompt?: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