View as Markdown

API reference: @salmonui/chat/inline-assist

InlineAssistMessageinterface

import type { InlineAssistMessage } from '@salmonui/chat/inline-assist';
interface InlineAssistMessage {
    readonly id: string;
    readonly prompt: string;
    readonly command?: string;
    readonly response: string;
    readonly status: 'done' | 'aborted' | 'error';
}

One prompt and its response.

InlineAssistMessage members (5)
NameSignatureDescription
idreadonly id: string;
promptreadonly prompt: string;
commandoptionalreadonly command?: string;

Id of the command that produced the prompt.

responsereadonly response: string;
statusreadonly status: 'done' | 'aborted' | 'error';

'aborted': stopped by Stop or by closing; 'error': the adapter threw.