Skip to content

PURISTA API


PURISTA API / @purista/ai / createArtifactFrame

Function: createArtifactFrame()

createArtifactFrame(input): object

Defined in: packages/ai/src/protocol/helpers.ts:66

Parameters

input

artifactId

string

content

string | Record<string, unknown>

lastChunk?

boolean

mimeType?

string

phase?

"final" | "chunk"

sequence?

number

total?

number

Returns

object

artifactId

readonly artifactId: string = input.artifactId

content

readonly content: string | Record<string, unknown> = input.content

kind

readonly kind: "artifact" = 'artifact'

lastChunk

readonly lastChunk: boolean | undefined = input.lastChunk

mimeType

readonly mimeType: string | undefined = input.mimeType

phase

readonly phase: "final" | "chunk"

sequence

readonly sequence: number | undefined = input.sequence

total

readonly total: number | undefined = input.total