INNER CODE UNIT · Python

get_config

agentscope-ai/agentscope-runtime · src/agentscope_runtime/sandbox/manager/server/app.py:54

def get_config() -> SandboxManagerEnvConfig:
    """Return config"""
    global _config
    if _config is None:
        settings = get_settings()
        _config = SandboxManagerEnvConfig(
            container_prefix_key=settings.CONTAINER_PREFIX_KEY,
            file_system=settings.FILE_SYSTEM,
            redis_enabled=settings.REDIS_ENABLED,
            container_deployment=settings.CONTAINER_DEPLOYMENT,
            default_mount_dir=settings.DEFAULT_MOUNT_DIR,
            readonly_mounts=settings.READONLY_MOUNTS,
            allow_mount_dir=settings.ALLOW_MOUNT_DIR,
            storage_folder=settings.STORAGE_FOLDER,
            port_range=settings.PORT_RANGE,
            pool_size=settings.POOL_SIZE,
            oss_endpoint=settings.OSS_ENDPOINT,
            oss_access_key_id=settings.OSS_ACCESS_KEY_ID,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…