Defined in: packages/ai/src/types.ts:1980
artifactId: string;Defined in: packages/ai/src/types.ts:1982
createdAt: string;Defined in: packages/ai/src/types.ts:1988
mimeType: string;Defined in: packages/ai/src/types.ts:1986
name: string;Defined in: packages/ai/src/types.ts:1985
role: PersistedArtifactRole;Defined in: packages/ai/src/types.ts:1981
runId: string;Defined in: packages/ai/src/types.ts:1984
size: number;Defined in: packages/ai/src/types.ts:1987
source: object;Defined in: packages/ai/src/types.ts:2004
activity: PersistedArtifactActivity;optional expiresAt?: string;optional jobId?: string;optional mediaType?: "json" | "image" | "audio" | "video" | "document";model: string;path: string;provider: string;optional sourceUrl?: string;Defined in: packages/ai/src/types.ts:1995
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: string;Defined in: packages/ai/src/types.ts:1983
optional url?: string;Defined in: packages/ai/src/types.ts:2003
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.