Skip to main content

Python class

Request

Request

class max.interfaces.Request(*args, **kwargs)

source

Bases: Protocol

Protocol representing a generic request within the MAX API.

This protocol defines the interface for request types, ensuring that all requests can be tracked and referenced consistently throughout the system. Any class (dataclass, Pydantic model, etc.) that provides a request_id attribute satisfies this protocol.

request_id

property request_id: RequestID

source

Returns the unique identifier for this request.