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

# flush • AI Agent SDK

> flush: Flush the sink.

# flush

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

> This is a method of the [**ContextTraceEmitter**](../classes/ContextTraceEmitter) class in the [**context\_events**](../modules/context_events) module.

Flush the sink.

## Signature

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

## Uses

* `flush`

## Used By

* [`ContextTraceEmitter.flush`](../functions/ContextTraceEmitter-flush)
* [`TraceEmitter.flush`](../functions/TraceEmitter-flush)

## Source

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