# SmartPasteAdapter (@salmonui/chat/smart-paste)

> The SmartPasteAdapter type of @salmonui/chat/smart-paste: Returns a JSON object keyed by field name, or JSON text of one.

Canonical: https://salmonui.dev/docs/reference/chat/smart-paste/SmartPasteAdapter

```ts
import type { SmartPasteAdapter } from '@salmonui/chat/smart-paste';
```

Entry index: https://salmonui.dev/docs/reference/chat/smart-paste (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/chat/smart-paste.md).

## Reference

Kind: type

```ts
type SmartPasteAdapter = (request: SmartPasteRequest, init: {
    readonly signal: AbortSignal;
}) => Promise<string | Readonly<Record<string, unknown>>>;
```

Returns a JSON object keyed by field name, or JSON text of one.
