Skip to main content
Version: latest

agrag.common.data_models.evidence.FetchStatus

Bases: StrEnum

The outcome of fetching one evidence id.

Attributes:

  • OK – The text is returned in full.
  • PARTIAL – Part of the requested range is covered by no chunk. Only the covered part is returned. An id from this outcome names more text than the caller received, so it must not be cited as fetched.
  • TRUNCATED – The text was cut at max_chars.
  • UNAVAILABLE – The id names no evidence this caller may read. Missing ids and ids outside the scope give this same outcome.
  • MALFORMED – The id does not decode.
  • INDEX_NOT_READY – A search index the operation needs is not ready. Fetch uses no index, so it does not return this status.
  • FAILED – The store failed while reading the evidence.

FAILED​

FAILED = 'failed'

INDEX_NOT_READY​

INDEX_NOT_READY = 'index_not_ready'

MALFORMED​

MALFORMED = 'malformed'

OK​

OK = 'ok'

PARTIAL​

PARTIAL = 'partial'

TRUNCATED​

TRUNCATED = 'truncated'

UNAVAILABLE​

UNAVAILABLE = 'unavailable'