# to_raw_response_wrapper

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/_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-python/blob/15dd2a789f976bbbafd803b26d0f25c08b5ed527/src/langsmith/_response.py#L738)