# LLMInputOutputAdapter

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/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-community/llms/bedrock/LLMInputOutputAdapter/prepare_input)
- [`prepare_output()`](https://reference.langchain.com/python/langchain-community/llms/bedrock/LLMInputOutputAdapter/prepare_output)
- [`prepare_output_stream()`](https://reference.langchain.com/python/langchain-community/llms/bedrock/LLMInputOutputAdapter/prepare_output_stream)
- [`aprepare_output_stream()`](https://reference.langchain.com/python/langchain-community/llms/bedrock/LLMInputOutputAdapter/aprepare_output_stream)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/llms/bedrock.py#L96)