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

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

> This is a method of the [**ScriptedModel**](../classes/ScriptedModel) class in the [**scripted**](../modules/scripted) 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

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/model_harness/scripted.py#L356">
  `praisonaiagents/model_harness/scripted.py` at line 356
</Card>
