Feature Request: Pass SDK Reference in Hook Context
**Description or Expected Behavior/Actual behavior:**
Allow the SDK to pass a reference to itself in the hook context, specifically to support our PDF request splitting functionality.
Would like to create new `Request` objects and pass them to `sdk.general.partition_async` directly from within the hook. To do this effectively, the SDK should pass a reference to itself within the hook context. This would ensure that all configurations and logic within the SDK are consistently applied to these additional requests, streamlining the process and reducing the risk of errors.
**Customer Description (if applicable):**
Original Message:
Hey all! I'd like to request that the sdk pass a reference to itself in the hook content. This is for our pdf request splitting which has a BeforeRequestHook like so: • Open the request. If the file param is a pdf, break it into N smaller files. Send each of these as a new httpx request. Return the last file for the SDK to process. Since we added these extra httpx calls underneath the SDK code, we have to copy over the retry config, and we'll miss out on any other changes to this logic. What I'd like to do is create a few new Request objects, and send the to sdk.general.partition_async from within the hook.
The requester also referenced additional attachments: split_pdf_hook.py
```
def before_request(
```
**Replication Steps (for bugs)/Use Case (for features):**
They have implemented a `BeforeRequestHook` for handling PDF file uploads that operates as follows:
* Upon receiving a request, if the `file` parameter is a PDF, it is split into `N` smaller files.
* `N-1` of these files are sent as new `httpx` requests.
* The last file is returned for the SDK to process as usual.
Currently, because these additional `httpx` requests are being made outside of the SDK's original context, we are required to manually copy over the retry configuration and any other relevant settings. This approach risks missing future changes to the SDK's request handling logic.
**Risks/Other Notes:**