# UsageAccumulator

> **Class** in `langchain_azure_ai`

📖 [View in docs](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_stream/UsageAccumulator)

Aggregate LangChain usage metadata into Responses API usage.

## Signature

```python
UsageAccumulator(
    self,
)
```

## Constructors

```python
__init__(
    self,
) -> None
```


## Properties

- `response_usage`

## Methods

- [`add()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_stream/UsageAccumulator/add)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-azure/blob/7a6a664d617264df8dcb12fcfb1bacc09f21d504/libs/azure-ai/langchain_azure_ai/agents/hosting/_converters/_stream.py#L145)