# AsyncAPIResponse

> **Class** in `langsmith`

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

## Signature

```python
AsyncAPIResponse(
    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

- `BaseAPIResponse[R]`

## Methods

- [`parse()`](https://reference.langchain.com/python/langsmith/_openapi_client/_response/AsyncAPIResponse/parse)
- [`read()`](https://reference.langchain.com/python/langsmith/_openapi_client/_response/AsyncAPIResponse/read)
- [`text()`](https://reference.langchain.com/python/langsmith/_openapi_client/_response/AsyncAPIResponse/text)
- [`json()`](https://reference.langchain.com/python/langsmith/_openapi_client/_response/AsyncAPIResponse/json)
- [`close()`](https://reference.langchain.com/python/langsmith/_openapi_client/_response/AsyncAPIResponse/close)
- [`iter_bytes()`](https://reference.langchain.com/python/langsmith/_openapi_client/_response/AsyncAPIResponse/iter_bytes)
- [`iter_text()`](https://reference.langchain.com/python/langsmith/_openapi_client/_response/AsyncAPIResponse/iter_text)
- [`iter_lines()`](https://reference.langchain.com/python/langsmith/_openapi_client/_response/AsyncAPIResponse/iter_lines)

---

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