View as Markdown

API reference: @salmonui/chat/conversation

ConversationResponseParttype

import type { ConversationResponsePart } from '@salmonui/chat/conversation';
type ConversationResponsePart = {
    readonly type: 'text';
    readonly delta: string;
} | {
    readonly type: 'reasoning';
    readonly delta: string;
} | {
    readonly type: 'tool';
    readonly id: string;
    readonly name: string;
    readonly input: unknown;
    readonly output?: unknown;
    readonly status?: 'running' | 'done' | 'error';
};

A non-text part of an assistant response; a plain string chunk is a text delta.