# ChatPromptValue

> **Class** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/prompt_values/ChatPromptValue)

Chat prompt value.

A type of a prompt value that is built from messages.

## Signature

```python
ChatPromptValue(
    self,
    *args: Any = (),
    **kwargs: Any = {},
)
```

## Extends

- `PromptValue`

## Properties

- `messages`

## Methods

- [`to_string()`](https://reference.langchain.com/python/langchain-core/prompt_values/ChatPromptValue/to_string)
- [`to_messages()`](https://reference.langchain.com/python/langchain-core/prompt_values/ChatPromptValue/to_messages)
- [`get_lc_namespace()`](https://reference.langchain.com/python/langchain-core/prompt_values/ChatPromptValue/get_lc_namespace)

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/311675a517f51ec6c77454124293c58df517e952/libs/core/langchain_core/prompt_values.py#L80)