ArtifactChunk class

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.

Constructors

ArtifactChunk({String? artifactId, String? contentDelta, String? displayName, String? gcsUri, String? mimeType, String? state})
ArtifactChunk.fromJson(Map json_)

Properties

artifactId ↔ String?
Identifier of the artifact, stable across all chunks of one artifact within the stream.
getter/setter pair
contentDelta ↔ String?
Incremental artifact content.
getter/setter pair
displayName ↔ String?
The file name shown to the user, e.g. "hotel_booking_tdd.md".
getter/setter pair
gcsUri ↔ String?
The GCS object the artifact was persisted to.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
mimeType ↔ String?
The IANA media type of the artifact content, e.g. "text/markdown".
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state ↔ String?
Lifecycle position of this chunk. Possible string values are:
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited