# NativeResponse

Package: `@threadplane/ag-ui` · 0.3.7

Reference: /docs/api/ag-ui/NativeResponse

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

## NativeResponse

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

```typescript
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>>;
};
```