detect_loop
Identify if an AI agent is stuck in a reasoning loop using statistical, pattern, or hybrid detection methods to ensure progress toward a goal.
Instructions
Detect if the agent is stuck in a loop using various strategies
Input Schema
Name | Required | Description | Default |
---|---|---|---|
current_context | No | Current environment context or state, in low dash format. Example: sending_email | |
detection_method | No | Loop detection method to use: statistical, pattern or hybrid. | hybrid |
goal | Yes | Current goal being pursued |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"current_context": {
"description": "Current environment context or state, in low dash format. Example: sending_email",
"type": "string"
},
"detection_method": {
"default": "hybrid",
"description": "Loop detection method to use: statistical, pattern or hybrid.",
"enum": [
"statistical",
"pattern",
"hybrid"
],
"type": "string"
},
"goal": {
"description": "Current goal being pursued",
"type": "string"
}
},
"required": [
"goal"
],
"type": "object"
}