maple.backend.policy.base.PolicyHandle
- class maple.backend.policy.base.PolicyHandle(policy_id: str, backend_name: str, version: str, host: str, port: int, container_id: str | None = None, model_path: str | None = None, device: str | None = None, metadata: Dict[str, ~typing.Any]=<factory>)
Handle representing a running policy container instance.
Encapsulates all information needed to interact with a running policy container, including connection details, model metadata, and container configuration.
Methods
__init__(policy_id, backend_name, version, ...)from_dict(d)Create handle from dictionary representation.
to_dict()Convert handle to dictionary representation.
Attributes