> ## 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 [**TraceEmitter**](../classes/TraceEmitter) class in the [**protocol**](../modules/protocol) 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/protocol.py#L381">
  `praisonaiagents/trace/protocol.py` at line 381
</Card>
