ReqManagedAgents.Evidence.Diagnostic (ReqManagedAgents v0.13.3)

Copy Markdown View Source

Counted evidence limitations with fixed messages safe for display.

Summary

Functions

Validates references and counts, replacing supplied text with the code's safe message.

Types

code()

@type code() ::
  :incomplete_retrieval
  | :cursor_cycle
  | :bound_exceeded
  | :source_unavailable
  | :unsupported_record
  | :conflicting_duplicate
  | :capture_gap
  | :invalid_correlation
  | :content_unavailable
  | :unresolved_operation

t()

@type t() :: %ReqManagedAgents.Evidence.Diagnostic{
  code: code(),
  count: non_neg_integer(),
  message: String.t(),
  record_id: String.t() | nil,
  source_id: String.t() | nil
}

Functions

new(attrs)

@spec new(map()) :: {:ok, t()} | {:error, ReqManagedAgents.Evidence.Error.t()}

Validates references and counts, replacing supplied text with the code's safe message.