# ChatBedrock

> **Class** in `langchain_aws`

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

A chat model that uses the Bedrock API.

## Signature

```python
ChatBedrock()
```

## Extends

- `BaseChatModel`
- `BedrockBase`

## Properties

- `system_prompt_with_tools`
- `beta_use_converse_api`
- `stop_sequences`
- `lc_attributes`
- `model_config`

## Methods

- [`is_lc_serializable()`](https://reference.langchain.com/python/langchain-aws/chat_models/bedrock/ChatBedrock/is_lc_serializable)
- [`get_lc_namespace()`](https://reference.langchain.com/python/langchain-aws/chat_models/bedrock/ChatBedrock/get_lc_namespace)
- [`set_beta_use_converse_api()`](https://reference.langchain.com/python/langchain-aws/chat_models/bedrock/ChatBedrock/set_beta_use_converse_api)
- [`build_extra()`](https://reference.langchain.com/python/langchain-aws/chat_models/bedrock/ChatBedrock/build_extra)
- [`get_num_tokens_from_messages()`](https://reference.langchain.com/python/langchain-aws/chat_models/bedrock/ChatBedrock/get_num_tokens_from_messages)
- [`get_num_tokens()`](https://reference.langchain.com/python/langchain-aws/chat_models/bedrock/ChatBedrock/get_num_tokens)
- [`get_token_ids()`](https://reference.langchain.com/python/langchain-aws/chat_models/bedrock/ChatBedrock/get_token_ids)
- [`set_system_prompt_with_tools()`](https://reference.langchain.com/python/langchain-aws/chat_models/bedrock/ChatBedrock/set_system_prompt_with_tools)
- [`bind_tools()`](https://reference.langchain.com/python/langchain-aws/chat_models/bedrock/ChatBedrock/bind_tools)
- [`with_structured_output()`](https://reference.langchain.com/python/langchain-aws/chat_models/bedrock/ChatBedrock/with_structured_output)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-aws/blob/11c5c131f922af35aee690326efd363b490da2e9/libs/aws/langchain_aws/chat_models/bedrock.py#L857)