# 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/52e79add98f6559235d1eb00f5f533b9be6d4cf6/python/langsmith/_openapi_client/_response.py#L740)