Defined in: packages/ai/src/types.ts:2489
Properties#
artifactId#
artifactId: string;
Defined in: packages/ai/src/types.ts:2491
createdAt#
createdAt: string;
Defined in: packages/ai/src/types.ts:2497
mimeType#
mimeType: string;
Defined in: packages/ai/src/types.ts:2495
name#
name: string;
Defined in: packages/ai/src/types.ts:2494
role#
role: PersistedArtifactRole;
Defined in: packages/ai/src/types.ts:2490
runId#
runId: string;
Defined in: packages/ai/src/types.ts:2493
size#
size: number;
Defined in: packages/ai/src/types.ts:2496
source#
source: object;
Defined in: packages/ai/src/types.ts:2513
activity#
activity: PersistedArtifactActivity;
expiresAt?#
optional expiresAt?: string;
jobId?#
optional jobId?: string;
mediaType?#
optional mediaType?: "json" | "image" | "audio" | "video" | "document";
model#
model: string;
path#
path: string;
provider#
provider: string;
sourceUrl?#
optional sourceUrl?: string;
Defined in: packages/ai/src/types.ts:2504
Where these bytes were fetched FROM — the provider's original result URL,
or a caller-supplied prompt URL when allowInputUrl opted that in. Usually
expiring, and provenance only: serve from PersistedArtifactRef.url
instead.
threadId#
threadId: string;
Defined in: packages/ai/src/types.ts:2492
url?#
optional url?: string;
Defined in: packages/ai/src/types.ts:2512
Durable app-origin URL that serves this artifact's persisted bytes (your
GET route around retrieveArtifact / retrieveBlob). Stamped by
withGenerationPersistence's artifactUrl option, so clients render and
restore durable media from your own origin rather than the provider's
expiring link.