# ContentHandlerBase

> **Class** in `langchain_aws`

📖 [View in docs](https://reference.langchain.com/python/langchain-aws/utils/ContentHandlerBase)

A handler class to transform input from LLM and BaseChatModel to a

format that SageMaker endpoint expects.

Similarly, the class handles transforming output from the
SageMaker endpoint to a format that LLM & BaseChatModel class expects.

## Signature

```python
ContentHandlerBase()
```

## Extends

- `Generic[INPUT_TYPE, OUTPUT_TYPE]`

## Properties

- `content_type`
- `accepts`

## Methods

- [`transform_input()`](https://reference.langchain.com/python/langchain-aws/utils/ContentHandlerBase/transform_input)
- [`transform_output()`](https://reference.langchain.com/python/langchain-aws/utils/ContentHandlerBase/transform_output)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-aws/blob/07f60ceba189a48fab5942573cf81e569a7bbf19/libs/aws/langchain_aws/utils.py#L26)