Record Action • AI Agent SDK
record_action: Record an action for loop detection.
record_action
Method
</div>
This is a method of the DoomLoopDetector class in the doom_loop module.
Record an action for loop detection.
Signature
def record_action(action_type: str, args: Dict[str, Any], result: Any, success: bool, duration: float, metadata: Optional[Dict[str, Any]]) -> AnyParameters
ParamField
strType of action (e.g., “read_file”, “edit”)
ParamField
Dict[str, Any]Action arguments
ParamField
AnyAction result
ParamField
boolWhether action succeeded
ParamField
floatAction duration in seconds
ParamField
OptionalOptional metadata
Returns
ResponseField
AnyThe result of the operation.
Uses
ActionRecordtime.timeis_doom_loop
Used By
Source
View on GitHubpraisonaiagents/escalation/doom_loop.py at line 134