> ## 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.messages.conversion.conversation models

<a id="camel.messages.conversion.conversation_models" />

<a id="camel.messages.conversion.conversation_models.ShareGPTMessage" />

## ShareGPTMessage

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

A single message in ShareGPT format with enhanced validation

<a id="camel.messages.conversion.conversation_models.ShareGPTConversation" />

## ShareGPTConversation

```python theme={"system"}
class ShareGPTConversation(RootModel):
```

A full conversation in ShareGPT format with validation

<a id="camel.messages.conversion.conversation_models.ShareGPTConversation.validate_conversation_flow" />

### validate\_conversation\_flow

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

Validate the conversation follows logical message order

<a id="camel.messages.conversion.conversation_models.ShareGPTConversation.model_dump" />

### model\_dump

```python theme={"system"}
def model_dump(self, **kwargs):
```

<a id="camel.messages.conversion.conversation_models.ShareGPTConversation.__iter__" />

### **iter**

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

<a id="camel.messages.conversion.conversation_models.ToolCall" />

## ToolCall

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

Represents a single tool/function call with validation

<a id="camel.messages.conversion.conversation_models.ToolCall.validate_arguments" />

### validate\_arguments

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

Validate argument structure and content

<a id="camel.messages.conversion.conversation_models.ToolResponse" />

## ToolResponse

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

Represents a tool/function response with validation. This is a
base class and default implementation for tool responses, for the purpose
of converting between different formats.

<a id="camel.messages.conversion.conversation_models.ToolResponse.validate_content" />

### validate\_content

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

Validate response content structure
