# async_to_streamed_response_wrapper

> **Function** in `langsmith`

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

Higher order function that takes one of our bound API methods and wraps it
to support streaming and returning the raw `APIResponse` object directly.

## Signature

```python
async_to_streamed_response_wrapper(
    func: Callable[P, Awaitable[R]],
) -> Callable[P, AsyncResponseContextManager[AsyncAPIResponse[R]]]
```

---

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