> ## 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

Method

> This is a method of the [**DoomLoopTracker**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/DoomLoopTracker.md) class in the [**autonomy**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/autonomy.md) 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

**text** `str` *required*

The model's response text

## Uses

* `record_response`

## Used By

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

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/autonomy.py#L517)
>
> `praisonaiagents/agent/autonomy.py` at line 517


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.