# LLMInputOutputAdapter

> **Class** in `langchain_aws`

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

Adapter class to prepare the inputs from Langchain to a format
that LLM model expects.

It also provides helper function to extract
the generated text from the model response.

## Signature

```python
LLMInputOutputAdapter()
```

## Properties

- `provider_to_output_key_map`

## Methods

- [`prepare_input()`](https://reference.langchain.com/python/langchain-aws/llms/bedrock/LLMInputOutputAdapter/prepare_input)
- [`prepare_output()`](https://reference.langchain.com/python/langchain-aws/llms/bedrock/LLMInputOutputAdapter/prepare_output)
- [`prepare_output_stream()`](https://reference.langchain.com/python/langchain-aws/llms/bedrock/LLMInputOutputAdapter/prepare_output_stream)
- [`aprepare_output_stream()`](https://reference.langchain.com/python/langchain-aws/llms/bedrock/LLMInputOutputAdapter/aprepare_output_stream)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-aws/blob/285069d4f44907e10aaf7743888689ea39c98fe3/libs/aws/langchain_aws/llms/bedrock.py#L291)