MCPcopy Create free account
hub / github.com/github/gh-aw / hasEngineMaxRunsExceededSignal

Function hasEngineMaxRunsExceededSignal

actions/setup/js/handle_agent_failure.cjs:1675–1680  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

1673 * @returns {boolean}
1674 */
1675function 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.

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected