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

# reset • AI Agent SDK

> reset: Rewind to the start of the script and forget recorded requests.

# reset

Method

> This is a method of the [**ScriptedModel**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/ScriptedModel.md) class in the [**scripted**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/scripted.md) module.

Rewind to the start of the script and forget recorded requests.

Generated tool-call ids restart too, so a re-run is byte-identical.

## Signature

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

## Uses

* `itertools.count`

## Used By

* [`ContextManager.process`](../functions/ContextManager-process)
* [`ContextManager.reset`](../functions/ContextManager-reset)
* [`ObservabilityHooks.start_execution`](../functions/ObservabilityHooks-start_execution)
* [`PersistentRestartLoopGuard.reset`](../functions/PersistentRestartLoopGuard-reset)
* [`Knowledge.reset`](../functions/Knowledge-reset)

## Source

> **[View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/model_harness/scripted.py#L356)**
>
> `praisonaiagents/model_harness/scripted.py` at line 356


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