# `ReqManagedAgents.Evidence.Diagnostic`
[🔗](https://github.com/cash-mckeeman/req_managed_agents/blob/v0.13.0/req_managed_agents/lib/req_managed_agents/evidence/diagnostic.ex#L1)

Counted evidence limitations with fixed messages safe for display.

# `code`

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

# `t`

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

# `new`

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

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
