> ## Documentation Index
> Fetch the complete documentation index at: https://docs.camel-ai.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Camel.datasets.models

<a id="camel.datasets.models" />

<a id="camel.datasets.models.DataPoint" />

## DataPoint

```python theme={"system"}
class DataPoint(BaseModel):
```

A single data point in the dataset.

**Parameters:**

* **question** (str): The primary question or issue to be addressed.
* **final\_answer** (str): The final answer.
* **rationale** (Optional\[str]): Logical reasoning or explanation behind the answer. (default: :obj:`None`)
* **metadata** (Optional\[Dict\[str, Any]]): Additional metadata about the data point. (default: :obj:`None`)

<a id="camel.datasets.models.DataPoint.to_dict" />

### to\_dict

```python theme={"system"}
def to_dict(self):
```

**Returns:**

Dict\[str, Any]: Dictionary representation of the DataPoint.

<a id="camel.datasets.models.DataPoint.from_dict" />

### from\_dict

```python theme={"system"}
def from_dict(cls, data: Dict[str, Any]):
```

Create a DataPoint from a dictionary.

**Parameters:**

* **data** (Dict\[str, Any]): Dictionary containing DataPoint fields.

**Returns:**

DataPoint: New DataPoint instance.
