<a id="camel.data_collector.sharegpt_collector"></a>

<a id="camel.data_collector.sharegpt_collector.ShareGPTDataCollector"></a>

## ShareGPTDataCollector

```python
class ShareGPTDataCollector(BaseDataCollector):
```

<a id="camel.data_collector.sharegpt_collector.ShareGPTDataCollector.__init__"></a>

### __init__

```python
def __init__(self):
```

<a id="camel.data_collector.sharegpt_collector.ShareGPTDataCollector.record"></a>

### record

```python
def record(self, agent: Union[List[ChatAgent], ChatAgent]):
```

Inject an agent into the data collector.

<a id="camel.data_collector.sharegpt_collector.ShareGPTDataCollector.convert"></a>

### convert

```python
def convert(self):
```

Convert the collected data into a dictionary.

<a id="camel.data_collector.sharegpt_collector.ShareGPTDataCollector.llm_convert"></a>

### llm_convert

```python
def llm_convert(
    self,
    converter: Optional[OpenAISchemaConverter] = None,
    prompt: Optional[str] = None
):
```

Convert collected data using an LLM schema converter.

**Parameters:**

- **converter** (Optional[OpenAISchemaConverter], optional): The converter to use. (default: :obj:`OpenAISchemaConverter`)
- **prompt** (Optional[str], optional): Prompt to guide the conversion. (default: :obj:`DEFAULT_CONVERTER_PROMPTS`)

**Returns:**

  Dict[str, str]: The converted data.

<a id="camel.data_collector.sharegpt_collector.ShareGPTDataCollector.to_sharegpt_conversation"></a>

### to_sharegpt_conversation

```python
def to_sharegpt_conversation(data: Dict[str, Any]):
```
