INNER CODE UNIT · Python

ai_one

wolfSSL/wolfssl-examples · .github/scripts/ci_triage.py:418

def ai_one(client, fd):
    if client is None:
        return None
    user = (
        f"example dir: {fd['id']}\n"
        f"failing refs: {', '.join(fd['refs'])}\n"
        f"consecutive nights failing: {fd['streak']}\n\n"
        f"log tail (secrets scrubbed):\n{store.scrub(fd['log'])[-LOG_TAIL_CHARS:]}"
    )
    try:
        resp = client.messages.create(
            model=CLAUDE_MODEL,
            max_tokens=2000,
            system=SYSTEM,
            thinking={"type": "adaptive"},
            output_config={
                "effort": "low",
                "format": {"type": "json_schema", "schema": SCHEMA},

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…