Skip to content
providerkit
GitHub

AttachmentPart

Defined in: react/src/protocol.ts:98

A file shown in the conversation. Showing it does not make the model read it: how a file reaches the model is the host’s decision.

id: string;

Defined in: react/src/protocol.ts:100


mediaType: string;

Defined in: react/src/protocol.ts:102


name: string;

Defined in: react/src/protocol.ts:101


optional size?: number;

Defined in: react/src/protocol.ts:104

Bytes.


type: "attachment";

Defined in: react/src/protocol.ts:99


optional url?: string;

Defined in: react/src/protocol.ts:107

Kept exactly as the host sent it. A renderer checks the scheme before it makes a link or an image out of it.