# TGI_MESSAGE

> **Class** in `langchain_huggingface`

📖 [View in docs](https://reference.langchain.com/python/langchain-huggingface/chat_models/huggingface/TGI_MESSAGE)

Message to send to the TextGenInference API.

## Signature

```python
TGI_MESSAGE(
    self,
    role: str,
    content: str,
    tool_calls: list[dict],
)
```

## Constructors

```python
__init__(
    self,
    role: str,
    content: str,
    tool_calls: list[dict],
) -> None
```

| Name | Type |
|------|------|
| `role` | `str` |
| `content` | `str` |
| `tool_calls` | `list[dict]` |


## Properties

- `role`
- `content`
- `tool_calls`

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/02991cb4cf2063d51a07268edafb05fe53de1826/libs/partners/huggingface/langchain_huggingface/chat_models/huggingface.py#L92)