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

<a id="camel.schemas.base" />

<a id="camel.schemas.base.BaseConverter" />

## BaseConverter

```python theme={"system"}
class BaseConverter(ABC):
```

A base class for schema outputs that includes functionality
for managing the response format.

**Parameters:**

* **output\_schema** (Optional\[Type\[BaseModel]], optional): The expected format of the response. (default: :obj:`None`)

<a id="camel.schemas.base.BaseConverter.convert" />

### convert

```python theme={"system"}
def convert(
    self,
    content: str,
    *args: Any,
    **kwargs: Dict[str, Any]
):
```

Structures the input text into the expected response format.

**Parameters:**

* **text** (str): The input text to be structured.
* **output\_schema** (Optional\[Type\[BaseModel]], optional): The expected format of the response. Defaults to None.
* **prompt** (Optional\[str], optional): The prompt to be used.

**Returns:**

Any: The converted response.
