record • AI Agent SDK

record: Record an action for loop detection.

record

Method

</div>

This is a method of the DoomLoopTracker class in the autonomy module.

Record an action for loop detection.

Signature

python
def record(action_type: str, args: Dict[str, Any], result: Any, success: bool) -> None

Parameters

ParamField str

Type of action (e.g., “read_file”)

ParamField Dict[str, Any]

Action arguments

ParamField Any

Action result

ParamField bool

Whether action succeeded

Uses

  • record_action

Used By

Source

View on GitHub

praisonaiagents/agent/autonomy.py at line 457