state property

String? state
getter/setter pair

Lifecycle position of this chunk. Possible string values are:

  • "STATE_UNSPECIFIED" : Unused default.
  • "STARTED" : The assistant started generating the artifact.
  • "DELTA" : A content increment; content_delta is set.
  • "FINALIZED" : The artifact was persisted; gcs_uri is set.
  • "FAILED" : Generation or persistence failed; the artifact was not saved.
  • "CLOSED" : The document finished streaming: its content was fully delivered via content_delta chunks. Persistence may still follow; a FINALIZED chunk with a gcs_uri is sent if and when the artifact is saved.

Implementation

core.String? state;