# AsyncStreamedBinaryAPIResponse

> **Class** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/_openapi_client/_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/_openapi_client/_response/AsyncStreamedBinaryAPIResponse/stream_to_file)

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/687fc8d527a28504432f52bd08c75f2894c209fe/python/langsmith/_openapi_client/_response.py#L544)