# ContentHandlerBase

> **Class** in `langchain_aws`

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

A 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-aws/llms/sagemaker_endpoint/ContentHandlerBase/transform_input)
- [`transform_output()`](https://reference.langchain.com/python/langchain-aws/llms/sagemaker_endpoint/ContentHandlerBase/transform_output)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-aws/blob/434899a049429abd1b68d6e3efe82f58bc729a4f/libs/aws/langchain_aws/llms/sagemaker_endpoint.py#L85)