maple.server.daemon.ServePolicyRequest

class maple.server.daemon.ServePolicyRequest(*, spec: str, device: str = 'cpu', host_port: int | None = None, model_load_kwargs: Dict[str, Any] | None = {})

Request model for serving a policy container.

Methods

Attributes

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

spec

device

host_port

model_load_kwargs