* Detect max-runs guardrail failures in text payloads. * Returns true when content includes either the `max_runs_exceeded` error type * or the "Maximum LLM invocations exceeded" message fragment. * @param {string|null|undefined} content * @returns {boolean}
(content)
| 1673 | * @returns {boolean} |
| 1674 | */ |
| 1675 | function hasEngineMaxRunsExceededSignal(content) { |
| 1676 | if (!content) { |
| 1677 | return false; |
| 1678 | } |
| 1679 | return ENGINE_MAX_RUNS_EXCEEDED_RE.test(content); |
| 1680 | } |
| 1681 | |
| 1682 | /** |
| 1683 | * Detect HTTP 429/rate-limit engine failures from OTLP JSONL mirror payloads. |
no outgoing calls
no test coverage detected