Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  reply-failure.ts

  Sprache: JAVA
 

import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/text-runtime";

const FAILURE_REPLY_PREFIXES = [
  "⚠️ something went wrong while processing your request.",
  "⚠️ session history got out of sync.",
  "⚠️ session history was corrupted.",
  "⚠️ context overflow",
  "⚠️ message ordering conflict.",
  "⚠️ model login expired on the gateway",
  "⚠️ model login failed on the gateway",
  "⚠️ agent failed before reply:",
  "⚠️ ✉️ message failed",
  "⚠️ no api key found for provider ",
  "⚠️ missing api key for ",
];

const VISIBLE_REPLY_LEAK_PATTERNS = [
  /\bchecking thread context\b/i,
  /\bthread context thin\b/i,
  /\bpost a tight progress reply here\b/i,
  /\bposting a coordination nudge\b/i,
  /\bposted a short coordination reply\b/i,
  /\bnot inventing status\b/i,
];

const TOOL_BACKED_FAILURE_PATTERNS = [
  /\btool\s+[a-z0-9_.-]+\s+not found\b/i,
  /^status:\s*blocked\b/im,
];

export function extractQaVisibleReplyLeakText(text: string): string | undefined {
  const trimmed = text.trim();
  if (!trimmed) {
    return undefined;
  }
  if (VISIBLE_REPLY_LEAK_PATTERNS.some((pattern) => pattern.test(trimmed))) {
    return trimmed;
  }
  return undefined;
}

export function extractQaFailureReplyText(text: string): string | undefined {
  const trimmed = text.trim();
  if (!trimmed) {
    return undefined;
  }
  const lower = normalizeLowercaseStringOrEmpty(trimmed);
  if (FAILURE_REPLY_PREFIXES.some((prefix) => lower.startsWith(prefix))) {
    return trimmed;
  }
  const visibleReplyLeak = extractQaVisibleReplyLeakText(trimmed);
  if (visibleReplyLeak) {
    return visibleReplyLeak;
  }
  if (TOOL_BACKED_FAILURE_PATTERNS.some((pattern) => pattern.test(trimmed))) {
    return trimmed;
  }
  return undefined;
}

Messung V0.5 in Prozent
C=100 H=93 G=96

¤ Dauer der Verarbeitung: 0.15 Sekunden  (vorverarbeitet am  2026-06-06) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik