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

# record • Rust AI Agent SDK

> record: Record an event

# record

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

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

Record an event

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def record(&self, event: &str, data: &serde_json::Value) -> ()
```

## Parameters

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

<ParamField query="data" type="&serde_json::Value" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="()">
  The result of the operation.
</ResponseField>
