Check Source Health
library_health_checkCheck a library source's health by merging live error rate/latency with last probe run. Use before relying on an erroring source or to verify a key is configured.
Instructions
Report per-source health: 'ok', 'degraded', 'down', 'key_missing', or 'unknown', merging this process's live error rate and latency with the last off-process probe run. The probe layer reads eval/probe-latest.json, which published installs do not ship, so on a published install a source's status stays 'unknown' until this process itself calls it. Use before relying on a source that has been erroring, or to check whether a key is configured. Optionally filter by source or cluster. Set response_format: "detailed" for error rate, latency, and quota usage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Library source name. Run library_list_sources for the current list and descriptions. | |
| cluster | No | Restrict to sources in this cluster | |
| response_format | No | concise (default) trims results/citations to high-signal fields; detailed returns the full payload, including routing reasons, scores, and stage diagnostics. | concise |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| probeAt | No | ||
| sources | Yes | ||
| generatedAt | Yes |