BaseProvider
Abstract base class for all application providers.
Attributes
attributeapp_config= app_configFunctions
constructor__init__(app_config) -> NoneInitialise the provider with an application configuration.
paramapp_configdict[str, Any]Resolved application dictionary (InstalledApp shape)
including provider_config.
Returns
Nonefunclaunch(session_id, env_vars, volumes=None, gpu_config=None, network=None, is_collaboration=False, master_token=None, initial_tokens=None) -> dict[str, Any]Launch an instance of the application.
paramsession_idstrUnique id of the session.
paramenv_varsdict[str, str]Environment variables for the instance.
paramvolumesdict[str, Any] | None= NoneVolume mounts in Docker SDK format.
paramgpu_configdict[str, Any] | None= NoneGPU details when a GPU was requested.
paramnetworkstr | None= NoneNetwork to attach the instance to.
paramis_collaborationbool= FalseWhether this is a collaboration session.
parammaster_tokenstr | None= NoneMaster token of the downstream control plane.
paraminitial_tokensdict[str, Any] | None= NoneInitial token set for the downstream control plane.
Returns
dict{"instance_id": str, "ip": str, "port": int}.
funcstop(instance_id) -> NoneStop a running instance.
paraminstance_idstrIdentifier returned by launch.
Returns
None