Class ArtifactChunk (0.7.4)

ArtifactChunk(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A streamed fragment of a document artifact (e.g. a markdown TDD) that the assistant is generating. Content deltas stream while the document is being written so clients can render a live preview; the FINALIZED chunk carries the GCS URI once the file has been persisted.

Attributes

Name Description
artifact_id str
Identifier of the artifact, stable across all chunks of one artifact within the stream.
display_name str
The file name shown to the user, e.g. "hotel_booking_tdd.md". Set on STARTED (and repeated on FINALIZED).
mime_type str
The IANA media type of the artifact content, e.g. "text/markdown".
content_delta str
Incremental artifact content. Set on DELTA chunks.
gcs_uri str
The GCS object the artifact was persisted to. Set on FINALIZED chunks.
state google.cloud.ces_v1beta.types.ArtifactChunk.State
Lifecycle position of this chunk.

Classes

State

State(value)

Lifecycle position of this chunk within the artifact's stream.