@threadplane/ag-uiTypeAliasv0.3.7

NativeResponse

A response as the protocol carries it, with the value as its payload.

import type { NativeResponse } from '@threadplane/ag-ui';

Declaration

export type NativeResponse = {
    readonly interruptId: string;
    readonly status: 'resolved';
    readonly payload?: PlainValue;
    readonly metadata?: Readonly<Record<string, PlainValue>>;
} | {
    readonly interruptId: string;
    readonly status: 'cancelled';
    readonly payload?: never;
    readonly metadata?: Readonly<Record<string, PlainValue>>;
};