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

# Events By Type • Rust AI Agent SDK

> events_by_type: Get events by type.

# events\_by\_type

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

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

Get events by type.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def events_by_type(&self, event_type: &TelemetryEventType) -> Vec<TelemetryEvent>
```

## Parameters

<ParamField query="event_type" type="&TelemetryEventType" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Vec<TelemetryEvent>">
  The result of the operation.
</ResponseField>
