> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Record Response • AI Agent SDK

> record_response: Record model response text for content streaming loop detection.

# record\_response

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**DoomLoopTracker**](../classes/DoomLoopTracker) class in the [**autonomy**](../modules/autonomy) module.

Record model response text for content streaming loop detection.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def record_response(text: str) -> None
```

## Parameters

<ParamField query="text" type="str" required={true}>
  The model's response text
</ParamField>

## Uses

* `record_response`

## Used By

* [`Agent.run_autonomous_async`](../functions/Agent-run_autonomous_async)
* [`DoomLoopTracker.record_response`](../functions/DoomLoopTracker-record_response)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/autonomy.py#L442">
  `praisonaiagents/agent/autonomy.py` at line 442
</Card>
