CMDCRAGArcana.Knowledge.IndexStatus (cmdc_rag_arcana v0.2.1)

Copy Markdown View Source

知识库索引状态契约。

rag_ingest_status Tool 和企业 API helper 都返回这个稳定形状,让 Agent 只读判断知识库是否可用、是否过期、是否正在重建。

Summary

Functions

构建 index status 契约 struct。

Types

status()

@type status() ::
  :unknown | :queued | :indexing | :ready | :stale | :failed | :rebuilding

t()

@type t() :: %CMDCRAGArcana.Knowledge.IndexStatus{
  active_version_id: String.t() | nil,
  arcana_document_id: String.t() | nil,
  chunk_count: non_neg_integer() | nil,
  collection: String.t() | nil,
  document_id: String.t() | nil,
  error: String.t() | nil,
  graph_status: status() | nil,
  metadata: map(),
  stale?: boolean(),
  status: status(),
  tenant_id: String.t() | nil,
  updated_at: String.t() | nil,
  version_id: String.t() | nil
}

Functions

new(status)

@spec new(keyword() | map() | t()) :: t()

构建 index status 契约 struct。