# TGI_RESPONSE

> **Class** in `langchain_huggingface`

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

Response from the TextGenInference API.

## Signature

```python
TGI_RESPONSE(
    self,
    choices: list[Any],
    usage: dict,
)
```

## Constructors

```python
__init__(
    self,
    choices: list[Any],
    usage: dict,
) -> None
```

| Name | Type |
|------|------|
| `choices` | `list[Any]` |
| `usage` | `dict` |


## Properties

- `choices`
- `usage`

---

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