# to_raw_response_wrapper

> **Function** in `langsmith`

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

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

## Signature

```python
to_raw_response_wrapper(
    func: Callable[P, R],
) -> Callable[P, APIResponse[R]]
```

---

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