module documentation

Define keyword arguments that apply to all SDK requests.

Usage:

from nebius.aio.request_kwargs import RequestKwargs
from typing_extensions import Unpack  # or from typing import Unpack in Python 3.11+
from nebius.api.nebius... import SomeService, SomeRequest # illustrative only

def my_request_wrapper(some_arg, **kwargs: Unpack[RequestKwargs]):
    request = SomeRequest(arg=some_arg) # build your request here

    return SomeService(sdk).some_method( # initialize your service client
        request,
        **kwargs, # pass the request kwargs along with the service call
    )

result = await my_request_wrapper(
    some_arg="value",
    timeout=5.0,
    retries=2,
)
Class RequestKwargs Define common keyword arguments for all requests.
Class RequestKwargsForOperation Define common keyword arguments for requests and operation waits.
Class StreamRequestKwargs Keyword arguments accepted by native streaming RPC requests.