API reference: @salmonui/chat/conversation
ConversationAdaptertype
import type { ConversationAdapter } from '@salmonui/chat/conversation';type ConversationAdapter = (request: ConversationRequest, context: {
readonly signal: AbortSignal;
}) => Promise<string> | AsyncIterable<string | ConversationResponsePart>;
Bot and assistant replies: a Promise is one final
response, an AsyncIterable streams text chunks and response parts. The
signal aborts on Stop, api.stop(), a new send and unmount.