> ## 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 Context Emitter • AI Agent SDK

> reset_context_emitter: Reset the context emitter to its previous state.

# reset\_context\_emitter

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**context\_events**](../modules/context_events) module.

Reset the context emitter to its previous state.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def reset_context_emitter(token: contextvars.Token) -> None
```

## Parameters

<ParamField query="token" type="contextvars.Token" required={true}>
  Token returned by set\_context\_emitter().
</ParamField>

## Uses

* `_context_emitter.reset`

## Used By

* [`trace_context`](../functions/trace_context)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/trace/context_events.py#L77">
  `praisonaiagents/trace/context_events.py` at line 77
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Context Concept" icon="layer-group" href="/docs/docs/concepts/context" />

  <Card title="Context Management" icon="sliders" href="/docs/docs/features/context-management" />

  <Card title="Context Strategies" icon="diagram-project" href="/docs/docs/features/context-strategies" />
</CardGroup>
