# ContentHandlerBase

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/llms/sagemaker_endpoint/ContentHandlerBase)

Handler class to transform input from LLM to a
format that SageMaker endpoint expects.

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

## Signature

```python
ContentHandlerBase()
```

## Extends

- `Generic[INPUT_TYPE, OUTPUT_TYPE]`

## Properties

- `content_type`
- `accepts`

## Methods

- [`transform_input()`](https://reference.langchain.com/python/langchain-community/llms/sagemaker_endpoint/ContentHandlerBase/transform_input)
- [`transform_output()`](https://reference.langchain.com/python/langchain-community/llms/sagemaker_endpoint/ContentHandlerBase/transform_output)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/d5ea8358933260ad48dd31f7f8076555c7b4885a/libs/community/langchain_community/llms/sagemaker_endpoint.py#L78)