driftguard_circuit_breaker_check
Logs command outcomes and halts the agent after 3 consecutive identical errors, stopping hallucination loops so repeated failures don't spiral.
Instructions
Registra l'esito di un comando ed evita loop infiniti di allucinazione, bloccando l'agente se ripete lo stesso errore per 3 volte consecutive.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "<command>",
"exitCode": "<exitCode>"
},
"name": "driftguard_circuit_breaker_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Il comando appena eseguito. | |
| exitCode | Yes | L'exit code del comando (0 per successo, != 0 per errore). | |
| errorSnippet | No | Snippet opzionale del messaggio di errore. |