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

# Get Events • AI Agent SDK

> get_events: Get all collected events.

# get\_events

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

> This is a method of the [**ListSink**](../classes/ListSink) class in the [**protocol**](../modules/protocol) module.

Get all collected events.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_events() -> List[ActionEvent]
```

### Returns

<ResponseField name="Returns" type="List[ActionEvent]">
  The result of the operation.
</ResponseField>

## Source

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