# AsyncStreamedBinaryAPIResponse

> **Class** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/_response/AsyncStreamedBinaryAPIResponse)

## Signature

```python
AsyncStreamedBinaryAPIResponse(
    self,
    *,
    raw: httpx.Response,
    cast_to: type[R],
    client: BaseClient[Any, Any],
    stream: bool,
    stream_cls: type[Stream[Any]] | type[AsyncStream[Any]] | None,
    options: FinalRequestOptions,
    retries_taken: int = 0,
)
```

## Extends

- `AsyncAPIResponse[bytes]`

## Methods

- [`stream_to_file()`](https://reference.langchain.com/python/langsmith/_response/AsyncStreamedBinaryAPIResponse/stream_to_file)

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-python/blob/15dd2a789f976bbbafd803b26d0f25c08b5ed527/src/langsmith/_response.py#L542)